예제 #1
0
        //--------------------------------------------[Constructor]--------------------------------------------

        public MainForm(ref Colloquor.ColloquorClient Client, String ChannelName)
        {
            InitializeComponent();
            Mainclient  = Client;
            LastMessage = "";
            Text        = "Colloquor : " + ChannelName;
        }
예제 #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();
        }
예제 #3
0
        //--------------------------------------------[Constructor]--------------------------------------------

        public ChannelPicker(ref Colloquor.ColloquorClient Client)
        {
            InitializeComponent();

            MainClient = Client;
            if (!Client.Connected)
            {
                throw new ArgumentException("Client isn't connected");
            }

            PasswordBox.Enabled = false;

            ChannelsListbox.Enabled   = false;
            JoinChannelButton.Enabled = false;
            DisconnectButton.Enabled  = false;
        }