예제 #1
0
        private void ClearTextBoxes()
        {
            CocktailsListBox.ClearSelected();

            CocktailNameLabel.Text  = "";
            IngredientsTextBox.Text = "";
            RecipeTextBox.Text      = "";
            CocktailImageBox.Image  = CocktailImageBox.InitialImage;
        }
예제 #2
0
        private void RefreshListContent()
        {
            DataAccess.GetCocktails();

            CocktailsListBox.DataSource = DataAccess.Cocktails;

            CocktailsListBox.ClearSelected();
            NameTextBox.Text            = "";
            IngredientTagsComboBox.Text = "";
            TagList.Clear();
            FullIngredientInfoTextBox.Text = "";
            RecipeTextBox.Text             = "";

            ClearImage();
        }