private void AddAttachBtn_Click(object sender, EventArgs e) { SendNew sendEmailForm = (SendNew)Application.OpenForms["send_new"]; sendEmailForm.add_attachment(TypeTextBox.Text, URLTextBox.Text); this.Close(); }
private void linkLabel11_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (sentDataView.SelectedRows.Count != 1) { return; } string senderBody = sentDataView.SelectedRows[0].Cells["BODY"].Value.ToString(); SendNew sendForm = new SendNew("", senderBody); sendForm.ShowDialog(); }
private void linkLabel2_LinkClicked_1(object sender, LinkLabelLinkClickedEventArgs e) { if (archiveDataView.SelectedRows.Count != 1) { return; } SqlConnection conn = new SqlConnection(connectionString); conn.Open(); string senderId = archiveDataView.SelectedRows[0].Cells["SENDERID"].Value.ToString(); string senderEmailQuery = "SELECT [EMAIL] FROM [USER] WHERE USERID = " + senderId; SqlCommand command = new SqlCommand(senderEmailQuery, conn); string senderEmail = command.ExecuteScalar().ToString(); conn.Close(); SendNew sendForm = new SendNew(senderEmail); sendForm.ShowDialog(); }
private void send_button_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { SendNew sendForm = new SendNew(); sendForm.ShowDialog(); }