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);
 }