private void EditMenuItem_Click(object sender, RoutedEventArgs e) { EditWindow editAsset = new EditWindow(this.Assets.SelectedItem as Asset); editAsset.Owner = this; editAsset.ShowDialog(); }
private void AddMenuItem_Click(object sender, RoutedEventArgs e) { EditWindow addAsset = new EditWindow(); addAsset.Owner = this; addAsset.ShowDialog(); }