コード例 #1
0
ファイル: Options.xaml.cs プロジェクト: JNPrince/foodchooser
        //Main app buttons

        private void Edit_Database_Button_Click(object sender, RoutedEventArgs e)
        {
            if (DatabaseSelectorBox.Text == "")
            {
                System.Windows.MessageBox.Show("Please select a database", "Select database");
            }

            if (DatabaseSelectorBox.Text == "Meal Selector")
            {
                MealSelectorDatabaseViewer databaseWindow = new MealSelectorDatabaseViewer();
                databaseWindow.Show();
            }
            if (DatabaseSelectorBox.Text == "Meal Planner - Home Cooked")
            {
                MealPlannerDatabaseViewer databaseWindow = new MealPlannerDatabaseViewer();
                databaseWindow.Show();
            }
        }
コード例 #2
0
        private void View_Database_Click(object sender, RoutedEventArgs e)
        {
            MealSelectorDatabaseViewer datbaseWindow = new MealSelectorDatabaseViewer();

            datbaseWindow.Show();
        }