Example #1
0
 public OperationViewModel(ISystemPersistence persistence, SemaphoreSlim semaphoreSlim)
 {
     this.persistence = persistence;
     this.gate        = semaphoreSlim;
     Load();
     AutoSelection = false;
 }
 public GroupManagerPage(ISystemPersistence persistence)
 {
     this.persistence     = persistence;
     this.gate            = new SemaphoreSlim(1, 1);
     this.TableCollection = new ObservableCollection <GroupTableModel>();
     this.TableCollection.CollectionChanged += TableCollection_CollectionChanged;
     InitializeComponent();
 }
Example #3
0
        public MainWindow()
        {
            SemaphoreSlim  semaphore = new(1, 1);
            FileInteractor context   = new(semaphore);

            persistence = new SystemPersistence(context);

            InitializeComponent();
            AddAccounts_Click(this, new RoutedEventArgs());
        }
Example #4
0
 public DeleteAccountCommandHandler(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }
Example #5
0
 public GetGroupMembersQueryHandler(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }
Example #6
0
 public PostController(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }
Example #7
0
 public UpdatePostCommandHandler(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }
 public ActionsManagerPage(ISystemPersistence persistence)
 {
     this.persistence  = persistence;
     AccountCollection = new ObservableCollection <AccountTableModel>();
     InitializeComponent();
 }
Example #9
0
 public GetPostsQueryHandler(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }
Example #10
0
 public AccountViewModel(ISystemPersistence persistence, SemaphoreSlim semaphoreSlim)
 {
     this.persistence = persistence;
     this.gate        = semaphoreSlim;
     LoadData();
 }
Example #11
0
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
        public MainWindowViewModel(ISystemPersistence persistence)
        {
            this.persistence = persistence;
            OpenAccountView();
        }
Example #12
0
 public DeleteGroupCommandHandler(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }
Example #13
0
 public GroupViewModel(ISystemPersistence persistence, SemaphoreSlim semaphoreSlim)
 {
     this.persistence = persistence;
     this.gate        = semaphoreSlim;
     Load();
 }
Example #14
0
 public GroupController(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }
Example #15
0
 public PostViewModel(ISystemPersistence persistence, SemaphoreSlim gate)
 {
     this.persistence = persistence;
     this.gate        = gate;
     Load();
 }
Example #16
0
 public AccountController(ISystemPersistence persistence)
 {
     this.persistence = persistence;
 }