예제 #1
0
        private void CustomFormatRule_Load(object sender, EventArgs e)
        {
            kcolMin.SelectedColor = colMin;

            kcolMed.SelectedColor = colMedium;

            kcolMax.SelectedColor = colMax;

            int selectedIndex = -1;

            string[] names = Enum.GetNames(typeof(EnumConditionalFormatType));

            for (int i = 0; i < names.Length; i++)
            {
                if (mode.ToString().Equals(names[i]))
                {
                    selectedIndex = i;
                }

                kcmbFormat.Items.Add(new KryptonListItem(LanguageManager.Instance.GetStringGB(names[i]))
                {
                    Tag = names[i]
                });
            }

            kcmbFormat.SelectedIndex = selectedIndex;
        }
예제 #2
0
        private void CustomFormatStyle_Load(object sender, EventArgs e)
        {
            KColorBtnMin.SelectedColor    = colMin;
            KColorBtnMedium.SelectedColor = colMedium;
            KColorBtnMax.SelectedColor    = colMax;

            int selected = -1;

            string[] names = Enum.GetNames(typeof(EnumConditionalFormatType));
            for (int i = 0; i < names.Length; i++)
            {
                if (mode.ToString().Equals(names[i]))
                {
                    selected = i;
                }
                KComboBoxStyle.Items.Add(new KryptonListItem(LangManager.Instance.GetString(names[i]))
                {
                    Tag = names[i]
                });
            }
            KComboBoxStyle.SelectedIndex = selected;
        }