private void btnLockOn_Click(object sender, RoutedEventArgs e) { DlgPassword dlg = new DlgPassword(); dlg.Owner = Application.Current.MainWindow; if (dlg.ShowDialog() == true) { MELSEC.SetDevice("M003150", 0); // Open MELSEC.SetDevice("M003151", 1); // Close } }
private void btnLockOff_Click(object sender, RoutedEventArgs e) { if (randomRead.GetData("L3109") != 1) { MessageBox.Show("Not mantance mode, please change mode."); return; } DlgPassword dlg = new DlgPassword(); dlg.Owner = Application.Current.MainWindow; if (dlg.ShowDialog() == true) { MELSEC.SetDevice("M003150", 1); // Open MELSEC.SetDevice("M003151", 0); // Close DlgMaintrance dlg2 = new DlgMaintrance(); dlg2.Owner = Application.Current.MainWindow; dlg2.ShowDialog(); } }
private void btnSkip_Click(object sender, RoutedEventArgs e) { MELSEC.SetDevice("M004043", 0); MELSEC.SetDevice("M004043", 1); MELSEC.SetDevice("M004043", 0); }
private void chkStart_MouseUp(object sender, MouseButtonEventArgs e) { MELSEC.SetDevice("M3100", 0); }
private void btnModeChange_MouseUp(object sender, MouseButtonEventArgs e) { MELSEC.SetDevice("M003149", 0); }
private void btnFWD_MouseUp(object sender, MouseButtonEventArgs e) { MELSEC.SetDevice("M003145", 0); }
private void btnBWD_MouseDown(object sender, MouseButtonEventArgs e) { MELSEC.SetDevice("M003146", 1); }