示例#1
0
        internal static object CreateShipmentStatusImageCollection(ISkinProvider provider)   // TODO
        {
            SvgImageCollection ret = new SvgImageCollection();

            ret.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.Orders.Shipment" + "Awaiting.svg", typeof(EditorHelpers).Assembly));
            ret.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.Orders.Shipment" + "Transit.svg", typeof(EditorHelpers).Assembly));
            ret.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.Orders.Shipment" + "Received.svg", typeof(EditorHelpers).Assembly));
            return(ret);
        }
示例#2
0
        public static void InitPersonComboBox(RepositoryItemImageComboBox edit)
        {
            SvgImageCollection iCollection = new SvgImageCollection();

            iCollection.Add(Properties.Resources.Mr1);
            iCollection.Add(Properties.Resources.Ms1);
            edit.Items.Add(new ImageComboBoxItem(Properties.Resources.Male, ContactGender.Male, 0));
            edit.Items.Add(new ImageComboBoxItem(Properties.Resources.Female, ContactGender.Female, 1));
            edit.SmallImages = iCollection;
        }
示例#3
0
        internal static object CreatePaymentStatusImageCollection(ISkinProvider provider)
        {
            SvgImageCollection ret = new SvgImageCollection();

            ret.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.Orders.Payment" + "Unpaid.svg", typeof(EditorHelpers).Assembly));
            ret.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.Orders.Payment" + "Paid.svg", typeof(EditorHelpers).Assembly));
            ret.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.Orders.Payment" + "Refund.svg", typeof(EditorHelpers).Assembly));
            ret.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.Orders.Payment" + "Other.svg", typeof(EditorHelpers).Assembly));
            return(ret);
        }
        public override SvgImageCollection CreateSvgImageCollection()
        {
            SvgImageCollection result = base.CreateSvgImageCollection();
            SvgImage           image  = new SvgImage(typeof(CustomColumnImageProvider), "FieldListCustomIcons.StarIcon.svg");

            result.Add(image);
            categoryNameIndex = result.Count - 1;

            return(result);
        }
示例#5
0
        static SvgImageCollection CreatePersonPrefixImageCollection()
        {
            SvgImageCollection svgImageCollection = new SvgImageCollection();

            svgImageCollection.ImageSize = new Size(16, 16);
            svgImageCollection.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.PersonPrefix." + "Doctor.svg", typeof(EditorHelpers).Assembly));
            svgImageCollection.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.PersonPrefix." + "Mr.svg", typeof(EditorHelpers).Assembly));
            svgImageCollection.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.PersonPrefix." + "Ms.svg", typeof(EditorHelpers).Assembly));
            svgImageCollection.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.PersonPrefix." + "Miss.svg", typeof(EditorHelpers).Assembly));
            svgImageCollection.Add(SvgImage.FromResources("DevExpress.DevAV.Resources.PersonPrefix." + "Mrs.svg", typeof(EditorHelpers).Assembly));
            return(svgImageCollection);
        }
 public void Start()
 {
     if (_initialized)
     {
         return;
     }
     _allImages16x16 = _mapper.MapFrom(ApplicationIcons.All(), IconSizes.Size16x16);
     _allImages24x24 = _mapper.MapFrom(ApplicationIcons.All(), IconSizes.Size24x24);
     _allImages32x32 = _mapper.MapFrom(ApplicationIcons.All(), IconSizes.Size32x32);
     _allImages48x48 = _mapper.MapFrom(ApplicationIcons.All(), IconSizes.Size48x48);
     _initialized    = true;
 }
        public SvgImageCollection MapFrom(IEnumerable <ApplicationIcon> listOfIcons, IconSize iconSize)
        {
            var imageList = new SvgImageCollection {
                ImageSize = iconSize
            };

            foreach (var icon in listOfIcons)
            {
                imageList.Add(icon.IconName, icon);
            }
            return(imageList);
        }
