示例#1
0
        internal MagnifyForm(MagnifyTool tool, double initialScale)
        {
            if (tool==null)
                throw new ArgumentNullException();

            InitializeComponent();

            // Don't let focus come to this form => doesn't react on mouseclicks
            //this.SetStyle(ControlStyles.Selectable, false);
            //this.SetStyle(ControlStyles.UserMouse, true);

            m_Tool = tool;
            ShowScale(initialScale);
        }
示例#2
0
        internal MagnifyForm(MagnifyTool tool, double initialScale)
        {
            if (tool == null)
            {
                throw new ArgumentNullException();
            }

            InitializeComponent();

            // Don't let focus come to this form => doesn't react on mouseclicks
            //this.SetStyle(ControlStyles.Selectable, false);
            //this.SetStyle(ControlStyles.UserMouse, true);

            m_Tool = tool;
            ShowScale(initialScale);
        }