void Select_click() { if (cboSources.Text == null || cboSources.Text == "") { Common.setEmptyField("Download Sources", Program.ApplicationName); cboSources.Focus(); return; } else { if (cboSources.SelectedValue.ToString() == "0001")//paydirect code { FrmPayDirect.CheuqeOption = "0001"; using (FrmPayDirect frmPayDirect = new FrmPayDirect()) { frmPayDirect.ShowDialog(); } } else if (cboSources.SelectedValue.ToString() == "0002")//reemsonline { using (FrmDownload frmDownload = new FrmDownload()) { frmDownload.ShowDialog(); } } else if (cboSources.SelectedValue.ToString() == "0003")//update cheque state { FrmPayDirect.CheuqeOption = "0003"; using (FrmPayDirect frmPayDirect = new FrmPayDirect()) { frmPayDirect.ShowDialog(); } } } }
public FrmPayDirect() { InitializeComponent(); setImages(); ToolStripEvent(); publicStreetGroup = this; bttnBrowse.Click += Bttn_Click; bttnPreview.Click += Bttn_Click; bttnImport.Click += Bttn_Click; txtFiletoLoad.TextChanged += txtFiletoLoad_TextChanged; //label6.Text = dateTimePicker1.Value.Subtract(1); if (Program.UserID == "" || Program.UserID == null) { user = "******"; } else { user = Program.UserID; } }
public FrmPayDirect() { InitializeComponent(); setImages(); ToolStripEvent(); publicStreetGroup = this; bttnBrowse.Click += Bttn_Click; bttnPreview.Click += Bttn_Click; bttnImport.Click += Bttn_Click; bttnReset.Click += bttnReset_Click; txtFiletoLoad.TextChanged += txtFiletoLoad_TextChanged; this.dateTimePicker1.Value = DateTime.Today.AddDays(-1); //label6.Text = dateTimePicker1.Value.Subtract(1); Cheuqe = CheuqeOption; if (Program.UserID == "" || Program.UserID == null) { user = "******"; } else { user = Program.UserID; } gridView1.RowStyle += gridView1_RowStyle; radioGroup1.SelectedIndexChanged += radioGroup1_SelectedIndexChanged; }