Esempio n. 1
0
        protected override void DestroyHandle()
        {
            Disconnect();

            base.DestroyHandle();

            instance = null;
        }
Esempio n. 2
0
        //

        public ClientForm()
        {
            instance = this;

            InitializeComponent();

            Random random = new Random();
            textBoxUserName.Text = "User" + random.Next(999);
        }
        //

        public ClientForm()
        {
            instance = this;

            InitializeComponent();

            Random random = new Random();

            textBoxUserName.Text = "User" + random.Next(999);
        }
Esempio n. 4
0
 private void buttonClient_Click( object sender, EventArgs e )
 {
     if( ClientForm.instance == null )
     {
         ClientForm form = new ClientForm();
         form.Show();
     }
     else
         ClientForm.instance.Activate();
 }
Esempio n. 5
0
 private void buttonClient_Click(object sender, EventArgs e)
 {
     if (ClientForm.instance == null)
     {
         ClientForm form = new ClientForm();
         form.Show();
     }
     else
     {
         ClientForm.instance.Activate();
     }
 }