Пример #1
0
 private void RefreshObjectBorderLineColors()
 {
     foreach (UserDefinedColorType curColorType in Enum.GetValues(typeof(UserDefinedColorType)))
     {
         ObjectBorderLineColors.Add(new UserDefinedColor
         {
             Type = curColorType
         });
     }
 }
Пример #2
0
        private void Commons_SelectedLanguageChanged(object sender, EventArgs e)
        {
            var selectedGridLineColorType = SelectedGridLineColor.Type;

            GridLineColors.Clear();
            RefreshGridLineColors();
            SelectedGridLineColor = GridLineColors.SingleOrDefault(x => x.Type == selectedGridLineColorType);

            var selectedObjectBorderLineColorType = SelectedObjectBorderLineColor.Type;

            ObjectBorderLineColors.Clear();
            RefreshObjectBorderLineColors();
            SelectedObjectBorderLineColor = ObjectBorderLineColors.SingleOrDefault(x => x.Type == selectedObjectBorderLineColorType);
        }