コード例 #1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Decompression decom = new Decompression();

            decom.Show();
            this.Hide();
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.SelectedItem.ToString() != "" && textBox1.Text != "")
     {
         if (comboBox1.SelectedItem.ToString() != "")
         {
             if (textBox1.Text == "")
             {
                 MessageBox.Show("Please select any one Name");
             }
             else
             {
                 if (comboBox1.SelectedItem.ToString() == "Source" && textBox1.Text == "source")
                 {
                     Form1 frm2 = new Form1();
                     frm2.Show();
                     this.Hide();
                 }
                 else if (comboBox1.SelectedItem.ToString() == "Mediator" && textBox1.Text == "mediator")
                 {
                     Mediator frm3 = new Mediator();
                     frm3.Show();
                     this.Hide();
                 }
                 else if (comboBox1.SelectedItem.ToString() == "Destination" && textBox1.Text == "destination")
                 {
                     Decompression dcfrm = new Decompression();
                     dcfrm.Show();
                     this.Hide();
                 }
                 else
                 {
                     MessageBox.Show("unAurthorized");
                 }
             }
         }
         else
         {
             MessageBox.Show("Please select any one Name at once");
         }
     }
 }