Exemplo n.º 1
0
        private void validateUserEntry()
        {
            // Checks the value of the text.

            // Initializes the variables to pass to the MessageBox.Show method.
            string            message = "Введені не всі дані, ввести ще раз?";
            string            caption = "Помилка";
            MessageBoxButtons buttons = MessageBoxButtons.YesNo;
            DialogResult      result;

            // Displays the MessageBox.
            result = MessageBox.Show(message, caption, buttons);
            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                // Closes the parent form.
                this.Close();
                Form7 newform = new Form7();
                newform.Show();
            }
            else
            {
                this.Close();
            }
        }
Exemplo n.º 2
0
        private void button6_Click(object sender, EventArgs e)
        {
            Form7 newform = new Form7();

            newform.Show();
        }