Esempio n. 1
0
        private void DyzBtn_Click(object sender, EventArgs e)
        {
            try
            {
                if (comboBox1.SelectedIndex == 0)
                {
                    this.Hide();
                    var Dsg0 = new Dsg0();
                    Dsg0.Closed += (s, args) => this.Close();
                    Dsg0.Show();
                }

                if (comboBox1.SelectedIndex == 1)
                {
                    this.Hide();
                    var Dsg = new DsgForm();
                    Dsg.Closed += (s, args) => this.Close();
                    Dsg.Show();
                }

                if (comboBox1.SelectedIndex == 2)
                {
                    this.Hide();
                    var Dsg = new PsgForm();
                    Dsg.Closed += (s, args) => this.Close();
                    Dsg.Show();
                }
            }
            catch (Exception v)
            {
                MessageBox.Show("Wybierz uzytkownika");
            }
        }
Esempio n. 2
0
        private void BckBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            var Dsg = new Dsg0();

            Dsg.Closed += (s, args) => this.Close();
            Dsg.Show();
        }