示例#1
0
        public virtual ICommandStore CreateCommandStore()
        {
            var store = Registry.Resolve <ICommandStore>(JournalStorage.ToString());

            store.Initialize();
            return(store);
        }
示例#2
0
        public GroupsWindow(JournalStorage context)
        {
            InitializeComponent();
            _context = context;

            var groups = _context.Groups.ToList();

            groupComboBox.ItemsSource  = groups;
            groupComboBox.SelectedItem = groups[0];
        }
 public AuthorizationWindow(JournalStorage context)
 {
     InitializeComponent();
     _context = context;
 }
示例#4
0
 /// <summary>
 /// Inject a custom command storage factory here. StorageMode property will be set to Custom
 /// </summary>
 /// <param name="factory"></param>
 public void SetCommandStoreFactory(Func <EngineConfiguration, ICommandStore> factory)
 {
     JournalStorage = StorageType.Custom;
     Register(args => factory.Invoke(this), JournalStorage.ToString());
 }
示例#5
0
 public DisciplinesWindow(JournalStorage context)
 {
     InitializeComponent();
     _context = context;
 }