/// <summary> /// Open the person editor /// </summary> /// <param name="forEditing"></param> /// <param name="id"></param> private void _OpenPersonEditor(bool forEditing, string id, string name) { PersonForm pf; if (forEditing) { pf = new PersonForm(id, true); } else { pf = new PersonForm(name); } int x = (this.Location.X + this.btnAddPerson.Location.X + this.btnAddPerson.Width + 16) - pf.Width; int y = this.Location.Y + this.btnAddPerson.Location.Y + this.btnAddPerson.Height + 35; pf.StartPosition = FormStartPosition.Manual; pf.Location = new Point(x, y); if (pf.ShowDialog(this) == DialogResult.OK) { //this._LoadData(MovieObjectType.All, ""); this._LoadingInit(); } this.txtName.Focus(); }
/// <summary> /// Open the person editor /// </summary> /// <param name="forEditing"></param> /// <param name="id"></param> private void _OpenPersonEditor(bool forEditing, string id, string name) { PersonForm pf; if(forEditing) { pf = new PersonForm(id, true); } else { pf = new PersonForm(name); } int x = (this.Location.X + this.btnAddPerson.Location.X + this.btnAddPerson.Width + 16) - pf.Width; int y = this.Location.Y + this.btnAddPerson.Location.Y + this.btnAddPerson.Height + 35; pf.StartPosition = FormStartPosition.Manual; pf.Location = new Point(x, y); if(pf.ShowDialog(this) == DialogResult.OK) { //this._LoadData(MovieObjectType.All, ""); this._LoadingInit(); } this.txtName.Focus(); }