Пример #1
0
        private void btn_AddLocation_Click(object sender, EventArgs e)
        {
            frm_AddLocation frm = new frm_AddLocation();

            frm.ShowDialog();
            locationID = frm.locID;
            UpdateFields();
        }
Пример #2
0
        private void btn_addLocation_Click(object sender, EventArgs e)
        {
            frm_AddLocation frm = new frm_AddLocation();

            frm.ShowDialog();
            Loc = frm.locID;
            txt_Location.Text = Loc.ToLocationString();
        }
Пример #3
0
        private void btn_addLocation_Click(object sender, EventArgs e)
        {
            frm_AddLocation frm = new frm_AddLocation();

            frm.ShowDialog();
            Loc = frm.locID;
            txt_Location.Text = Loc.ToLocationString();
            //foreach (DataRow row in DatabaseHelper.GetTable("Location", null, null, true).Rows)
            //{
            //    if (row["Location ID"].ToString() == Location.ToString())
            //        txt_Location.Text = row["Address"].ToString() + ", " + row["City"].ToString();
            //}
        }