예제 #1
0
 public BulkUpdaterVM(UpdaterModel model)
 {
     this.model       = model;
     bulkUpdateFields = new List <string> {
         string.Empty, "MAP", "UOM", "Unpublish", "Weight"
     };
 }
예제 #2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            Application.Current.DispatcherUnhandledException += HandleUnhandledException;
            log = new Log4NetLogger();

            DBServer = ConfigurationManager.AppSettings["DBServer"];
            DBName   = ConfigurationManager.AppSettings["DBName"];
            DBUser   = ConfigurationManager.AppSettings["DBUser"];
            DBPwd    = ConfigurationManager.AppSettings["DBPwd"];

            log.Log("Starting Application", Category.Info, Priority.Low);
            Model = new UpdaterModel(DBServer, DBUser, DBPwd, DBName);

            MainWindow main = new MainWindow(Model);

            main.Show();
        }
예제 #3
0
 public UpdaterVM(UpdaterModel model)
 {
     this.model   = model;
     SearchOption = "SKU";
 }
예제 #4
0
 public BulkUpaterView(UpdaterModel model)
 {
     InitializeComponent();
     DataContext = new BulkUpdaterVM(model);
 }
예제 #5
0
 public MainWindow(UpdaterModel model)
 {
     this.model = model;
     InitializeComponent();
     this.DataContext = new UpdaterVM(this.model);
 }