コード例 #1
0
ファイル: Home.cs プロジェクト: rossspoon/bvcms
        private void Home_Load(object sender, EventArgs e)
        {
            button1.Click += buttonclick;
            button2.Click += buttonclick;
            button3.Click += buttonclick;
            button4.Click += buttonclick;
            button5.Click += buttonclick;
            button6.Click += buttonclick;
            button7.Click += buttonclick;
            button8.Click += buttonclick;
            button9.Click += buttonclick;
            button0.Click += buttonclick;
            button10.Click += button10_Click;
            button11.Click += button10_Click;
            button12.Click += button10_Click;
            textBox1.Focus();
            textBox1.Select(textBox1.Text.Length, 0);

            var form = Parent as BaseForm;

            this.Visible = true;
            this.textBox1.Focus();

            namesearch = new EnterText("Name Search", true);
            form.ControlsAdd(namesearch);

            family = new ListFamily();
            form.ControlsAdd(family);

            families = new ListFamilies(family);
            form.ControlsAdd(families);

            names = new ListNames(family);
            form.ControlsAdd(names);

            classes = new ListClasses();
            form.ControlsAdd(classes);

            first = new EnterText("First Name", true);
            form.ControlsAdd(first);

            goesby = new EnterText("Goes By", true);
            form.ControlsAdd(goesby);

            last = new EnterText("Last Name", true);
            form.ControlsAdd(last);

            email = new EnterText("Email");
            form.ControlsAdd(email);

            addr = new EnterText("Address", true);
            form.ControlsAdd(addr);

            zip = new EnterText("Zip");
            form.ControlsAdd(zip);

            dob = new EnterDate("Birthday");
            form.ControlsAdd(dob);

            cellphone = new EnterPhone("Cell Phone");
            form.ControlsAdd(cellphone);

            homephone = new EnterPhone("Home Phone");
            form.ControlsAdd(homephone);

            allergy = new EnterText("Allergies");
            form.ControlsAdd(allergy);

            gendermarital = new EnterGenderMarital();
            form.ControlsAdd(gendermarital);

            namesearch.GoBack += new EventHandler(namesearch_GoBack);
            namesearch.GoNext += new EventHandler(namesearch_GoNext);

            first.GoBack += new EventHandler(first_GoBack);
            first.SetBackNext(null, goesby);
            goesby.SetBackNext(first, last);
            last.SetBackNext(goesby, email);
            email.SetBackNext(last, addr);
            addr.SetBackNext(email, zip);
            zip.SetBackNext(addr, dob);

            if (Program.AskGrade)
            {
                grade = new EnterNumber("Grade");
                form.ControlsAdd(grade);

                dob.SetBackNext(zip, grade);
                grade.SetBackNext(dob, cellphone);
                cellphone.SetBackNext(grade, homephone);
            }
            else
            {
                dob.SetBackNext(zip, cellphone);
                cellphone.SetBackNext(dob, homephone);
            }

            if (Program.AskEmFriend)
            {
                parent = new EnterText("Parent Name", true);
                form.ControlsAdd(parent);
                emfriend = new EnterText("Emergency Friend", true);
                form.ControlsAdd(emfriend);
                emphone = new EnterPhone("Emergency Phone");
                form.ControlsAdd(emphone);

                homephone.SetBackNext(cellphone, parent);
                parent.SetBackNext(homephone, emfriend);
                emfriend.SetBackNext(parent, emphone);
                if (Program.AskChurchName)
                {
                    church = new EnterText("Church Name", true);
                    form.ControlsAdd(church);

                    emphone.SetBackNext(emfriend, church);
                    church.SetBackNext(emphone, allergy);
                    allergy.SetBackNext(church, null);
                }
                else
                {
                    emphone.SetBackNext(emfriend, allergy);
                    allergy.SetBackNext(emphone, null);
                }
            }
            else
            {
                if (Program.AskChurchName)
                {
                    church = new EnterText("Church Name", true);
                    form.ControlsAdd(church);

                    homephone.SetBackNext(cellphone, church);
                    church.SetBackNext(homephone, allergy);
                    allergy.SetBackNext(church, null);
                }
                else
                {
                    homephone.SetBackNext(cellphone, allergy);
                    allergy.SetBackNext(homephone, null);
                }
            }
            allergy.GoNext += new EventHandler(allergy_GoNext);
        }
