run() public method

public run ( ) : bool
return bool
コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: kririae/Etupirka
        private void DoOpenGame()
        {
            GameExecutionInfo g = (GameExecutionInfo)GameListView.SelectedItem;

            if (g != null)
            {
                g.run();
            }
            UpdateStatus();
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: kririae/Etupirka
        private void GameListView_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var listView = (ListView)sender;
            var item     = listView.ContainerFromElement((DependencyObject)e.OriginalSource) as ListViewItem;

            if (item != null)
            {
                GameExecutionInfo g = (GameExecutionInfo)GameListView.SelectedItem;
                if (g != null)
                {
                    g.run();
                }
            }
        }