Пример #1
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;
        }
Пример #2
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;
        }