Exemplo n.º 1
0
        // SetTab given from RoboSep_UserConsole variable "intCurrentHelpTab"
        private RoboSep_Help()
        {
            InitializeComponent();

            // LOG
            string logMSG = "Initializing Help user control";

            //GUI_Controls.uiLog.LOG(this, "RoboSep_Help", GUI_Controls.uiLog.LogLevel.EVENTS, logMSG);

            LogFile.AddMessage(System.Diagnostics.TraceLevel.Info, logMSG);
            TabCheck = RoboSep_UserConsole.intCurrentHelpTab;
            // Create tab tab control content
            TabControls[0] = RoboSep_About.getInstance();
            TabControls[1] = new BasePannel();
            TabControls[2] = TabControls[1];
            // resize controls to fit
            TabControls[1].Size = TabControls[0].Size;
            TabControls[2].Size = TabControls[0].Size;
            // set control locations to 0,0
            for (int i = 0; i < TabControls.Length; i++)
            {
                TabControls[i].Location = new Point(0, 0);
            }
            // load tab content to display most recent tab
            this.Controls.Add(TabControls[TabCheck]);
        }
Exemplo n.º 2
0
        private RoboSep_Logs()
        {
            InitializeComponent();
            TabCheck = RoboSep_UserConsole.intCurrentLogTab;

            // LOG
            string logMSG = "Initializing Logs Tab Page ";

            //GUI_Controls.uiLog.LOG(this, "RoboSep_Logs", GUI_Controls.uiLog.LogLevel.EVENTS, logMSG);

            LogFile.AddMessage(System.Diagnostics.TraceLevel.Info, logMSG);

            TabControls[0] = RoboSep_Reports.getInstance();
            TabControls[1] = new BasePannel();
            TabControls[2] = TabControls[1];
            // resize controls to fit
            TabControls[1].Size = TabControls[0].Size;
            TabControls[2].Size = TabControls[0].Size;
            for (int i = 0; i < TabControls.Length; i++)
            {
                TabControls[i].Location = new Point(0, 0);
            }
            this.Controls.Add(TabControls[TabCheck]);
        }