示例#8
0
        static SvgImageCollection CreateFlagStatusImageCollection()
        {
            SvgImageCollection ret = new SvgImageCollection();

            ret.Add(Properties.Resources.Today_Flag1);
            ret.Add(Properties.Resources.Tomorrow_Flag1);
            ret.Add(Properties.Resources.ThisWeek_Flag1);
            ret.Add(Properties.Resources.NextWeek_Flag1);
            ret.Add(Properties.Resources.NoDate_Flag1);
            ret.Add(Properties.Resources.Custom_Flag1);
            ret.Add(Properties.Resources.Completed__2_);
            return(ret);
        }
示例#9
0
        public static void InitTitleComboBox(RepositoryItemImageComboBox edit)
        {
            SvgImageCollection iCollection = new SvgImageCollection();

            iCollection.Add(Properties.Resources.Doctor1);
            iCollection.Add(Properties.Resources.Miss1);
            iCollection.Add(Properties.Resources.Mr1);
            iCollection.Add(Properties.Resources.Mrs1);
            iCollection.Add(Properties.Resources.Ms1);
            iCollection.Add(Properties.Resources.Professor1);
            edit.Items.Add(new ImageComboBoxItem(string.Empty, ContactTitle.None, -1));
            edit.Items.Add(new ImageComboBoxItem(GetTitleNameByContactTitle(ContactTitle.Dr), ContactTitle.Dr, 0));
            edit.Items.Add(new ImageComboBoxItem(GetTitleNameByContactTitle(ContactTitle.Miss), ContactTitle.Miss, 1));
            edit.Items.Add(new ImageComboBoxItem(GetTitleNameByContactTitle(ContactTitle.Mr), ContactTitle.Mr, 2));
            edit.Items.Add(new ImageComboBoxItem(GetTitleNameByContactTitle(ContactTitle.Mrs), ContactTitle.Mrs, 3));
            edit.Items.Add(new ImageComboBoxItem(GetTitleNameByContactTitle(ContactTitle.Ms), ContactTitle.Ms, 4));
            edit.Items.Add(new ImageComboBoxItem(GetTitleNameByContactTitle(ContactTitle.Prof), ContactTitle.Prof, 5));
            edit.SmallImages = iCollection;
        }
示例#10
0
        public ChartEditorView(IMenuBarItemToBarItemMapper barItemMapper, IImageListRetriever imageListRetriever)
        {
            _barItemMapper = barItemMapper;
            InitializeComponent();
            //to avoid grouping state being lost
            layoutControl.UseLocalBindingContext = true;
            layoutControl.AllowCustomization     = false;
            _allImages                     = imageListRetriever.AllImages16x16;
            _barManager.Images             = _allImages;
            _barManager.MainMenu           = null;
            _barManager.TransparentEditors = true;
            _barMenu.OptionsBar.AllowQuickCustomization = false;
            var repositoryItemCheckEditForUsedIn = new RepositoryItemCheckEdit
            {
                UseParentBackground = true,
                Caption             = string.Empty,
                GlyphAlignment      = HorzAlignment.Near,
                AutoWidth           = false
            };

            _barEditItemForUsedIn = new BarEditItem(_barManager)
            {
                Edit             = repositoryItemCheckEditForUsedIn,
                Alignment        = BarItemLinkAlignment.Right,
                AutoFillWidth    = false,
                Width            = 20,
                Caption          = Captions.UseSelected,
                CaptionAlignment = HorzAlignment.Near,
                PaintStyle       = BarItemPaintStyle.Caption
            };

            _barEditItemForUsedIn.SuperTip = new SuperToolTip().WithText(ToolTips.UseSelectedCurvesToolTip);

            repositoryItemCheckEditForUsedIn.EditValueChanged += (o, e) => OnEvent(() => changeUsed(o));

            repositoryItemCheckEditForUsedIn.ValueGrayed = null;
        }