Exemplo n.º 1
0
 private void Button_MouseUp(object sender, MouseButtonEventArgs e)
 {
     if (VM.IsEditing)
     {
         return;
     }
     if (PushTimer.Stop() && preset != null)
     {
         Plc.Upload(preset);
     }
 }
Exemplo n.º 2
0
 private void Button_MouseUp(object sender, MouseButtonEventArgs e)
 {
     if (VM.IsEditing)
     {
         return;
     }
     if (PushTimer.Stop() && preset != null && !preset.IsEmpty)
     {
         User.RequireLimited();
         Plc.Upload(preset);
     }
 }
Exemplo n.º 3
0
 private void Button_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (VM.IsEditing)
     {
         return;
     }
     if (e.ChangedButton == MouseButton.Left)
     {
         preset = (sender as Button).DataContext as Preset;
         PushTimer.Start(() => PushTimeout());
     }
 }