Пример #1
0
        private void showSendForm(List <String> listReplyName)
        {
            try
            {
                if (Visible == false)
                {
                    return;
                }
                Cursor.Current = Cursors.WaitCursor;
                if (!CheckPing())
                {
                    Cursor.Current = Cursors.Default;
                    MessageBox.Show(SettingList["MsgBoxNoPing"], SettingList["MsgBoxCaptionWarning"], MessageBoxButtons.OK);
                    return;
                }
                if (!KeepAliveLogon())
                {
                    Cursor.Current = Cursors.Default;
                    MessageBox.Show(SettingList["MsgBoxNoRemoting"], SettingList["MsgBoxCaptionWarning"], MessageBoxButtons.OK);
                    return;
                }
                Cursor.Current = Cursors.Default;

                SendForm sendForm = new SendForm(SettingList, ServerObj, userName, info, listReplyName);
                sendForm.ShowDialog();
            }
            catch (Exception ex)
            {
                Cursor.Current = Cursors.Default;
                MessageBox.Show(ex.Message, SettingList["MsgBoxCaptionError"], MessageBoxButtons.OK);
            }
        }
Пример #2
0
        private void sendToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SendForm message = new SendForm(client);

            message.ShowDialog();
        }
Пример #3
0
 private void sendToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SendForm message = new SendForm(client);
     message.ShowDialog();
 }