Beispiel #1
0
 /// <summary>
 /// Происходит отображение данных об ограничениях
 /// </summary>
 public void UpdateInformation()
 {
     infoViewerMaxResource.SetVisibleItemsAmount(currentMaintenanceDirective.Limitations.Length);
     infoViewerNotification.SetVisibleItemsAmount(currentMaintenanceDirective.Limitations.Length);
     for (int i = 0; i < currentMaintenanceDirective.Limitations.Length; i++)
     {
         TemplateMaintenanceLimitation limitation = currentMaintenanceDirective.Limitations[i];
         infoViewerMaxResource.SetValue(i, limitation.MaxResources);
         infoViewerNotification.SetValue(i, limitation.Notification);
         checkBoxs[i].Text    = limitation.CheckType.FullName;
         checkBoxs[i].Checked = limitation.IsInuse;
     }
 }
 /// <summary>
 /// Происходит отображение данных об ограничениях
 /// </summary>
 public void DisplayLimitations()
 {
     infoViewerMaxResource.SetVisibleItemsAmount(directive.Limitations.Length);
     infoViewerNotification.SetVisibleItemsAmount(directive.Limitations.Length);
     for (int i = 0; i < directive.Limitations.Length; i++)
     {
         MaintenanceLimitation limitation = directive.Limitations[i];
         infoViewerMaxResource.SetValue(i, limitation.SinceLastPerformanceLimitation);
         infoViewerNotification.SetValue(i, limitation.Notification);
         checkBoxs[i].Text    = limitation.CheckType.FullName;
         checkBoxs[i].Checked = limitation.IsInuse;
     }
 }