コード例 #2
0
ファイル: Home.cs プロジェクト: sengithub/SenSourcecode
        private void Home_Load(object sender, EventArgs e)
        {
            button1.Click  += buttonclick;
            button2.Click  += buttonclick;
            button3.Click  += buttonclick;
            button4.Click  += buttonclick;
            button5.Click  += buttonclick;
            button6.Click  += buttonclick;
            button7.Click  += buttonclick;
            button8.Click  += buttonclick;
            button9.Click  += buttonclick;
            button0.Click  += buttonclick;
            button10.Click += button10_Click;
            button11.Click += button10_Click;
            button12.Click += button10_Click;
            textBox1.Focus();
            textBox1.Select(textBox1.Text.Length, 0);

            var form = Parent as BaseForm;

            this.Visible = true;
            this.textBox1.Focus();

            namesearch = new EnterText("Name Search", true);
            form.ControlsAdd(namesearch);

            family = new ListFamily();
            form.ControlsAdd(family);

            families = new ListFamilies(family);
            form.ControlsAdd(families);

            names = new ListNames(family);
            form.ControlsAdd(names);

            classes = new ListClasses();
            form.ControlsAdd(classes);

            first = new EnterText("First Name", true);
            form.ControlsAdd(first);

            goesby = new EnterText("Goes By", true);
            form.ControlsAdd(goesby);

            last = new EnterText("Last Name", true);
            form.ControlsAdd(last);

            email = new EnterText("Email");
            form.ControlsAdd(email);

            addr = new EnterText("Address", true);
            form.ControlsAdd(addr);

            zip = new EnterText("Zip");
            form.ControlsAdd(zip);

            dob = new EnterDate("Birthday");
            form.ControlsAdd(dob);

            cellphone = new EnterPhone("Cell Phone");
            form.ControlsAdd(cellphone);

            homephone = new EnterPhone("Home Phone");
            form.ControlsAdd(homephone);

            allergy = new EnterText("Allergies");
            form.ControlsAdd(allergy);

            gendermarital = new EnterGenderMarital();
            form.ControlsAdd(gendermarital);

            namesearch.GoBack += new EventHandler(namesearch_GoBack);
            namesearch.GoNext += new EventHandler(namesearch_GoNext);

            first.GoBack += new EventHandler(first_GoBack);
            first.SetBackNext(null, goesby);
            goesby.SetBackNext(first, last);
            last.SetBackNext(goesby, email);
            email.SetBackNext(last, addr);
            addr.SetBackNext(email, zip);
            zip.SetBackNext(addr, dob);

            if (Program.AskGrade)
            {
                grade = new EnterNumber("Grade");
                form.ControlsAdd(grade);

                dob.SetBackNext(zip, grade);
                grade.SetBackNext(dob, cellphone);
                cellphone.SetBackNext(grade, homephone);
            }
            else
            {
                dob.SetBackNext(zip, cellphone);
                cellphone.SetBackNext(dob, homephone);
            }

            if (Program.AskEmFriend)
            {
                parent = new EnterText("Parent Name", true);
                form.ControlsAdd(parent);
                emfriend = new EnterText("Emergency Friend", true);
                form.ControlsAdd(emfriend);
                emphone = new EnterPhone("Emergency Phone");
                form.ControlsAdd(emphone);

                homephone.SetBackNext(cellphone, parent);
                parent.SetBackNext(homephone, emfriend);
                emfriend.SetBackNext(parent, emphone);
                if (Program.AskChurchName)
                {
                    church = new EnterText("Church Name", true);
                    form.ControlsAdd(church);

                    emphone.SetBackNext(emfriend, church);
                    church.SetBackNext(emphone, allergy);
                    allergy.SetBackNext(church, null);
                }
                else
                {
                    emphone.SetBackNext(emfriend, allergy);
                    allergy.SetBackNext(emphone, null);
                }
            }
            else
            {
                if (Program.AskChurchName)
                {
                    church = new EnterText("Church Name", true);
                    form.ControlsAdd(church);

                    homephone.SetBackNext(cellphone, church);
                    church.SetBackNext(homephone, allergy);
                    allergy.SetBackNext(church, null);
                }
                else
                {
                    homephone.SetBackNext(cellphone, allergy);
                    allergy.SetBackNext(homephone, null);
                }
            }
            allergy.GoNext += new EventHandler(allergy_GoNext);
        }
