コード例 #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);
 }