예제 #1
0
        //显示短信群发窗体,并将其父窗体设置为当前窗体
        private void 短信群发RToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSendSMS sendsms = new frmSendSMS();

            sendsms.MdiParent = this;
            sendsms.Show();
        }
예제 #2
0
 //将ListBox中的联系人号码添加到“短信群发”窗体的相应文本框中,并关闭当前窗体
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < listBox2.Items.Count; i++)
     {
         AddUser(listBox2.Items[i].ToString());
         frmSendSMS sms = (frmSendSMS)this.Owner;
         sms.lvInceptNum.Items.Add(num);
     }
     this.Close();
 }
예제 #3
0
 //选择短语,并添加到“短信群发”窗体中的“短信内容”文本框中
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     stringSedn+=dgvShow.SelectedCells[0].Value.ToString();
     frmSendSMS frmsend = (frmSendSMS)this.Owner;
     frmsend.txtSmsContent.Text = stringSedn;
 }