示例#1
0
        public EditSectionDialog(StoreSectionViewModel viewModel)
        {
            InitializeComponent();

            _viewModel  = viewModel;
            DataContext = _viewModel;
            viewModel.PrepareSectionToEdit();
        }
 public AddSectionDialog(StoreSectionViewModel viewModel)
 {
     InitializeComponent();
     IsOKPressed = false;
     DataContext = viewModel;
 }
 public adminSections()
 {
     InitializeComponent();
     _viewModel  = new StoreSectionViewModel(new DatabaseService(new SqlStoreDatabaseFactory()), new ErrorMessageBox());
     DataContext = _viewModel;
 }