public MainWindow() { InitializeComponent(); // Create database if not exists if (!File.Exists(DatabasePath)) { CreateSqlDatabase(); ExecuteCreateQueries(); } SqlConnectionFactory sqlConnectionFactory = CreateSqlConnectionFactory(); TicketsWindow = new TicketsLogWindow(sqlConnectionFactory); Content = MainPage = new MainPage(this, sqlConnectionFactory); WindowStartupLocation = WindowStartupLocation.CenterScreen; }
public Page(Window window, SqlConnectionFactory sqlConnectionFactory) : this(window, null, sqlConnectionFactory) { }
public OrderPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory) : base(window, previousPage, sqlConnectionFactory) { InitializeComponent(); Loaded += (sender, args) => SpeechControl.SetParent(this); ListMovies(); }
public SpeechPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory) : base(window, previousPage, sqlConnectionFactory) { ExecuteBackgroundAction(InitializeSpeech); }
public MainPage(Window window, SqlConnectionFactory sqlConnectionFactory) : base(window, sqlConnectionFactory) { InitializeComponent(); Loaded += (sender, args) => SpeechControl.SetParent(this); }