示例#1
0
        public ControlCenterMainForm()
        {
            InitializeComponent();

            m_ScreenLogger = new ScreenLogger();// debug tool


            // load up the AppData object so the rest of the app has acccess to global resources

            m_AppData             = new APPLICATION_DATA();
            m_AppData.LogToScreen = m_ScreenLogger;

            m_Log            = new ErrorLog(m_AppData);
            m_AppData.Logger = m_Log;

            m_ScreenLogger.Show();

            m_AppData.RCSProtocol = (object)new RCS_Protocol.RCS_Protocol(m_AppData, null);
            m_AppData.TCPClient   = (object)new RCSClientLib.RCSClient(null, m_AppData);



            this.FormClosing += new FormClosingEventHandler(Form1_FormClosing);

            tabControlMain.Click += new EventHandler(tabControlMain_Click);

            // not logged in

            m_AppData.LoggedIn = APPLICATION_DATA.LoggedInAs.NOT_LOGGED_IN;


            // start on the select server tab
            tabControlMain.SelectedTab = tabPageSelectServer;
            m_CurrentPage = tabControlMain.SelectedTab;
            LoadSelectServerUC();
        }