Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();

            CreateLetter createLetterForm = new CreateLetter("", "", "", "");

            createLetterForm.Owner         = this;
            createLetterForm.StartPosition = FormStartPosition.CenterParent;
            createLetterForm.Show();
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (letterAuthorBox.Text == "")
            {
                MessageBox.Show("Выберите письмо", "Ошибка");
                return;
            }

            this.Hide();

            CreateLetter createLetterForm = new CreateLetter("", letterAuthorBox.Text, NetworkService.GetSharedService().currentSession.username.ToString(), letterTextBox.Text);

            createLetterForm.Owner         = this;
            createLetterForm.StartPosition = FormStartPosition.CenterParent;
            createLetterForm.Show();
        }
Ejemplo n.º 3
0
        private void SendButton_Click(object sender, EventArgs e)
        {
            if (letterAuthorBox.Text == "")
            {
                MessageBox.Show("Выберите письмо", "Ошибка");
                return;
            }

            this.Hide();

            CreateLetter createLetterForm = new CreateLetter(letterAuthorBox.Text, letterAuthorBox.Text, "", letterTextBox.Text);

            createLetterForm.Owner         = this;
            createLetterForm.StartPosition = FormStartPosition.CenterParent;
            createLetterForm.Show();
        }