private void btAddServis_Click(object sender, RoutedEventArgs e) { Forms.AddEndCangeServis add = new AddEndCangeServis(); add.ShowDialog(); if (add.DialogResult == true) { Refresh(); } }
private void tcChange_Click(object sender, RoutedEventArgs e) { var bt = e.OriginalSource as Button; var serv = bt.DataContext as BL.ModelView.ServisView; Forms.AddEndCangeServis cange = new AddEndCangeServis(serv); cange.ShowDialog(); Refresh(); }