private void CreateNewMaterial(object sender, RoutedEventArgs e) { var form = new StockForm(); form.ShowDialog(); SeachClick(null, null); }
private void OnEditMaterial(object sender, RoutedEventArgs e) { int ID = (int)((Button)sender).CommandParameter; var form = new StockForm(ID); form.ShowDialog(); SeachClick(null, null); }