コード例 #1
0
 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();
             }
         }
     }
 }
コード例 #2
0
        public FrmDownload()
        {
            InitializeComponent();

            publicStreetGroup = this;

            setImages();

            ToolStripEvent();

            Load += OnFormLoad;

            OnFormLoad(null, null);

            //NavBars.ToolStripEnableDisable(toolStrip, null, false);
        }