예제 #1
0
 /// <summary>
 /// Attempt to open the stats file.
 /// Return true on success, false otherwise.
 /// </summary>
 private bool OpenStatsFile() {
   StatsTable table = new StatsTable();
   if (table.Open(kStatsTableName)) {
     stats_table_ = table;
     return true;
   }
   return false;
 }
예제 #2
0
        /// <summary>
        /// Attempt to open the stats file.
        /// Return true on success, false otherwise.
        /// </summary>
        private bool OpenStatsFile()
        {
            StatsTable table = new StatsTable();

            if (table.Open(kStatsTableName))
            {
                stats_table_ = table;
                return(true);
            }
            return(false);
        }
예제 #3
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenDialog dialog = new OpenDialog();

            dialog.ShowDialog();

            CloseStatsFile();

            StatsTable table = new StatsTable();
            bool       rv    = table.Open(dialog.FileName);

            if (!rv)
            {
                MessageBox.Show("Could not open statsfile: " + dialog.FileName);
            }
            else
            {
                stats_table_ = table;
            }
        }
예제 #4
0
        private void openToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenDialog dialog = new OpenDialog();
              dialog.ShowDialog();

              CloseStatsFile();

              StatsTable table = new StatsTable();
              bool rv = table.Open(dialog.FileName);
              if (!rv)
              {
            MessageBox.Show("Could not open statsfile: " + dialog.FileName);
              }
              else
              {
            stats_table_ = table;
              }
        }