Exemple #1
0
        private void ScalingChanged(object sender, object NewValue)
        {
            MultipleChoiceProperty mcp = sender as MultipleChoiceProperty;
            int ind = mcp.ChoiceIndex(NewValue as string);

            if (ind >= 0)
            {
                Scale = (Scaling)ind;
            }
        }
Exemple #2
0
        public override void Added(IPropertyPage pp)
        {
            base.Added(pp);
            subEntries = new IPropertyEntry[1];
            string[] choices = StringTable.GetSplittedStrings("LineWidth.Scaling");
            string   choice  = "";

            if ((int)scale < choices.Length)
            {
                choice = choices[(int)scale];
            }
            MultipleChoiceProperty mcp = new MultipleChoiceProperty("LineWidth.Scale", choices, choice);

            mcp.ValueChangedEvent += new ValueChangedDelegate(ScalingChanged);
            subEntries[0]          = mcp;
            base.resourceId        = "LineWidthName";
        }