Ejemplo n.º 1
0
        public ABCAutoSearchPanel( )
        {
            InitializeComponent();
            this.Size = new Size(472, 128);

            this.btnSearch.Image  = ABCImageList.GetImage16x16("SearchDoc");
            this.btnSearch.Click += new EventHandler(btnSearch_Click);
        }
Ejemplo n.º 2
0
 // constructor
 public ABCPopupGridLookUpEditForm(ABCGridLookUpEdit ownerEdit)
     : base(ownerEdit)
 {
     fShowOkButton  = true;
     OkButton.Image = ABCImageList.GetImage16x16("Clear");
     OkButton.Text  = "Clear";
     //         OkButton.ButtonStyle=DevExpress.XtraEditors.Controls.BorderStyles.UltraFlat;
     //        OkButton.Left=CloseButton.Left+10;
 }
Ejemplo n.º 3
0
        private void InitTreelist( )
        {
            #region Image
            curImageList.Images.Add(ABCImageList.GetImage16x16("Catagory"));
            curImageList.Images.Add(ABCImageList.GetImage16x16("View"));
            this.treeBinding.StateImageList = curImageList;
            this.treeBinding.GetStateImage += new DevExpress.XtraTreeList.GetStateImageEventHandler(treeBinding_GetStateImage);
            #endregion

            this.treeBinding.OptionsBehavior.Editable                  = false;
            this.treeBinding.OptionsBehavior.ShowEditorOnMouseUp       = false;
            this.treeBinding.OptionsBehavior.CloseEditorOnLostFocus    = true;
            this.treeBinding.OptionsBehavior.ImmediateEditor           = false;
            this.treeBinding.OptionsSelection.UseIndicatorForSelection = false;
            this.treeBinding.OptionsView.ShowColumns      = true;
            this.treeBinding.OptionsView.ShowVertLines    = false;
            this.treeBinding.OptionsView.ShowHorzLines    = false;
            this.treeBinding.OptionsView.ShowFocusedFrame = false;
            this.treeBinding.OptionsBehavior.DragNodes    = true;
            this.treeBinding.OptionsSelection.MultiSelect = false;

            this.treeBinding.FocusedNodeChanged += new DevExpress.XtraTreeList.FocusedNodeChangedEventHandler(treeBinding_FocusedNodeChanged);
            treeBinding.BindingContextChanged   += new EventHandler(treeBinding_BindingContextChanged);
            treeBinding.AfterDragNode           += new NodeEventHandler(treeBinding_AfterDragNode);
            treeBinding.DragDrop           += new DragEventHandler(treeBinding_DragDrop);
            treeBinding.CustomDrawNodeCell += new CustomDrawNodeCellEventHandler(treeBinding_CustomDrawNodeCell);

            #region Column
            treeBinding.BeginUpdate();
            treeBinding.Columns.Add();
            treeBinding.Columns[0].FieldName    = "Name";
            treeBinding.Columns[0].Caption      = "Name";
            treeBinding.Columns[0].VisibleIndex = 0;

            treeBinding.Columns.Add();
            treeBinding.Columns[1].FieldName    = "TableName";
            treeBinding.Columns[1].Caption      = "TableName";
            treeBinding.Columns[1].VisibleIndex = 1;
            treeBinding.EndUpdate();
            #endregion

            InitPopupMenu();
            this.treeBinding.MouseDown += new MouseEventHandler(treeBinding_MouseDown);
        }
Ejemplo n.º 4
0
        //void ABCSimpleButton_Click ( object sender , EventArgs e )
        //{
        //    switch ( ButtonType )
        //    {
        //        case ABCButtonType.Cancel:
        //            this.FindForm().Close();
        //            break;
        //    }
        //}

        public void InvalidateIcon( )
        {
            switch (IconType)
            {
            case ABCIconType.Add:
                this.Image = ABCImageList.GetImage16x16("Add");
                break;

            case ABCIconType.Approve:
                this.Image = ABCImageList.GetImage16x16("Approve");
                break;

            case ABCIconType.Cancel:
                this.Image = ABCImageList.GetImage16x16("Cancel");
                break;

            case ABCIconType.Chart:
                this.Image = ABCImageList.GetImage16x16("Chart");
                break;

            case ABCIconType.Config:
                this.Image = ABCImageList.GetImage16x16("Config");
                break;

            case ABCIconType.Delete:
                this.Image = ABCImageList.GetImage16x16("Delete");
                break;

            case ABCIconType.Edit:
                this.Image = ABCImageList.GetImage16x16("Edit");
                break;

            case ABCIconType.New:
                this.Image = ABCImageList.GetImage16x16("New");
                break;

            case ABCIconType.Info:
                this.Image = ABCImageList.GetImage16x16("Info");
                break;

            case ABCIconType.Refresh:
                this.Image = ABCImageList.GetImage16x16("Refresh");
                break;

            case ABCIconType.Print:
                this.Image = ABCImageList.GetImage16x16("Print");
                break;

            case ABCIconType.Save:
                this.Image = ABCImageList.GetImage16x16("Save");
                break;

            case ABCIconType.Report:
                this.Image = ABCImageList.GetImage16x16("Note");
                break;

            case ABCIconType.Wizard:
                this.Image = ABCImageList.GetImage16x16("Wizard");
                break;

            case ABCIconType.Copy:
                this.Image = ABCImageList.GetImage16x16("Copy");
                break;

            case ABCIconType.Next:
                this.Image = ABCImageList.GetImage16x16("Right");
                break;

            case ABCIconType.Previous:
                this.Image = ABCImageList.GetImage16x16("Left");
                break;

            case ABCIconType.Lock:
                this.Image = ABCImageList.GetImage16x16("Lock");
                break;

            case ABCIconType.Post:
                this.Image = ABCImageList.GetImage16x16("Post");
                break;

            case ABCIconType.Mail:
                this.Image = ABCImageList.GetImage16x16("Mail");
                break;

            case ABCIconType.Calc:
                this.Image = ABCImageList.GetImage16x16("Calc");
                break;

            case ABCIconType.Close:
                this.Image = ABCImageList.GetImage16x16("Close");
                break;

            case ABCIconType.Calendar:
                this.Image = ABCImageList.GetImage16x16("Calendar");
                break;

            case ABCIconType.Warning:
                this.Image = ABCImageList.GetImage16x16("Warning");
                break;
            }
        }