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); }
public static void FreeStatistic() { Statistic = null; }