//--------------------------------------------[On Shown]--------------------------------------------

        private void OnShown(object sender, EventArgs e)
        {
            MyStandbyForm = new StandbyForm();
            MyStandbyForm.Show();
            ChannelsListbox.Items.Clear();
            GetChannelsBW.RunWorkerAsync();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (!int.TryParse(PortBox.Text, out int Port))
            {
                MessageBox.Show("I could not parse the port into a number! Check your port", "oopsie", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            MainClient    = new Colloquor.ColloquorClient(IPBox.Text, Port, UsernameBox.Text, PasswordBox.Text);
            MyStandbyForm = new StandbyForm();

            MyStandbyForm.Show();
            Enabled = false;
            ConnectBW.RunWorkerAsync();
        }