Exemplo n.º 1
0
            /// <summary>
            /// Применяются настроки для элемента
            /// </summary>
            public DirectivesDiscrepanciesControl CreateControl()
            {
                DirectivesDiscrepanciesControl control = new DirectivesDiscrepanciesControl();

                AdjustControl(control);
                return(control);
            }
Exemplo n.º 2
0
 /// <summary>
 /// Настроить элемент управления
 /// </summary>
 /// <param name="control"></param>
 public void AdjustControl(DirectivesDiscrepanciesControl control)
 {
     if (control == null)
     {
         return;
     }
     control.AdditionalFilter         = additionalFilter;
     control.AutoSize                 = true;
     control.AutoSizeMode             = AutoSizeMode.GrowAndShrink;
     control.Dock                     = DockStyle.Top;
     control.BackColor                = Color.Transparent;
     control.Caption                  = caption;
     control.DirectiveSelectionFilter = selectionFilter;
     control.DiscrepanciesFilter      = discrepanciesFilter;
     control.DirectiveContainer       = directiveContainer;
 }