コード例 #3
0
        private void Home2_Load(object sender, EventArgs e)
        {
            button1.Click  += buttonclick;
            button2.Click  += buttonclick;
            button3.Click  += buttonclick;
            button4.Click  += buttonclick;
            button5.Click  += buttonclick;
            button6.Click  += buttonclick;
            button7.Click  += buttonclick;
            button8.Click  += buttonclick;
            button9.Click  += buttonclick;
            button0.Click  += buttonclick;
            button10.Click += button10_Click;
            button11.Click += button10_Click;
            button12.Click += button10_Click;
            textBox1.Focus();
            textBox1.Select(textBox1.Text.Length, 0);

            Program.CursorHide();

            var form = Parent as BaseForm;

            this.Visible = true;
            this.textBox1.Focus();

            namesearch = new EnterText("Name Search", true);
            form.ControlsAdd(namesearch);

            family = new ListFamily2();
            form.ControlsAdd(family);

            families = new ListFamilies(family);
            form.ControlsAdd(families);

            names = new ListNames(family);
            form.ControlsAdd(names);

            first = new EnterText("First Name", true);
            form.ControlsAdd(first);

            goesby = new EnterText("Goes By", true);
            form.ControlsAdd(goesby);

            last = new EnterText("Last Name", true);
            form.ControlsAdd(last);

            email = new EnterText("Email");
            form.ControlsAdd(email);

            addr = new EnterText("Address", true);
            form.ControlsAdd(addr);

            zip = new EnterText("Zip");
            form.ControlsAdd(zip);

            dob = new EnterDate("Birthday");
            form.ControlsAdd(dob);

            cellphone = new EnterPhone("Cell Phone");
            form.ControlsAdd(cellphone);

            homephone = new EnterPhone("Home Phone");
            form.ControlsAdd(homephone);

            gendermarital = new EnterGenderMarital2();
            form.ControlsAdd(gendermarital);

            namesearch.GoBack += namesearch_GoBack;
            namesearch.GoNext += namesearch_GoNext;

            first.GoBack += first_GoBack;
            first.SetBackNext(null, goesby);
            goesby.SetBackNext(first, last);
            last.SetBackNext(goesby, email);
            email.SetBackNext(last, addr);
            addr.SetBackNext(email, zip);
            zip.SetBackNext(addr, dob);

            dob.SetBackNext(zip, cellphone);
            cellphone.SetBackNext(dob, homephone);

            homephone.SetBackNext(cellphone, null);
            homephone.GoNext += homephone_GoNext;
        }
コード例 #4
0
ファイル: Home2.cs プロジェクト: rossspoon/bvcms
        private void Home2_Load(object sender, EventArgs e)
        {
            button1.Click += buttonclick;
            button2.Click += buttonclick;
            button3.Click += buttonclick;
            button4.Click += buttonclick;
            button5.Click += buttonclick;
            button6.Click += buttonclick;
            button7.Click += buttonclick;
            button8.Click += buttonclick;
            button9.Click += buttonclick;
            button0.Click += buttonclick;
            button10.Click += button10_Click;
            button11.Click += button10_Click;
            button12.Click += button10_Click;
            textBox1.Focus();
            textBox1.Select(textBox1.Text.Length, 0);

            Program.CursorHide();

            var form = Parent as BaseForm;

            this.Visible = true;
            this.textBox1.Focus();

            namesearch = new EnterText("Name Search", true);
            form.ControlsAdd(namesearch);

            family = new ListFamily2();
            form.ControlsAdd(family);

            families = new ListFamilies(family);
            form.ControlsAdd(families);

            names = new ListNames(family);
            form.ControlsAdd(names);

            first = new EnterText("First Name", true);
            form.ControlsAdd(first);

            goesby = new EnterText("Goes By", true);
            form.ControlsAdd(goesby);

            last = new EnterText("Last Name", true);
            form.ControlsAdd(last);

            email = new EnterText("Email");
            form.ControlsAdd(email);

            addr = new EnterText("Address", true);
            form.ControlsAdd(addr);

            zip = new EnterText("Zip");
            form.ControlsAdd(zip);

            dob = new EnterDate("Birthday");
            form.ControlsAdd(dob);

            cellphone = new EnterPhone("Cell Phone");
            form.ControlsAdd(cellphone);

            homephone = new EnterPhone("Home Phone");
            form.ControlsAdd(homephone);

            gendermarital = new EnterGenderMarital2();
            form.ControlsAdd(gendermarital);

            namesearch.GoBack += namesearch_GoBack;
            namesearch.GoNext += namesearch_GoNext;

            first.GoBack += first_GoBack;
            first.SetBackNext(null, goesby);
            goesby.SetBackNext(first, last);
            last.SetBackNext(goesby, email);
            email.SetBackNext(last, addr);
            addr.SetBackNext(email, zip);
            zip.SetBackNext(addr, dob);

            dob.SetBackNext(zip, cellphone);
            cellphone.SetBackNext(dob, homephone);

            homephone.SetBackNext(cellphone, null);
            homephone.GoNext += homephone_GoNext;
        }