Esempio n. 1
0
        public void LoadTeenRecord(string fname, string lname)
        {
            frmSelectTeens dlg = new frmSelectTeens("Select a Teen Record", false);

            dlg.txtFilter.Text = "";
            if (fname != "")
            {
                dlg.txtFilter.Text = fname + "%";
            }
            if (lname != "")
            {
                dlg.txtFilter.Text += "%" + lname + "%";
            }
            if (dlg.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            ListItem li = (ListItem)dlg.lstTeens.SelectedItem;

            if (li == null)
            {
                return;
            }
            LoadRecord(li.idx);

            isNew   = false;
            isClear = false;
            DoAllPopulation();
        }
Esempio n. 2
0
        public void LoadTeenRecord(string fname, string lname)
        {
            frmSelectTeens dlg = new frmSelectTeens("Select a Teen Record", false);
            dlg.txtFilter.Text = "";
            if (fname != "") dlg.txtFilter.Text = fname + "%";
            if (lname != "") dlg.txtFilter.Text += "%" + lname + "%";
            if (dlg.ShowDialog() != DialogResult.OK) return;

            ListItem li = (ListItem)dlg.lstTeens.SelectedItem;
            if (li == null) return;
            LoadRecord(li.idx);

            isNew = false;
            isClear = false;
            DoAllPopulation();
        }