Example #1
0
        private void manageRentsButton_Click(object sender, RoutedEventArgs e)
        {
            /*
                    Initialize new movie management window and
                    present known movies to the user.
             */

            // RAII.
            DatabaseManager<TenantDatabase> databaseManager = new DatabaseManager<TenantDatabase>(StringConsts.TenantDatabaseLocation);

            TenantDatabase tenantDatabase = databaseManager.Locate();

            RentManagerWindow rentManagerWindow = new RentManagerWindow(tenantDatabase)
            {
                Topmost = true
            };

            rentManagerWindow.ShowDialog();
        }
Example #2
0
        private void manageRentsButton_Click(object sender, RoutedEventArgs e)
        {
            /*
             *      Initialize new movie management window and
             *      present known movies to the user.
             */

            // RAII.
            DatabaseManager <TenantDatabase> databaseManager = new DatabaseManager <TenantDatabase>(StringConsts.TenantDatabaseLocation);

            TenantDatabase tenantDatabase = databaseManager.Locate();

            RentManagerWindow rentManagerWindow = new RentManagerWindow(tenantDatabase)
            {
                Topmost = true
            };

            rentManagerWindow.ShowDialog();
        }