Esempio n. 1
0
        /// <summary>
        /// Event fire when the Details item menu is selected from the
        /// context menu
        /// </summary>
        private void Details_MenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                // Get our snapshot file name
                SnapshotFile sFile = SnapshotView.SelectedItems[0].Tag as SnapshotFile;
                if (sFile == null)
                {
                    return;
                }

                // Load up the snapshot, and display the Game Result Window
                Snapshot Snapshot = new Snapshot(File.ReadAllText(sFile.FilePath));
                using (GameResultForm F = new GameResultForm(Snapshot as GameResult, Snapshot.IsProcessed))
                {
                    F.ShowDialog();
                }
            }
            catch { }
        }
        /// <summary>
        /// Event fire when the Details item menu is selected from the
        /// context menu
        /// </summary>
        private void Details_MenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                // Get our snapshot file name
                SnapshotFile sFile = SnapshotView.SelectedItems[0].Tag as SnapshotFile;
                if (sFile == null) return;

                // Load up the snapshot, and display the Game Result Window
                Snapshot Snapshot = new Snapshot(File.ReadAllText(sFile.FilePath));
                using (GameResultForm F = new GameResultForm(Snapshot as GameResult, Snapshot.IsProcessed))
                {
                    F.ShowDialog();
                }
            }
            catch { }
        }