/// <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; }
/// <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); }
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; } }