상속: System.Windows.Forms.Form
예제 #1
0
 /// <summary>
 /// View a matrix for dubugging purposes.
 /// </summary>
 /// <param name="matrix">The matrix to display.</param>
 /// <param name="modal">The matrix display will pause all other actions until it is closed. ("True" or "False").</param>
 /// <returns>
 /// None.
 /// </returns>
 public static void View(Primitive matrix, Primitive modal)
 {
     try
     {
         InvokeHelper ret = new InvokeHelper(delegate
         {
             try
             {
                 Matrix _matrix = getMatrix(matrix);
                 if (null == _matrix)
                 {
                     return;
                 }
                 FormMatrix _form = new FormMatrix(_matrix);
                 _form.TopMost    = true;
                 if (modal)
                 {
                     _form.ShowDialog(Utilities.ForegroundHandle());
                 }
                 else
                 {
                     _form.Show();
                 }
             }
             catch (Exception ex)
             {
                 Utilities.OnError(Utilities.GetCurrentMethod(), ex);
             }
         });
         FastThread.Invoke(ret);
     }
     catch (Exception ex)
     {
         Utilities.OnError(Utilities.GetCurrentMethod(), ex);
     }
 }
예제 #2
0
파일: Matrix.cs 프로젝트: litdev1/LitDev
 /// <summary>
 /// View a matrix for dubugging purposes.
 /// </summary>
 /// <param name="matrix">The matrix to display.</param>
 /// <param name="modal">The matrix display will pause all other actions until it is closed. ("True" or "False").</param>
 /// <returns>
 /// None.
 /// </returns>
 public static void View(Primitive matrix, Primitive modal)
 {
     try
     {
         Matrix _matrix = getMatrix(matrix);
         if (null == _matrix) return;
         FormMatrix _form = new FormMatrix(_matrix);
         _form.TopMost = true;
         if (modal)
         {
             _form.ShowDialog(Utilities.ForegroundHandle());
         }
         else
         {
             _form.Show();
         }
     }
     catch (Exception ex)
     {
         Utilities.OnError(Utilities.GetCurrentMethod(), ex);
     }
 }