Inheritance: System.Windows.Forms.Form
Exemplo n.º 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);
     }
 }
Exemplo n.º 2
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
     {
         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);
     }
 }