public static void SetAllSize(int x, int y) { try { if (_form == null || _form.IsDisposed) { _form = new FormCalView(); } if (_form.InvokeRequired) { _form.Invoke(new Action(() => { _form.Show(); _form.WindowState = FormWindowState.Normal; _form.Activate(); _form.SetSize(x, y); })); } else { _form.Show(); _form.WindowState = FormWindowState.Normal; _form.Activate(); _form.SetSize(x, y); } } catch { } }
public static void InitializeForm() { _form = new FormCalView(); }