Interaction logic for GamePropertyDialog.xaml
Inheritance: MahApps.Metro.Controls.MetroWindow
Esempio n. 1
0
 private void GameProperty_Click(object sender, RoutedEventArgs e)
 {
     if (GameListView.SelectedItems.Count > 0)
     {
         GameExecutionInfo         i  = (GameExecutionInfo)GameListView.SelectedItem;
         Dialog.GamePropertyDialog gd = new Dialog.GamePropertyDialog(i);
         gd.Owner = this;
         if (gd.ShowDialog() == true)
         {
             UpdateStatus();
             db.UpdateGameInfoAndExec(i);
         }
     }
 }
Esempio n. 2
0
		private void GameProperty_Click(object sender, RoutedEventArgs e)
		{
			if (GameListView.SelectedItems.Count > 0)
			{
				GameExecutionInfo i = (GameExecutionInfo)GameListView.SelectedItem;
				Dialog.GamePropertyDialog gd = new Dialog.GamePropertyDialog(i);
				gd.Owner = this;
				if (gd.ShowDialog() == true)
				{
					UpdateStatus();
					db.UpdateGameInfoAndExec(i);
				}
			}
		}