private void button1_Click(object sender, EventArgs e) { frmPerson OfrmPErson = new frmPerson(); OfrmPErson.ShowDialog(); Refresh(); }
private async void createPersonToolStripMenuItem1_Click(object sender, EventArgs e) { //throw new NotImplementedException(); //TODO: This method detects if the correct tab is display'd if it is not, then it ignores the button press with a status message. //User Should start out either in the Faces DB Tab or in a new Face Window. frmPerson frmPerson = new frmPerson(); var personGroupDialogResult = frmPerson.ShowDialog(); if (personGroupDialogResult == DialogResult.OK) { string strPersonName = frmPerson.strPersonName; string strPersonGroupId = frmPerson.strPersonGroupId; frmPerson = null; var CreateResult = await Facial_Recognition_Library.Data.fnc.Person.CreatePerson(strPersonGroupId, strPersonName); if (CreateResult.CompletedAPIOperation && CreateResult.CompletedDatabaseOperation) { await LoadDatabasePersonGroups(); await LoadAPIPersonGroup(); } else { MessageBox.Show($@"Your attempted to add a person group failed : {CreateResult.ReasonForFailure}"); } } }
private void button2_Click(object sender, EventArgs e) { int?id = getId(); if (id != null) { frmPerson oFrmPErson = new frmPerson(id); oFrmPErson.ShowDialog(); Refresh(); } }