private void btnNewOut_Click(object sender, EventArgs e) { frmAddEditPAPsManager frm = new frmAddEditPAPsManager(MethodType.Add, new Documents() { CommunicationType = "Outgoing" }); frm.ShowDialog(); this.Init(); }
private void btnEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (this.DocumentGridView.GetFocusedRow() is Documents item) { frmAddEditPAPsManager frm = new frmAddEditPAPsManager(MethodType.Edit, item); frm.ShowDialog(this); this.Init(); Details(item); } }