/// <summary> /// Create a new instance of MainWindow /// </summary> public MainWindow() { InitializeComponent(); LoadRepositoryJSON(); LoadRepositories(); DataContext = new MainWindowContext(); }
public MainWindow() { InitializeComponent(); DBConnection.SetDefaultSettings(); MainWindowContext = new MainWindowContext(); DataContext = MainWindowContext; Filtr = new WorkFilter(); InsertFromTable.InputGestures.Add(new KeyGesture(Key.V, ModifierKeys.Control)); }
public MainWindow(USERS user) { InitializeComponent(); this.user = user; DataContext = new MainWindowContext(this.user); }
public MainWindow() { InitializeComponent(); DataContext = new MainWindowContext(); }
private void Tab_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) => _windowContext = e.NewValue as MainWindowContext;
public MainWindow() { InitializeComponent(); DataContext = new MainWindowContext(); }
public MainWindow(MainWindowContext context) : this() { this.DataContext = context; }