Exemple #1
0
 private void RefreshGridLineColors()
 {
     foreach (UserDefinedColorType curColorType in Enum.GetValues(typeof(UserDefinedColorType)))
     {
         GridLineColors.Add(new UserDefinedColor
         {
             Type = curColorType
         });
     }
 }
Exemple #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);
        }