Beispiel #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");
        }
Beispiel #2
0
 public static DialogResult Show(string Text, string Caption, string btnOK, string btnCancel)
 {
     MsgBox = new LPGStations();
     MsgBox.lblStation.Text = Text;
     MsgBox.btnCancel.Text  = btnCancel;
     MsgBox.btnOK.Text      = btnOK;
     MsgBox.ShowDialog();
     return(result);
 }
Beispiel #3
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");
            }
        }