filter conditions
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user