Exemple #1
0
 public Form1()
 {
     InitializeComponent();
     bindTextboxToProperties(group_excel);
     bindTextboxToProperties(group_server);
     bindTextboxToProperties(group_ecm);
     cb_ecm.Checked      = Properties.Settings.Default.ecm_use_ecm;
     sbsControl          = new SBSControl();
     data_settings       = sbsControl.data_settings.Copy();
     SBind.DataSource    = data_settings;
     data_sbs.DataSource = data_settings;
     data_sbs.DataSource = SBind;
     data_sbs.Refresh();
 }
Exemple #2
0
 public static void Main(String[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (args.Length > 0)
     {
         SBSControl sbscontrol = new SBSControl();
         ConsoleInterface consoleIntf = new ConsoleInterface();
         UploadSalesControl control = new UploadSalesControl(consoleIntf, sbscontrol);
         control.beginProcess(args[0]);
         //Console.ReadKey();
         /*
         while (!consoleIntf.completed)
         {
             System.Threading.Thread.Sleep(2000);
         }
         */
         consoleIntf.workDone();
     }
     else {
         Application.Run(new Form1());
     }
 }
Exemple #3
0
 public UploadSalesControl(UploadSalesInterface uploadSalesInterface, SBSControl sbsControl)
 {
     this.uploadSalesInterface = uploadSalesInterface;
     this.sbsControl           = sbsControl;
 }