Ejemplo n.º 1
0
        public static void SetupPropertyProvider(CogToolPropertyProvider p, Control gui, object tool, string path)
        {
            p.SetPath(gui, path);

            TextBox box = gui as TextBox;

            if (box != null)
            {
                Type t = GetPropertyType(tool, path);
                if (TypeIsNumeric(t))
                {
                    box.TextAlign = HorizontalAlignment.Right;
                }
            }
        }
Ejemplo n.º 2
0
 private void InitializeComponent()
 {
     this.components        = new Container();
     this.mToolTips         = new ToolTip(this.components);
     this.mPropertyProvider = new CogToolPropertyProvider();
     base.SuspendLayout();
     this.mToolTips.Active                        = false;
     this.mToolTips.AutoPopDelay                  = 30000;
     this.mToolTips.InitialDelay                  = 500;
     this.mToolTips.ReshowDelay                   = 100;
     this.mPropertyProvider.ElectricProvider      = null;
     this.mPropertyProvider.EnableDelegateQueuing = false;
     this.mPropertyProvider.ErrorProvider         = null;
     this.mPropertyProvider.Subject               = null;
     this.mPropertyProvider.SubjectInUse          = false;
     base.AutoScaleMode = AutoScaleMode.None;
     base.Name          = "CogEditControlBaseV2";
     base.Size          = new Size(472, 296);
     base.ResumeLayout(false);
 }