コード例 #1
0
        private void btnAdd_Click(object sender, System.EventArgs e)
        {
            AddEmailForm addForm = new AddEmailForm("*****@*****.**", "");
            DialogResult result  = addForm.ShowDialog(this);

            if (result != DialogResult.OK)
            {
                return;
            }

            this.messages.Add(new Message(addForm.fromBox.Text, addForm.toBox.Text, addForm.subjectBox.Text, addForm.bodyBox.Text));

            RefreshList( );
        }
コード例 #2
0
ファイル: MainClient.cs プロジェクト: slacklife1/Apostilas
        private void menuComposeNew_Click(object sender, System.EventArgs e)
        {
            // Make a new mail message.
            AddEmailForm addForm = new AddEmailForm("", "*****@*****.**");
            DialogResult result  = addForm.ShowDialog(this);

            if (result != DialogResult.OK)
            {
                return;
            }

            // Add it in.
            this.app.SendMessage(new Message(addForm.fromBox.Text, addForm.toBox.Text, addForm.subjectBox.Text, addForm.bodyBox.Text));

            // Now check to see if anything new was added.
            UpdateUI( );
        }