Example #1
0
        public dlgImage(IconCollection iCol)
        {
            mCol=iCol;

            mUCIC = new ucImageCollection();
            mUCIC.pIsImageCollection = false;
            mUCIC.Dock = DockStyle.Fill;
            Controls.Add(mUCIC);

            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            _cmdCancel.Width = 0;
            _cmdCancel.Height = 0;
            _cmdCancel.SendToBack();

            if (mCol!=null)
            {
                Icon = mCol.Icon(IconCollection.Foto);

                _tb.ImageList = mCol.pImageList;
                _tbbAdd.ImageIndex = mCol.Index(IconCollection.Additive);
                _tbbDel.ImageIndex = mCol.Index(IconCollection.Minus);
                _tbbLoad.ImageIndex = mCol.Index(IconCollection.FolderOpen);
                _tbbCopy.ImageIndex = mCol.Index(IconCollection.Copy);
                _tbbPaste.ImageIndex = mCol.Index(IconCollection.Paste);
                _tbbRotateL.ImageIndex = mCol.Index(IconCollection.ImageRotate_Left);
                _tbbRotateR.ImageIndex = mCol.Index(IconCollection.ImageRotate_Right);
                _tbbFitReal.ImageIndex = mCol.Index(IconCollection.ImageFillReal);
                _tbbZoomPlus.ImageIndex = mCol.Index(IconCollection.Zoom_Plus);
                _tbbZoomMinus.ImageIndex = mCol.Index(IconCollection.Zoom_Minus);
                _tbbForward.ImageIndex = mCol.Index(IconCollection.ArrowForward);
                _tbbBackward.ImageIndex = mCol.Index(IconCollection.ArrowBackward);

                _tbbAdd.Tag = _mnuAdd;
                _tbbDel.Tag = _mnuDel;
                _tbbLoad.Tag = _mnuLoad;
                _tbbCopy.Tag = _mnuCopy;
                _tbbPaste.Tag = _mnuPaste;
                _tbbRotateL.Tag = _mnuRotateL;
                _tbbRotateR.Tag = _mnuRotateR;
                _tbbFitReal.Tag = _mnuSizeReal;
                _tbbZoomPlus.Tag = _mnuSizePlus;
                _tbbZoomMinus.Tag = _mnuSizeMinus;
                _tbbForward.Tag = _mnuForward;
                _tbbBackward.Tag = _mnuBackward;
            }
            else
                _tb.Visible = false;

            Closed += new EventHandler(dlgImage_Closed);
            ResizeRedraw = true;

            mUCIC.CollectionCurrentItemChange += new EventHandler(mUCIC_CollectionCurrentItemChange);
              mUCIC.ImageInformationChange += new EventHandler(mUCIC_ImageInformationChange);
        }
Example #2
0
        public ucCommon()
        {
            _isModified					= false;
            mRegPath						= string.Empty;
            pIconCollection			= null;
            mIsModifiedFlagLock	= false;

            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            this.Load += new EventHandler (DoLoad);
        }
Example #3
0
        public dlgSelectFolder(IconCollection aIconColl)
        {
            _selFolder = string.Empty;

            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            _tvd.ImageList = aIconColl.pImageList;
            _tvd.IndexHDLocal=aIconColl.Index(IconCollection.ShellHDLocal);

            Load += new EventHandler(DoLoad);
            Closed += new EventHandler(DoClosed);

            StartPosition = FormStartPosition.Manual;
        }
Example #4
0
        public CASTreeViewBase()
        {
            pErr = new Error();

            mICol = null;

            pIsMaySelectedNode = false;

            mFindText			=	string.Empty;
            mIsMatchCase	= false;
            mIsWordWhole	= false;
            mIsLocking		= false;

            _prevTreeNodeSelected = null;

            DoubleClick			+= new System.EventHandler(OnDoubleClickTreeItem);
            MouseDown				+= new System.Windows.Forms.MouseEventHandler(OnMouseDown);
            BeforeLabelEdit += new NodeLabelEditEventHandler (OnBeforeLabelEdit);
            AfterLabelEdit	+= new NodeLabelEditEventHandler (OnAfterLabelEdit);

            mMIDel		= null;
            mMIIns		= null;
            mMIChoice	= null;
            mMIRename	= null;
            mMIProp		= null;
            mMIFind		= null;

            #region DragAndDrop:
            AllowDrop = false; // �� ��������� - ��������� !!!
            DragEnter+=new DragEventHandler(this_DragEnter);
            DragOver+=new DragEventHandler(this_DragOver);
            ItemDrag+=new ItemDragEventHandler(this_ItemDrag);
            QueryContinueDrag+=new QueryContinueDragEventHandler(this_QueryContinueDrag);
            DragDrop+=new DragEventHandler(this_DragDrop);
            #endregion
        }
Example #5
0
        public CASTreeViewCommon()
        {
            mCIC = null;
            //mSHNM = null;
            //mIsMayStorySH = true;

            /// <summary>
            /// Required for Windows.Forms Class Composition Designer support
            /// </summary>
            InitializeComponent();
        }