private void BtnNew_Click(object sender, RoutedEventArgs e) { try { var frmRegisterBaseInfo = new FrmRegisterBaseInfo(); frmRegisterBaseInfo.PID = Common.Constants.BaseInfoType.Repository; frmRegisterBaseInfo.ShowDialog(); SetDataGrid(); } catch (Exception ex) { AccountingKernel.Forms.Base.BaseWindow.ShowError(ex); } }
private void MenuItem_Register(object sender, System.Windows.Input.MouseButtonEventArgs e) { try { var frmRegisterBaseInfo = new FrmRegisterBaseInfo(); frmRegisterBaseInfo.PID = Common.Constants.BaseInfoType.Repository; frmRegisterBaseInfo.ShowDialog(); SetDataGrid(); } catch (Exception ex) { AccountingKernel.Forms.Base.BaseWindow.ShowError(ex); } }
private void BtnEdit_Click(object sender, RoutedEventArgs e) { try { if (grdBaseInfo.SelectedValue == null) { throw new Exception(Localize.ex_no_record_selected); } var frmRegisterBaseInfo = new FrmRegisterBaseInfo((grdBaseInfo.SelectedValue as dynamic).Id); frmRegisterBaseInfo.ShowDialog(); SetDataGrid(); } catch (Exception ex) { AccountingKernel.Forms.Base.BaseWindow.ShowError(ex); } }
private void MenuItem_Edit(object sender, System.Windows.Input.MouseButtonEventArgs e) { try { if (grdBaseInfo.SelectedValue == null) { throw new Exception(Localize.ex_no_record_selected); } var frmRegisterBaseInfo = new FrmRegisterBaseInfo((grdBaseInfo.SelectedValue as dynamic).Id); frmRegisterBaseInfo.ShowDialog(); SetDataGrid(); } catch (Exception ex) { AccountingKernel.Forms.Base.BaseWindow.ShowError(ex); } }