示例#1
0
        private void niconSystemTrayIcon_DoubleClick(object sender, System.EventArgs e)
        {
            MOG_CommandSlave manager = (MOG_CommandSlave)MOG_ControllerSystem.GetCommandManager();

            mLogWindow = new CommandLineLog(manager);
            mLogWindow.Show();
        }
示例#2
0
        // Show the command line output
        private void mnuItmShowLog_Click(object sender, System.EventArgs e)
        {
            MOG_CommandSlave manager = (MOG_CommandSlave)MOG_ControllerSystem.GetCommandManager();

            mLogWindow = new CommandLineLog(manager);
            mLogWindow.Show();
        }
示例#3
0
        private void mnuItmHideCommand_Click(object sender, System.EventArgs e)
        {
            MOG_CommandSlave manager = (MOG_CommandSlave)MOG_ControllerSystem.GetCommandManager();
            MenuItem         menu    = (MenuItem)sender;

            if (menu.Checked)
            {
                menu.Checked = false;
            }
            else
            {
                menu.Checked = true;
            }
            // Set the commanger to be the same
            manager.SetCommandLineHideWindow(menu.Checked);
        }
示例#4
0
        public CommandLineLog(MOG_CommandSlave slave)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            mSlave = slave;

            // Load the output log into the window
            // Set the Multiline property to true.
            richTextBoxOutputLog.Multiline = true;
            // Set WordWrap to true to allow text to wrap to the next line.
            richTextBoxOutputLog.WordWrap = true;
            // Add vertical scroll bars to the TextBox control.
            richTextBoxOutputLog.ScrollBars = RichTextBoxScrollBars.ForcedBoth;

            // Get the max text length
            textBoxMaxSize.Text = Convert.ToString(mSlave.GetMaxLogLength());

            UpdateLog();
        }