Esempio n. 1
0
        private void CloseWithOK()
        {
            UnregisterHotkeys();

            OpeInfoTable.GetInstance().Save();

            OpeScript.GetInstance().Initialize();

            MyHide();
        }
Esempio n. 2
0
        public ScriptSettingWindow(DataRow ope_info)
        {
            InitializeComponent();

            OpeInfo = ope_info;

            TbxScript.Text = OpeInfo["ScriptBody"].ToString();

            OpeScript.GetInstance().Initialize(TbxOutput);
        }
Esempio n. 3
0
        private void CloseWithCancel()
        {
            UnregisterHotkeys();

            OpeInfoTable.GetInstance().RollBackBeforeEditing();

            // Update reference.
            dgOpeList.DataContext = OpeInfoTable.GetInstance();
            dgOpeList.Items.Refresh();

            OpeScript.GetInstance().Initialize();

            MyHide();
        }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
        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;
        }
Esempio n. 7
0
 private void BtnDo_Click(object sender, RoutedEventArgs e)
 {
     OpeScript.GetInstance().DoScript(
         TbxScript.Text,
         int.Parse(OpeInfo["ID"].ToString()));
 }
Esempio n. 8
0
 public void DoOpeScript(int idx)
 {
     OpeScript.GetInstance().DoScript(
         Rows.Find(idx)["ScriptBody"].ToString(),
         idx);
 }