private void BAddMaterial_Click(object sender, RoutedEventArgs e) { MaterialW mw = new MaterialW(); mw.Owner = this; mw.ShowDialog(); GO(); }
private void OnHyperlinkClick(object sender, RoutedEventArgs e) { if (DGMaterials.SelectedItem == null) { return; } M = DGMaterials.SelectedItem as Material; if (M == null) { return; } MaterialW mw = new MaterialW(M); mw.Owner = this; mw.ShowDialog(); GO(); }