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