예제 #1
0
        private void New_Click(object sender, RoutedEventArgs e)
        {
            var new_win = new NewLanguage(new LanguageModel());

            new_win.Show();

            this.Close();
        }
예제 #2
0
        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();
            }
        }