示例#1
0
 private void CtlFlow_Layout(object sender, LayoutEventArgs e)
 {
     if (CtlFlow.Controls.Count > 0)
     {
         CtlFlow.SuspendLayout();
         int ordinalNumber = 0;
         foreach (NeuronBase control in CtlFlow.Controls)
         {
             control.OrdinalNumberChanged(++ordinalNumber);
             control.Width = CtlFlow.Width - (CtlFlow.VerticalScroll.Visible ? System.Windows.Forms.SystemInformation.VerticalScrollBarWidth : 0);
         }
         CtlFlow.ResumeLayout();
     }
 }
示例#2
0
 private void CtlFlow_ControlAdded(object sender, ControlEventArgs e)
 {
     CtlFlow.ScrollControlIntoView(e.Control);
 }