Exemple #1
0
 private void CreateImageCollection()
 {
     _selectImageCollection = new ImageCollection();
     _selectImageCollection.AddImage(IconManager.GetBitmap(EIcons.folder_16));
     _selectImageCollection.AddImage(IconManager.GetBitmap(EIcons.window_info_16));
     _selectImageCollection.AddImage(IconManager.GetBitmap(EIcons.oracleforms_16));
     _treeList.SelectImageList = _selectImageCollection;
 }
 internal FrmExceptionMessageBox(Exception exception)
 {
     InitializeComponent();
     picError.Image       = IconManager.GetBitmap(EIcons.close_b_32);
     meExceptionText.Text = exception.ToString();
     if (exception.InnerException != null)
     {
         meInnerException.Text = exception.InnerException.ToString();
     }
     meStackTrace.Text = exception.StackTrace;
 }
Exemple #3
0
        public PopupMenuHelper(Control control, bool allowCreate, bool allowEdit, bool allowDelete)
        {
            BarButtonItem item;
            var           barManager = new BarManager {
                Form = control
            };

            _popupMenu = new PopupMenu(barManager);

            if (allowCreate)
            {
                item = new BarButtonItem(barManager, General.PopupMenuNew)
                {
                    Glyph = IconManager.GetBitmap(EIcons.add_16)
                };
                item.ItemClick += (sender, args) => FireItemClick(PopupMenuItemType.Create);
                _popupMenu.AddItem(item);
            }

            if (allowEdit)
            {
                item = new BarButtonItem(barManager, General.PopupMenuEdit)
                {
                    Glyph = IconManager.GetBitmap(EIcons.write_16)
                };
                item.ItemClick += (sender, args) => FireItemClick(PopupMenuItemType.Edit);
                _popupMenu.AddItem(item);
            }

            if (allowDelete)
            {
                item = new BarButtonItem(barManager, General.PopupMenuDelete)
                {
                    Glyph = IconManager.GetBitmap(EIcons.delete_16)
                };
                item.ItemClick += (sender, args) => FireItemClick(PopupMenuItemType.Delete);
                _popupMenu.AddItem(item);
            }
        }
Exemple #4
0
        public MenuItemImageHandler(EImageSize imageSize)
        {
            _imageSize = imageSize;

            if (_imageSize == EImageSize.Small)
            {
                _defaultImage     = IconManager.GetBitmap(EIcons.window_info_16);
                _oracleFormsImage = IconManager.GetBitmap(EIcons.oracleforms_16);
                _folder           = IconManager.GetBitmap(EIcons.folder_16);
            }
            else if (_imageSize == EImageSize.Middle)
            {
                _defaultImage     = IconManager.GetBitmap(EIcons.window_info_24);
                _oracleFormsImage = IconManager.GetBitmap(EIcons.oracleforms_24);
                _folder           = IconManager.GetBitmap(EIcons.folder_24);
            }
            else if (_imageSize == EImageSize.Large)
            {
                _defaultImage     = IconManager.GetBitmap(EIcons.window_info_32);
                _oracleFormsImage = IconManager.GetBitmap(EIcons.oracleforms_32);
                _folder           = IconManager.GetBitmap(EIcons.folder_32);
            }
        }