private void CloseWithOK() { UnregisterHotkeys(); OpeInfoTable.GetInstance().Save(); OpeScript.GetInstance().Initialize(); MyHide(); }
public ScriptSettingWindow(DataRow ope_info) { InitializeComponent(); OpeInfo = ope_info; TbxScript.Text = OpeInfo["ScriptBody"].ToString(); OpeScript.GetInstance().Initialize(TbxOutput); }
private void CloseWithCancel() { UnregisterHotkeys(); OpeInfoTable.GetInstance().RollBackBeforeEditing(); // Update reference. dgOpeList.DataContext = OpeInfoTable.GetInstance(); dgOpeList.Items.Refresh(); OpeScript.GetInstance().Initialize(); MyHide(); }
private void StopSimulation() { grdDebugSet.Visibility = Visibility.Hidden; GridLengthConverter gridLengthConverter = new GridLengthConverter(); RDefSim.Height = (GridLength)gridLengthConverter.ConvertFrom("0"); MakeEnableDgOpeList(); OpeScript.GetInstance().Initialize(); OpeInfoTable.GetInstance().UnregisterAllOpeToHotKey(GetHWnd()); btnSimulation.IsChecked = false; }
private void StartSimulation() { MakeDisenableDgOpeList(); RowDefinition row_def = new RowDefinition(); GridLengthConverter gridLengthConverter = new GridLengthConverter(); RDefSim.Height = (GridLength)gridLengthConverter.ConvertFrom("1*"); grdDebugSet.Visibility = Visibility.Visible; OpeScript.GetInstance().Initialize(TbxOutput); OpeInfoTable.GetInstance().RegisterAllOpeToHotKey(GetHWnd()); btnSimulation.IsChecked = true; }
public NotifyIconWrapper() { InitializeComponent(); Window = new MainSettingWindow(); Window.HideFromAltTabMenu(); OpeScript.GetInstance().Initialize(); ComponentDispatcher.ThreadPreprocessMessage += ThreadPreprocessMessageMethod; //Add events to task tray icon. notifyIcon.DoubleClick += new EventHandler(TrayIcon_DoubleClicked); // Add click event to context menu items. this.toolStripMenuItem_Setting.Click += this.toolStripMenuItem_Setting_Click; this.toolStripMenuItem_Exit.Click += this.toolStripMenuItem_Exit_Click; this.toolStripMenuItem_Reboot.Click += this.toolStripMenuItem_Reboot_Click; }
private void BtnDo_Click(object sender, RoutedEventArgs e) { OpeScript.GetInstance().DoScript( TbxScript.Text, int.Parse(OpeInfo["ID"].ToString())); }
public void DoOpeScript(int idx) { OpeScript.GetInstance().DoScript( Rows.Find(idx)["ScriptBody"].ToString(), idx); }