Exemple #1
0
        }           //Done

        private void AddRecipeBtn_Click(object sender, RoutedEventArgs e)
        {
            if (Authenticated.IndexOf("AddRecipes") == -1 && Authenticated.IndexOf("CheckAllRecipes") == -1)
            {
                LogIn logIn = new LogIn();  logIn.ShowDialog();
            }
            else
            {
                AllRecipes allRecipes = new AllRecipes(this);    allRecipes.ShowDialog();
            }
        }       //Done
Exemple #2
0
        }       //Done

        private void AddRecipeBtn_Click(object sender, RoutedEventArgs e)
        {
            if (Authenticated.IndexOf("AddItemTransferReasturant") == -1 && Authenticated.IndexOf("CheckAllTransferResturant") == -1)
            {
                LogIn logIn = new LogIn(); logIn.ShowDialog();
            }
            else
            {
                AllRecipes TheRecipes = new AllRecipes(this);
                TheRecipes.ShowDialog();
            }
        }
        }           //Done Finall Function

        private void RecipeBtn_Click(object sender, RoutedEventArgs e)
        {
            AllRecipes allRecipes = new AllRecipes(this);

            allRecipes.ShowDialog();
            if (Recipecbx.Text != "")
            {
                GenerateBtn.IsEnabled      = true;
                QtyofRecipetxt.IsEnabled   = true;
                UnitofRecipelbl.Visibility = Visibility.Visible;
                RecipesDGV.Visibility      = Visibility.Visible;
                NameoftotalCost.Visibility = Visibility.Visible;
                TotalCosttxt.Visibility    = Visibility.Visible;
                LoadtoDataGrid();
            }
        }           //Done Finall Function
Exemple #4
0
        }           //Done

        private void AddRecipeBtn_Click(object sender, RoutedEventArgs e)
        {
            AllRecipes TheRecipes = new AllRecipes(this);

            TheRecipes.ShowDialog();
        }