コード例 #1
0
 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 { }
 }
コード例 #2
0
 public static void InitializeForm()
 {
     _form = new FormCalView();
 }