public TransportView(IMessageSender messageSender, IRepository repository, WayBillView billView) { this.messageSender = messageSender; this.repository = repository; container = new UnityContainer(); this.billView = billView; GetTransports(); if (billView.IsGuide) { Content = "Выбрать"; IsGuide = false; } else { Content = "Изменить"; IsGuide = true; } GetFuelMarkCommand = new DelegateCommand(() => GetFuelMark()); GetCurrentRowIdCommand = new DelegateCommand(() => GetCurrentRowId()); SaveTransportDatasCommand = new DelegateCommand(() => SaveTransportDatas()); ChangeTransportDatasCommand = new DelegateCommand(() => ChangeTransportDatas()); DeleteTransportCommand = new DelegateCommand(() => DeleteTransport()); }
public DriverBillHelperView(IMessageSender messageSender, IRepository repository, WayBillView billView) { this.messageSender = messageSender; this.repository = repository; container = new UnityContainer(); this.billView = billView; GetDatas(); GetHelperRowIdCommand = new DelegateCommand(() => GetHelperRowId()); DriverDemoCommand = new DelegateCommand <string>((s) => DriverDemo(s)); }
public DriverView(IMessageSender messageSender, IRepository repository, WayBillView billView) { this.messageSender = messageSender; this.repository = repository; container = new UnityContainer(); this.billView = billView; if (billView.IsGuide) { Content = "Выбрать"; IsGuide = false; } else { Content = "Изменить"; IsGuide = true; } GetDrivers(); GetCurrentRowIdCommand = new DelegateCommand(() => GetCurrentRowId()); SaveDriverDatasCommand = new DelegateCommand(() => SaveDriverDatas()); DeleteDriverCommand = new DelegateCommand(() => DeleteDriver()); ChangeDriverCommand = new DelegateCommand(() => ChangeDriver()); }