//.......................................................... protected virtual void OnIzmena(IIzmenaAvionaViewModel model) { if (Izmena != null) { IzmenaEvent(this, model); } }
public IzmenaAviona(IIzmenaAvionaViewModel vm) { InitializeComponent(); _vm = vm; _vm.CloseTriggerEvent += new CloseTriggerEventHandler(_vm_CloseTriggerEvent); this.DataContext = _vm; }
public override void Execute(object parameter) { IIzmenaAvionaViewModel ivm = (IIzmenaAvionaViewModel)parameter; ivm.TrenutniAvion = _vm.Repository.VratiAvionId(_vm.Selected.Oznaka); _vm.izmenaAviona(ivm); }
void _vm_IzmenaEvent(object sender, IIzmenaAvionaViewModel model) { IzmenaAviona inr = new IzmenaAviona(model); inr.ShowDialog(); }
public IzmenaAvionaAbstractCommand(IIzmenaAvionaViewModel vm) { _vm = vm; }
//........................................................ public void izmenaAviona(IIzmenaAvionaViewModel model) { OnIzmena(model); }
public IzmenaAvionaIzmenaCommand(IIzmenaAvionaViewModel vm) : base(vm) { }