public override void edit() { KontrahenciViewModel id = new KontrahenciViewModel(false); if (WybranyKontrahent != null) { id.WybraneId = WybranyKontrahent.Knt_KntId; Messenger.Default.Send(id); } }
private void ShowAllCustomers(bool x) { KontrahenciViewModel workspace = this.Workspaces.FirstOrDefault(vm => vm is KontrahenciViewModel) as KontrahenciViewModel; if (workspace == null) { workspace = new KontrahenciViewModel(x); this.Workspaces.Add(workspace); } this.SetActiveWorkspace(workspace); }
private void editKontrahent(KontrahenciViewModel id) { this.CreateView(new KontrahentEditViewModel(id.WybraneId)); }