예제 #1
0
 void chk_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
 {
     CheckBox chk = sender as CheckBox;
     StreetLightBindingData data = chk.DataContext as StreetLightBindingData;
    
     wndSchedule wnd = new wndSchedule(data.DevID,data.LightNo);
   //  wnd.Left = chk.Margin.Left;
   //  wnd.Top = chk.Margin.Top;
     wnd.Owner = this;
     wnd.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     wnd.ShowDialog();
     //throw new NotImplementedException();
 }
예제 #2
0
 void chk_MouseRightButtonUp(object sender, MouseButtonEventArgs e)
 {
     CheckBox chk = sender as CheckBox;
     wndSchedule wnd = new wndSchedule(chk.Content.ToString());
   //  wnd.Left = chk.Margin.Left;
   //  wnd.Top = chk.Margin.Top;
     wnd.Owner = this;
     wnd.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;
     wnd.ShowDialog();
     //throw new NotImplementedException();
 }