filter conditions

This commit is contained in:
2022-03-10 17:27:49 +08:00
parent 84ec2df987
commit 74053a328e
18 changed files with 330 additions and 95 deletions

View File

@ -38,6 +38,7 @@ namespace Billing.Views
public Command CheckCategory { get; }
public Command SelectIcon { get; }
public Command ColorPickerCommand { get; }
public event EventHandler<Category> CategoryChecked;
@ -73,25 +74,23 @@ namespace Billing.Views
CheckCategory = new Command(OnCheckCategory);
SelectIcon = new Command(OnSelectIcon);
ColorPickerCommand = new Command(OnColorPickerCommand);
InitializeComponent();
}
private bool focused;
public override void OnLoaded()
{
if (!focused)
{
focused = true;
editorName.SetFocus();
}
editorName.SetFocus();
}
private void ColorPicker_ColorChanged(object sender, Color e)
private void OnColorPickerCommand(object o)
{
TintColor = e;
TintColorString = Helper.WrapColorString(e.ToHex());
if (o is Color color)
{
TintColor = color;
TintColorString = Helper.WrapColorString(color.ToHex());
}
}
private async void OnCheckCategory()