예제 #1
0
        private void OnClickConnect(System.Object Sender, System.EventArgs e)
        {
            //prntSome.printSome("OnClickConnect");
            HostWindow hostWindow = new HostWindow();

            //hostWindow.HostName.Text = "192.168.3.85";
            hostWindow.HostName.Text = "5.8.68.217";
            this.runOffline          = true;
            System.Windows.Forms.DialogResult RetVal = hostWindow.ShowDialog(this);

            if (RetVal == System.Windows.Forms.DialogResult.OK)
            {
                hostWindow.Dispose();
                this.runOffline = false;
                this.Connect(hostWindow.HostName.Text);
            }
            else
            {
                hostWindow.Dispose();
                this.runOffline = true;
                //System.Windows.Forms.Application.ExitThread ();
                //System.Windows.Forms.Application.Exit ();
            }
        }
예제 #2
0
        private void OnClickConnect(System.Object Sender, System.EventArgs e)
        {
            //prntSome.printSome("OnClickConnect");
            HostWindow hostWindow = new HostWindow ();
            //hostWindow.HostName.Text = "192.168.3.85";
            hostWindow.HostName.Text = "5.8.68.217";
            this.runOffline = true;
            System.Windows.Forms.DialogResult RetVal = hostWindow.ShowDialog (this);

            if (RetVal == System.Windows.Forms.DialogResult.OK)
            {
                hostWindow.Dispose ();
                this.runOffline = false;
                this.Connect (hostWindow.HostName.Text);
            }
            else
            {
                hostWindow.Dispose ();
                this.runOffline = true;
                //System.Windows.Forms.Application.ExitThread ();
                //System.Windows.Forms.Application.Exit ();
            }
        }