Exemple #1
0
 private void OpenStatFormDay(object sender, MouseEventArgs e)
 {
     if (StatsFormDay == null)
     {
         StatsFormDay = new MaxStatsForm('D');
     }
     StatsFormDay.Show();
 }
Exemple #2
0
 private void OpenStatFormMin(object sender, MouseEventArgs e)
 {
     if (StatsFormMin == null)
     {
         StatsFormMin = new MaxStatsForm('M');
     }
     StatsFormMin.Show();
 }
Exemple #3
0
 private void OpenStatFormHour(object sender, MouseEventArgs e)
 {
     if (StatsFormHour == null)
     {
         StatsFormHour = new MaxStatsForm('H');
     }
     StatsFormHour.Show();
 }
Exemple #4
0
 private void OpenStatFormSec(object sender, MouseEventArgs e)
 {
     if (StatsFormSec == null)
     {
         StatsFormSec = new MaxStatsForm('S');
         StatsFormSec.Show();
     }
 }
Exemple #5
0
        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;
            }
        }