示例#1
0
文件: MainForm.cs 项目: Cycov/TrackMe
 private void statistics_Click(object sender, EventArgs e)
 {
     if (statisticsForm.IsDisposed)
     {
         statisticsForm = new StatisticsForm(sessions);
     }
     statisticsForm.Show();
 }
示例#2
0
文件: MainForm.cs 项目: Cycov/TrackMe
 private void LoadSessions()
 {
     if (File.Exists(Properties.Settings.Default.filename))
     {
         sessions = JsonConvert.DeserializeObject <List <SessionData> >(File.ReadAllText(Properties.Settings.Default.filename));
     }
     else
     {
         sessions = new List <SessionData>();
     }
     statisticsForm = new StatisticsForm(sessions);
 }