Example #1
0
        public Login()
        {
            InitializeComponent();

            extra_info_label.Text = "";
            ChangeUpdateTime();
            ChangeState(false);

            if (IsConnectedVPN())
            {
                /*================Run the softphone exe.================*/
                ChangeUpdateTime();
                ChangeState(true);
            }
            else
            {
                try { VPN.CreateVPN(); }
                catch { InfoMsg.alertMsg("1002"); }
                finally { InfoMsg.ConsoleMsg("2001"); }
            }
        }