Example #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            this.Hide();
            LPGStations lpg = new LPGStations(label2.Text);

            lpg.Show();
            //LPG.Show("Select LPG Station", "", "OK", "Cancel");
        }
Example #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (cmbLPG.SelectedIndex == 0)
            {
                LPGStations.Show(cmbLPG.Text, "", "Download", "Back"); MsgBox.Close();
            }
            else if (cmbLPG.SelectedIndex == 1)
            {
                LPGStations.Show(cmbLPG.Text, "", "Download", "Back"); MsgBox.Close();
            }
            else if (cmbLPG.SelectedIndex == 2)
            {
                LPGStations.Show(cmbLPG.Text, "", "Download", "Back"); MsgBox.Close();
            }
            else if (cmbLPG.SelectedIndex == 3)
            {
                LPGStations.Show(cmbLPG.Text, "", "Download", "Back"); MsgBox.Close();
            }

            else
            {
                MessageBox.Show("Please Select at least one Station to view");
            }
        }