Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            string path = Directory.GetCurrentDirectory();

            if (!Directory.Exists(path + @"members"))
            {
                Directory.CreateDirectory(path + @"\members");
            }
            if (!Directory.Exists(path + @"provider"))
            {
                Directory.CreateDirectory(path + @"\provider");
            }
            if (!Directory.Exists(path + @"consultation"))
            {
                Directory.CreateDirectory(path + @"\consultation");
            }
            if (!Directory.Exists(path + @"providerServiceCodes"))
            {
                Directory.CreateDirectory(path + @"\providerServiceCodes");
            }
            if (!Directory.Exists(path + @"accounting"))
            {
                Directory.CreateDirectory(path + @"\accounting");
            }

            //Test

            /*
             * //member test.
             * Info temp = new Info();
             * temp.name = "David Cobbley";
             * temp.ID = 123456789;
             * temp.address = "4600 Nw 174th ave.";
             * temp.city = "portland";
             * temp.zip = 97229;
             * temp.valid = "valid";
             *
             * Members.addMembers(temp);
             */

            //consultation test
            Consultation consultationTest = new Consultation("11-30-12", "11:24:13", "11-30-12", "these are my comments", 123456789, 987654321, 135246);

            consultationTest.writeServiceToDisk();
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            Consultation cons = new Consultation(textBox18.ToString(), textBox17.ToString(), textBox16.ToString(), textBox15.ToString(), Convert.ToInt32(textBox14), Convert.ToInt32(textBox18), Convert.ToInt32(textBox18));

            cons.writeServiceToDisk();
        }