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

            base.DestroyHandle();

            instance = null;
        }
Exemplo n.º 2
0
        //

        public ClientForm()
        {
            instance = this;

            InitializeComponent();

            Random random = new Random();
            textBoxUserName.Text = "User" + random.Next(999);
        }
Exemplo n.º 3
0
        //

        public ClientForm()
        {
            instance = this;

            InitializeComponent();

            Random random = new Random();

            textBoxUserName.Text = "User" + random.Next(999);
        }
Exemplo 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();
 }
Exemplo 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();
     }
 }