コード例 #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);
        }
コード例 #4
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 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);
        }
コード例 #6
0
        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);
        }
コード例 #7
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);
        }
コード例 #8
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;
        }