コード例 #1
0
        private DataVM()
        {
            #region CreateListOfPages
            MenuItemsData = new ObservableCollection <MenuItemDataVM>()
            {
                new MenuItemDataVM("Дети", ChildrenDataVM.GetInstanse()),
                new MenuItemDataVM("Шаблоны меню", MenuDataVM.GetInstanse()),
                new MenuItemDataVM("Сотрудники", EmployeeDataVM.GetInstanse()),
                new MenuItemDataVM("Пользователи", UserDataVM.GetInstanse()),
                new MenuItemDataVM("Поставщики", SupplierDataVM.GetInstanse()),
                new MenuItemDataVM("Продукты", ProductsDataVM.GetInstanse()),
                new MenuItemDataVM("Накладные", InvoiceDataVM.GetInstanse()),
                new MenuItemDataVM("Партии", PartyDataVM.GetInstanse()),
                new MenuItemDataVM("Документы", DocumentDataVM.GetInstanse())
            };
            #endregion //CreateListOfPages

            #region CreateEventClickButton

            backspaceButton      = () => { };
            BackspaceButtonClick = new MenuItemDataCommand(Backspace_btn_click);

            #endregion //CreateEventClickButton
        }
コード例 #2
0
 public Document()
 {
     InitializeComponent();
     DataContext = DocumentDataVM.GetInstanse();
 }