Ejemplo n.º 1
0
        public UIASpyWindow()
        {
            _spyer         = new ElementSpyer();
            _spyer.SpyEnd += ((successful) => {
                StopControlSpyThread();
                if (successful)
                {
                    this.ShowWindow = true;
                }
                else
                {
                    this.Close();
                }
            });
            _spyer.PointCaptured += this.PointToSpiedData;

            InitializeComponent();

            _alwaysOnTop = this.TopMost;


            this.MinimumSize = new System.Drawing.Size(326, 500);
            this.MaximumSize = new System.Drawing.Size(800, 800);

            _alwaysOnTop = btnPin.Checked;

            this.TopMost = _alwaysOnTop;
        }
Ejemplo n.º 2
0
        public AddObjectsWindow(Form owner, AddObjWndModeType ModeType = AddObjWndModeType.Normal)
        {
            spyer         = new ElementSpyer();
            this._owner   = owner;
            spyer.SpyEnd += ((successful) => {
                if (this._owner != null)
                {
                    this._owner.BeginInvoke(new Action(() => { this._owner.Visible = true; }));
                }
                if (successful)
                {
                    this._owner.BeginInvoke(new Action(() => { this.Visible = true; }));
                }
                else
                {
                    this.Close();
                }
            });
            spyer.PointCaptured += this.PointToSpiedData;
            InitializeComponent();
            _modeType            = ModeType;
            objectTree.ImageList = TreeNodeHelper.TreeImageList;
            if (_modeType == AddObjWndModeType.UpdateProperties)
            {
                objectTree.CheckBoxes = false;
            }
            else
            {
                objectTree.CheckBoxes = true;
            }

            propertiesListview = new PropertiesListview(this.listView1);
            propertiesListview.Init();
        }
Ejemplo n.º 3
0
        public BatchAddWindow()
        {
            _spyer = new ElementSpyer();
            _spyer.PointCaptured += ((mousepoint) =>
            {
                _mousePoint = mousepoint;
                _elementsBuilder.PointToElements(_mousePoint);
            });
            _spyer.SpyEnd += ((successful) =>
            {
                //this.Visible = true;
            });

            _elementsBuilder = new ElementsBuilder();
            _elementsBuilder.afterPointToElementsEventHander         += afterPointToElementsEventHander;
            _elementsBuilder.afterReNewElementsByChildEventHander    += afterRenewElementsByChildEventHander;
            _elementsBuilder.afterReNewElementsByAncestorEventHander += afterRenewElementsByAncestorEventHander;

            InitializeComponent();
            breadcrumbControl1.ItemClicked += BreadCrumb_Clicked;
            InitListviewControl();
            propertiesListview = new PropertiesListview(this.listView1);
            propertiesListview.Init();
        }