public EmployeeView()
            : base(typeof(SynchronizedEmployeeViewModel))
        {
            InitializeComponent();
            gvTasks.SetViewFontSize(2, 1);
            gvEvaluations.SetViewFontSize(2, 1);
            BindCommands();
            ViewModel.EntityChanged             += ViewModel_EntityChanged;
            officeTabFilter.SelectedItemChanged += OfficeTabFilter_SelectedItemChanged;
            tvEvaluations.ItemCustomize         += tvEvaluations_ItemCustomize;
            tvTasks.ItemCustomize += tvTasks_ItemCustomize;
            gcTasks.SizeChanged   += (s, e) =>
            {
                if (gcTasks.MainView == tvTasks)
                {
                    tvTasks.RefreshData();
                }
            };

            var asm = typeof(MainForm).Assembly;

            svgYes         = SvgImage.FromResources("DevExpress.DevAV.Resources.EvaluationYes.svg", asm);
            svgNo          = SvgImage.FromResources("DevExpress.DevAV.Resources.EvaluationNo.svg", asm);
            priorityImages = SVGHelper.CreateTaskPriorityImages(LookAndFeel, "DevExpress.DevAV.Resources.Tasks.");
            buttonPanel.UseButtonBackgroundImages = false;
        }
Ejemplo n.º 2
0
 void InitEditors()
 {
     colPaymentStatus.ImageOptions.SvgImage  = SvgImage.FromResources(statusResourcePath + "Payment.svg", GetType().Assembly);
     colPaymentStatus.ColumnEdit             = EditorHelpers.CreatePaymentStatusImageComboBox(LookAndFeel, null, gridControl.RepositoryItems);
     colShipmentStatus.ImageOptions.SvgImage = SvgImage.FromResources(statusResourcePath + "Shipment.svg", GetType().Assembly);
     colShipmentStatus.ColumnEdit            = EditorHelpers.CreateShipmentStatusImageComboBox(LookAndFeel, null, gridControl.RepositoryItems);
 }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public static Dictionary <EmployeeTaskPriority, SvgImage> CreateTaskPriorityImages(ISkinProvider skinProvider, string rootPath)
        {
            var result = new Dictionary <EmployeeTaskPriority, SvgImage>();
            var asm    = typeof(MainForm).Assembly;

            result.Add(EmployeeTaskPriority.Low, SvgImage.FromResources(String.Concat(rootPath, "PriorityLow.svg"), asm));
            result.Add(EmployeeTaskPriority.Normal, SvgImage.FromResources(String.Concat(rootPath, "PriorityNormal.svg"), asm));
            result.Add(EmployeeTaskPriority.High, SvgImage.FromResources(String.Concat(rootPath, "PriorityHigh.svg"), asm));
            result.Add(EmployeeTaskPriority.Urgent, SvgImage.FromResources(String.Concat(rootPath, "PriorityUrgent.svg"), asm));
            return(result);
        }
Ejemplo n.º 6
0
        public XafSplashScreen()
        {
            InitializeComponent();
            this.labelControl1.Text = "Copyright © " + DateTime.Now.Year.ToString() + " Company Name" + System.Environment.NewLine + "All right reserved.";

            Assembly executingAssembly = Assembly.GetExecutingAssembly();

            this.pictureEdit1.SvgImage = SvgImage.FromResources(executingAssembly.GetName().Name + ".Images.Logotype.svg", executingAssembly);

            UpdateLabelsPosition();
        }
Ejemplo n.º 7
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);
        }
Ejemplo n.º 8
0
        private void showSplashImageButton_Click(object sender, EventArgs e)
        {
            var image = SvgImage.FromResources("sample_2_17.splash-image.svg", this.GetType().Assembly);

            SplashScreenManager.ShowImage(image, new Size(600, 600), true, true, SplashFormStartPosition.CenterScreen, Point.Empty);
        }