private void OpenStatFormDay(object sender, MouseEventArgs e) { if (StatsFormDay == null) { StatsFormDay = new MaxStatsForm('D'); } StatsFormDay.Show(); }
private void OpenStatFormMin(object sender, MouseEventArgs e) { if (StatsFormMin == null) { StatsFormMin = new MaxStatsForm('M'); } StatsFormMin.Show(); }
private void OpenStatFormHour(object sender, MouseEventArgs e) { if (StatsFormHour == null) { StatsFormHour = new MaxStatsForm('H'); } StatsFormHour.Show(); }
private void OpenStatFormSec(object sender, MouseEventArgs e) { if (StatsFormSec == null) { StatsFormSec = new MaxStatsForm('S'); StatsFormSec.Show(); } }
public void MaxStatsDisposed(char type) { switch (type) { case 'S': StatsFormSec = null; break; case 'M': StatsFormMin = null; break; case 'H': StatsFormHour = null; break; case 'D': StatsFormDay = null; break; } }