Пример #1
0
        private void btnPassenger_Click(object sender, EventArgs e)
        {
            FrmFrequentContacts frequentContacts = new FrmFrequentContacts(userName);

            this.Hide();
            DialogResult dialog = frequentContacts.ShowDialog();

            if (dialog == DialogResult.Cancel)
            {
                this.Show();
            }
        }
Пример #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            FrmFrequentContacts frequentContacts = new FrmFrequentContacts("hgf");

            frequentContacts.ShowDialog();
        }