示例#1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());

            Drinks drink = new Drinks();

            //List<string> drinklist = new List<string>();
            //List.Add();
        }
示例#2
0
        public void SaveRecipeB_Click(object sender, EventArgs e)
        {
            using (System.IO.StreamWriter objWriter = new StreamWriter("D:\\recipes.txt", true))
            {
                objWriter.Write(RecipeNameBox.Text + "|");
                objWriter.Write(RecipeTypeBox.Text + "|");
                objWriter.Write(RecipeIngredientBox.Text + "|");
                objWriter.Write(RecipeMixBox.Text + "\n");
                objWriter.WriteLine();

                objWriter.Close();

                MessageBox.Show("Uusi resepti on tallennettu.");

                Drinks d = new Drinks();
            }
        }