private void TileAccessPres_Click(object sender, EventArgs e) { this.Visible = false; FormAccessPres fap = new FormAccessPres(this.GetId); fap.Visible = true; }
private void BtnAccessPres_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(this.txtPatId.Text)) { this.Visible = false; this.PatId = this.txtPatId.Text; FormAccessPres fap = new FormAccessPres(this.GetId, this.PatId); fap.Visible = true; } else { MessageBox.Show("Pleaes select Patient first from the list!"); } }