Skip to content

Instantly share code, notes, and snippets.

View felipebaltazar's full-sized avatar
👋

Felipe Baltazar felipebaltazar

👋
View GitHub Profile
using MyProject.Abstractions.Data;
using MyProject.Abstractions.Data.Repositories;
using MyProject.Models;
using LiteDB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;
public static IsNullOrEmpty<T>(this IEnumerable<T> collection)
{
if(collection is null)
return;
return !collection.Any();
}
//usar assim collecao.IsNullOrEmpty()
internal sealed class MeuServico : ObjectWithPolicy {
#region Fields
//Api refit
private readonly IApiClient _apiClient;
#endregion
#region Constructors

Entrega 01 (+- 16h)

  • Menu Radial
    • Editar quotas - 6h
    • Editar paredes - 7h
  • Orientação do desenho - 1.0h
  • Listagem de plantas salvas - 2h

Entrega 02 (+-32.5h)

public asbtract BaseViewModel : INotifyPropertyChanged
{
protected async Task RunBusyAction (Task busyTask)
{
if(IsBusy)
return;
IsBusy = true;
<views:AvatarView Size="{Binding Value, Source={x:Reference Slider}}"
Text="{Binding Initials}" Source="{Binding Source}" />
<views:RangeSlider
x:Name="RangeSlider"
MaximumValue="10"
MinimumValue="-10"
LowerValue="-10"
UpperValue="10"
ValueLabelStringFormat="{StaticResource CustomValueLabeStringFormat}"
LowerValueLabelStyle="{StaticResource CustomLowerValueLabelStyle}"
UpperValueLabelStyle="{StaticResource CustomUpperValueLabelStyle}"
ThumbSize="{Binding Value, Source={x:Reference ThumbSizeSlider}}"
<Button Text="Testing Fade Animation">
<Button.Behaviors>
<behaviors:AnimationBehavior EventName="Clicked">
<behaviors:AnimationBehavior.AnimationType>
<behaviors:FadeAnimation Easing="BounceIn" Duration="100"/>
</behaviors:AnimationBehavior.AnimationType>
</behaviors:AnimationBehavior>
</Button.Behaviors>
</Button>
public class MainPageViewModel : ViewModelBase
{
private readonly IDisposable _gpsDisposer;
...
public MainPageViewModel(INavigationService navigationService, IGpsManager gpsManager)
: base(navigationService)
{
...