Пример #1
0
 private void SearchToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     People.navy_search f = new People.navy_search("", "", "", "", "edit");
     f.MdiParent   = this;
     f.WindowState = FormWindowState.Maximized;
     f.Show();
 }
Пример #2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            navy_search f = new navy_search(txtid13.Text, txtname.Text, txtlname.Text, "", "new");

            f.StartPosition = FormStartPosition.CenterParent;
            f.ShowDialog();
            if (!string.IsNullOrEmpty(f.id13))
            {
                DataRow dr = dcore.GetSearchPeople(f.id13, "", "");
                if (dr != null)
                {
                    modes  = "edit";
                    cardid = f.id13;
                }
                GetData(f.id13);
                navyid = f.navyid;
            }
        }