private void SelectAll1_StateChanged(object sender, Syncfusion.Android.Buttons.StateChangedEventArgs eventArgs)
        {
            if (!skip)
            {
                skip = true;

                grilledBox.Checked = tikkaBox.Checked = sausaga.Checked = beefBox.Checked = eventArgs.IsChecked.Value;

                button.Enabled = eventArgs.IsChecked.Value;

                skip = false;
            }
        }
 private void NonvegToppingsChanged(object sender, Syncfusion.Android.Buttons.StateChangedEventArgs eventArgs)
 {
     if (!skip)
     {
         skip = true;
         selectAllBox.Checked = ValidateNonVegToopings();
         if (!selectAllBox.Checked.HasValue || (selectAllBox.Checked.HasValue && selectAllBox.Checked.Value))
         {
             button.Enabled = true;
         }
         else
         {
             button.Enabled = false;
         }
         skip = false;
     }
 }
Exemplo n.º 3
0
        private void SelectAll1_StateChanged(object sender, Syncfusion.Android.Buttons.StateChangedEventArgs eventArgs)
        {
            if (!skip)
            {
                skip = true;

                grilledBox.Checked = tikkaBox.Checked = sausaga.Checked = beefBox.Checked = eventArgs.IsChecked.Value;

                button.Enabled = eventArgs.IsChecked.Value;
                if (button.Enabled)
                {
                    button.SetTextColor(Color.ParseColor("#FFFFFF"));
                }
                else
                {
                    button.SetTextColor(Color.ParseColor("#73FFFFFF"));
                }

                skip = false;
            }
        }