예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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);
     }
 }
예제 #4
0
 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);
     }
 }