示例#1
0
 public static void ShowStatistic(Form Owner, string s)
 {
     if (Statistic == null)
     {
         Statistic      = new StatisticForm();
         Statistic.Left = 30;
         Statistic.Top  = (Owner.Bottom - Statistic.Height) - 40;
     }
     Statistic.Owner = Owner;
     if (!Statistic.Visible)
     {
         Statistic.Show();
     }
     if (Owner != null)
     {
         if (Owner.ParentForm != null)
         {
             Owner.ParentForm.Focus();
         }
         Owner.Focus();
     }
     Statistic.RefreshData(s);
 }
示例#2
0
 public static void FreeStatistic()
 {
     Statistic = null;
 }