Esempio n. 1
0
 public EmployeeEditView()
     : base(typeof(EmployeeViewModel))
 {
     InitializeComponent();
     GalleryItemAppearances.Apply(galleryQuickLetters);
     //
     BindCommands();
     BindEditors();
     gvEvaluations.OptionsView.ShowPreview = false;
     gvTasks.OptionsView.ShowPreview       = false;
 }
Esempio n. 2
0
 public EmployeeEditView()
     : base(CreateViewModel <EmployeeViewModel>)
 {
     InitializeComponent();
     GalleryItemAppearances.Apply(galleryQuickLetters);
     //
     ViewModel.EntityChanged += viewModel_EntityChanged;
     BindCommands();
     BindEditors();
     gvEvaluations.OptionsView.ShowPreview = false;
     gvTasks.OptionsView.ShowPreview       = false;
 }
Esempio n. 3
0
 public Orders()
     : base(CreateViewModel <OrderCollectionViewModel>)
 {
     InitializeComponent();
     GalleryItemAppearances.Apply(galleryQuickReports);
     //
     CollectionUIViewModel = DevExpress.Mvvm.POCO.ViewModelSource.Create <CollectionUIViewModel>();
     CollectionPresenter   = CreateCollectionPresenter();
     CollectionPresenter.ReloadEntities();
     //
     BindCommands();
     //
     InitViewKind();
     InitViewLayout();
 }
Esempio n. 4
0
 public Employees()
     : base(CreateViewModel <EmployeeCollectionViewModel>)
 {
     InitializeComponent();
     GalleryItemAppearances.Apply(galleryQuickLetters);
     layoutView.Appearance.FieldCaption.ForeColor            = ColorHelper.DisabledTextColor;
     layoutView.Appearance.FieldCaption.Options.UseForeColor = true;
     //
     CollectionUIViewModel = DevExpress.Mvvm.POCO.ViewModelSource.Create <CollectionUIViewModel>();
     CollectionPresenter   = CreateCollectionPresenter();
     CollectionPresenter.ReloadEntities();
     //
     BindCommands();
     //
     InitViewKind();
     InitViewLayout();
     InitEditors();
 }
 public Customers()
     : base(typeof(CustomerCollectionViewModel))
 {
     InitializeComponent();
     GalleryItemAppearances.Apply(galleryQuickReports);
     layoutView.Appearance.FieldCaption.ForeColor             = ColorHelper.DisabledTextColor;
     layoutView.Appearance.FieldCaption.Options.UseForeColor  = true;
     lvEmployees.Appearance.FieldCaption.ForeColor            = ColorHelper.DisabledTextColor;
     lvEmployees.Appearance.FieldCaption.Options.UseForeColor = true;
     //
     CollectionUIViewModel = DevExpress.Mvvm.POCO.ViewModelSource.Create <CollectionUIViewModel>();
     CollectionPresenter   = CreateCollectionPresenter();
     CollectionPresenter.ReloadEntities(mvvmContext);
     //
     BindCommands();
     //
     InitViewKind();
     InitViewLayout();
 }
Esempio n. 6
0
 public Orders()
     : base(typeof(OrderCollectionViewModel))
 {
     InitializeComponent();
     GalleryItemAppearances.Apply(galleryQuickReports);
     //
     CollectionUIViewModel = DevExpress.Mvvm.POCO.ViewModelSource.Create <CollectionUIViewModel>();
     CollectionPresenter   = CreateCollectionPresenter();
     CollectionPresenter.ReloadEntities(mvvmContext);
     //
     BindCommands();
     //
     InitViewKind();
     InitViewLayout();
     InitEditors();
     //netcore3
     biPrintSubItem.Enabled      = false;
     biNewOrder.Enabled          = false;
     galleryQuickReports.Enabled = false;
     biMap.Enabled = false;
 }
 public Products()
     : base(typeof(ProductCollectionViewModel))
 {
     InitializeComponent();
     GalleryItemAppearances.Apply(galleryQuickReports);
     layoutView.Appearance.FieldCaption.ForeColor            = ColorHelper.DisabledTextColor;
     layoutView.Appearance.FieldCaption.Options.UseForeColor = true;
     colDescription.AppearanceCell.ForeColor            = ColorHelper.DisabledTextColor;
     colDescription.AppearanceCell.Options.UseForeColor = true;
     //
     CollectionUIViewModel = DevExpress.Mvvm.POCO.ViewModelSource.Create <CollectionUIViewModel>();
     CollectionPresenter   = CreateCollectionPresenter();
     CollectionPresenter.ReloadEntities(mvvmContext);
     //
     BindCommands();
     //
     InitViewKind();
     InitViewLayout();
     InitEditors();
     //netcore3
     galleryQuickReports.Enabled = false;
     biPrintSubItem.Enabled      = false;
     biSalesAnalysis.Enabled     = false;
 }