예제 #1
0
        private void AddAttachBtn_Click(object sender, EventArgs e)
        {
            SendNew sendEmailForm = (SendNew)Application.OpenForms["send_new"];

            sendEmailForm.add_attachment(TypeTextBox.Text, URLTextBox.Text);
            this.Close();
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        private void send_button_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            SendNew sendForm = new SendNew();

            sendForm.ShowDialog();
        }