-
Notifications
You must be signed in to change notification settings - Fork 6
/
App.xaml.cs
34 lines (29 loc) · 1.07 KB
/
App.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System.Windows;
using zoom_custom_ui_wpf.Services.Credentials;
using zoom_custom_ui_wpf.Services.Log;
using zoom_custom_ui_wpf.Services.Settings;
using zoom_custom_ui_wpf.Services.Zoom;
using zoom_custom_ui_wpf.ViewModels;
using zoom_custom_ui_wpf.Views;
namespace zoom_custom_ui_wpf
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
protected override async void OnStartup(StartupEventArgs e)
{
// Create app services
IApplicationSettings appSettings = new ApplicationSettings();
ILogService logService = new DebugLogService();
ICredentialsService credentialsService = new CredentialsService();
IZoomService zoomService = new ZoomService(logService);
// Create and show MainWindow
var mainWindow = new MainWindow();
var mainViewModel = new MainViewModel(zoomService, credentialsService);
mainWindow.DataContext = mainViewModel;
mainWindow.ShowDialog();
}
}
}