Exemplo n.º 1
0
 private void forwardButton_Click(object sender, EventArgs e) {
     if (this.transport != null && this.email != null) {
         SendMessageForm sendMessageForm = new SendMessageForm(transport, this.email, true);
         sendMessageForm.Show();
         sendMessageForm.UpdateClientList(transport.GetClientNameList());
         this.Close();
     } else {
         MessageBox.Show("Вы не подключены к сети");
     }
 }
Exemplo n.º 2
0
        private void messageFormButton_Click(object sender, EventArgs e) {
            if (this.sendMessageForm == null && this.transport != null) {
                sendMessageForm = new SendMessageForm(transport);
                sendMessageForm.Show();
                sendMessageForm.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.onSendMessageFormClose);
                this.transport.InitGettingListClients();

            }
        }