コード例 #1
0
        private void Button_Save_Click(object sender, RoutedEventArgs e)
        {
              View_Model_Game.In_Game_Edit_Name(curent_game, TextBlock_Game_Name.Text);
              View_Model_Game.In_Game_Edit_Studio_id(curent_game, ComboBox_Game_Studio.SelectedItem.ToString());
              View_Model_Game.In_Game_Edit_Style_id(curent_game, ComboBox_Game_Style.SelectedItem.ToString());
              View_Model_Game.In_Game_Edit_Year_Releas(curent_game, Calendar);
              View_Model_Game.In_Game_Edit_Game_Mod_id(curent_game, ComboBox_Game_Mod.SelectedItem.ToString());
              View_Model_Game.In_Game_Edit_Game_Count_Sell(curent_game, TextBlock_Game_Sells.Text);
          
            MessageBox.Show("Информация успешно обновлена", "Успех", MessageBoxButton.OK, MessageBoxImage.Information);
            Close();

        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: Gafchik/Game_Shop
 private void Button_Dell_Click(object sender, RoutedEventArgs e)
 {
     View_Model_Game.Dell_Game(Combo_box_Game.SelectedItem); Load();
 }