private void btn_AddLocation_Click(object sender, EventArgs e) { frm_AddLocation frm = new frm_AddLocation(); frm.ShowDialog(); locationID = frm.locID; UpdateFields(); }
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(); }
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(); //} }