Beispiel #1
0
        public PenModifyDlg(Root root)
        {
            Root = root;
            InitializeComponent();
            OkBtn.Text     = Root.Local.ButtonOkText;
            CancelBtn.Text = Root.Local.ButtonCancelText;
            this.Text      = Root.Local.OptionsHotkeysColorEdit;
            string sin = Root.Local.OptionsPensFading;
            int    i   = sin.IndexOf("(");

            if (i < 0)
            {
                i = sin.Length;
            }
            FadingCB.Text            = sin.Substring(0, i);
            DashStyleGrp.Text        = Root.Local.OptionsLineStyle;
            HSBitmap                 = new Bitmap(SVSquare.Width, SVSquare.Height);
            SVSquare.BackgroundImage = HSBitmap;
            DoubleBuffered           = true;
            CancelBtn.Select(); // in order to prevent input during hotkey hold down
        }