Exemplo n.º 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;
 }
Exemplo n.º 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);
        }
Exemplo n.º 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;
            }
        }
Exemplo n.º 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;
              }
        }