public BulkUpdaterVM(UpdaterModel model)
 {
     this.model       = model;
     bulkUpdateFields = new List <string> {
         string.Empty, "MAP", "UOM", "Unpublish", "Weight"
     };
 }
Esempio n. 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();
        }
Esempio n. 3
0
 public UpdaterVM(UpdaterModel model)
 {
     this.model   = model;
     SearchOption = "SKU";
 }
Esempio n. 4
0
 public BulkUpaterView(UpdaterModel model)
 {
     InitializeComponent();
     DataContext = new BulkUpdaterVM(model);
 }
Esempio n. 5
0
 public MainWindow(UpdaterModel model)
 {
     this.model = model;
     InitializeComponent();
     this.DataContext = new UpdaterVM(this.model);
 }