Пример #1
0
 void baseFrame_Scroll(object sender, ScrollEventArgs e)
 {
     currentBaseWindow.baseFrame.SuspendLayout();
     if (currentBaseWindow.TypeOfWindow.Equals(FormDesignerConstants.DataPattern))
     {
         foreach (Control control in currentBaseWindow.baseFrame.Controls)
         {
             if (control is EIBTableConnector)
             {
                 EIBTableConnector tableCOnnector = (EIBTableConnector)control;
                 tableCOnnector.Redraw();
                 break;
             }
         }
     }
     else
     {
         if (currentBaseWindow.TypeOfWindow.Equals(FormDesignerConstants.WorkflowPattern))
         {
             foreach (Control control in currentBaseWindow.baseFrame.Controls)
             {
                 if (control is Workflow.Controls.EIBNodeConnector)
                 {
                     Workflow.Controls.EIBNodeConnector eibNodeConnector = (Workflow.Controls.EIBNodeConnector)control;
                     eibNodeConnector.Redraw();
                     break;
                 }
             }
         }
     }
     currentBaseWindow.baseFrame.ResumeLayout();
 }
Пример #2
0
 void baseFrame_MouseWheel(object sender, MouseEventArgs e)
 {
     currentBaseWindow.baseFrame.SuspendLayout();
     if (currentBaseWindow.TypeOfWindow.Equals(FormDesignerConstants.DataPattern))
     {
         foreach (Control control in currentBaseWindow.baseFrame.Controls)
         {
             if (control is EIBTableConnector)
             {
                 EIBTableConnector tableCOnnector = (EIBTableConnector)control;
                 tableCOnnector.Redraw();
                 break;
             }
         }
     }
     else
     {
         if (currentBaseWindow.TypeOfWindow.Equals(FormDesignerConstants.WorkflowPattern))
         {
             foreach (Control control in currentBaseWindow.baseFrame.Controls)
             {
                 if (control is Workflow.Controls.EIBNodeConnector)
                 {
                     Workflow.Controls.EIBNodeConnector eibNodeConnector = (Workflow.Controls.EIBNodeConnector)control;
                     eibNodeConnector.Redraw();
                     break;
                 }
             }
         }
     }
     currentBaseWindow.baseFrame.ResumeLayout();
     //throw new Exception("The method or operation is not implemented.");
 }