Ejemplo n.º 1
0
        private void Init()
        {
            HideTaskBar();
            DisableTaskSwitch();

            // Start main form fullscreen
            _frmConfirm.Hide();
            DisableTimerPush();
            FullScreen();
            HidePopUp();
            //Hide tray menu
            HideTrayMenu();

            // Query Server
            FormInfo frmInfo = new FormInfo(this, 2);

            frmInfo.SetMode(FormInfo.FormMode.QueryServerInformation);
            frmInfo.ShowDialog();

            BringToFront();

            DisplayBallonTips("Connected to " + _serverInformation.CompanyName, 2000);


            frmInfo.SetMode(FormInfo.FormMode.QueryClientInformation);
            frmInfo.ShowDialog();

            DisplayBallonTips("This computer registered as " + _clientInformation.Name, 2000);

            frmInfo.SetMode(FormInfo.FormMode.QuerySessionInformation);
            frmInfo.ShowDialog();

            if (_sessionInformation != null)
            {
                // DisplayBallonTips( "This computer session code is " + _sessionInformation.Code, 2000);
                ShowPopUp();
            }
            ShowTrayMenu();
            // Hide On Success
            Hide();
            EnableTimerPush();

            ShowTaskBar();
            EnableTaskSwitch();
        }
Ejemplo n.º 2
0
        private void Init()
        {
            HideTaskBar();
            DisableTaskSwitch();

            // Start main form fullscreen
            _frmConfirm.Hide();
            DisableTimerPush();
            FullScreen();
            HidePopUp();
            //Hide tray menu
            HideTrayMenu();

            // Query Server
            FormInfo frmInfo = new FormInfo(this, 2);
            frmInfo.SetMode(FormInfo.FormMode.QueryServerInformation);
            frmInfo.ShowDialog();

            BringToFront();

            DisplayBallonTips("Connected to " + _serverInformation.CompanyName,2000);

            frmInfo.SetMode(FormInfo.FormMode.QueryClientInformation);
            frmInfo.ShowDialog();

            DisplayBallonTips( "This computer registered as " + _clientInformation.Name,2000);

            frmInfo.SetMode(FormInfo.FormMode.QuerySessionInformation);
            frmInfo.ShowDialog();

            if( _sessionInformation != null ){
               // DisplayBallonTips( "This computer session code is " + _sessionInformation.Code, 2000);
                ShowPopUp();
            }
            ShowTrayMenu();
            // Hide On Success
            Hide();
            EnableTimerPush();

            ShowTaskBar();
            EnableTaskSwitch();
        }