Interaction logic for GamePropertyDialog.xaml
Inheritance: MahApps.Metro.Controls.MetroWindow
Exemplo 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);
         }
     }
 }
Exemplo 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);
				}
			}
		}