Exemplo n.º 1
0
        public void OnPropertyWatcherChanged(bool previous_state)
        {
            EventHandler <PropertyWatcherEventArgs> handler = PropertyWatcherChanged;
            PropertyWatcherEventArgs args = new PropertyWatcherEventArgs();

            args.previous_state = previous_state;
            if (handler != null)
            {
                handler(this, args);
            }
        }
Exemplo n.º 2
0
 private void Button_PropertyWatcherChanged(object sender, PropertyWatcherEventArgs e)
 {
     if (e.previous_state == false && ((CustomButton)sender).property_watcher == true)
     {
         apply_counter++;
         update_ApplyAllCancelAllpanel(true);
     }
     else if (e.previous_state == true && ((CustomButton)sender).property_watcher == false)
     {
         apply_counter--;
         if (apply_counter == 0)
         {
             update_ApplyAllCancelAllpanel(false);
         }
     }
     if ((CustomButton)sender == currentButton)
     {
         update_ApplyCancelpanel(currentButton.property_watcher);
     }
 }