Interaction logic for AddControlStaticLabel.xaml
Inheritance: System.Windows.Controls.UserControl
コード例 #1
0
 private void Timer_Label_MouseRightButtonDown(object sender, MouseEventArgs e)
 {
     if (editMode == false) return;
     TimerLabel tmrLbl = (TimerLabel)sender;
     AddControl addControl = new AddControl();
     AddControlTimerLabel cmi = new AddControlTimerLabel(gCurrentScreen, tmrLbl.screenObject.Name);
     addControl.Content = cmi;
     addControl.Width = cmi.Width + 80;
     addControl.Height = cmi.Height + 80;
     addControl.Owner = this;
     addControl.ShowDialog();
     Load_Screen(gCurrentScreen);
 }
コード例 #2
0
 private void menuAddTimerLabel_Click(object sender, RoutedEventArgs e)
 {
     _timer.Stop();
     AddControl addControl = new AddControl();
     AddControlTimerLabel csi = new AddControlTimerLabel(gCurrentScreen);
     addControl.Width = csi.Width + 80;
     addControl.Height = csi.Height + 80;
     addControl.Content = csi;
     addControl.Show();
 }