public virtual ICommandStore CreateCommandStore() { var store = Registry.Resolve <ICommandStore>(JournalStorage.ToString()); store.Initialize(); return(store); }
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; }
/// <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()); }
public DisciplinesWindow(JournalStorage context) { InitializeComponent(); _context = context; }