private void New_Click(object sender, RoutedEventArgs e) { var new_win = new NewLanguage(new LanguageModel()); new_win.Show(); this.Close(); }
private void Button_Click(object sender, RoutedEventArgs e) { Button b = (sender) as Button; if (b.CommandParameter != null) { LanguageModel ppp = language.GetLanguagesById(int.Parse(b.CommandParameter.ToString())); var addWindow = new NewLanguage(ppp); //addWindow.ShowDialog(); addWindow.Show(); this.Close(); } }