示例#1
0
 private void MenuItem_Register(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     try
     {
         var frmPreInvoice = new Bill.frmPreInvoice();
         frmPreInvoice.ShowDialog();
         SetDataGrid();
     }
     catch (Exception ex)
     {
         AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
     }
 }
示例#2
0
        private void MenuItem_Edit(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            try
            {
                if (DataGrid.SelectedValue == null)
                {
                    throw new Exception(Localize.ex_no_record_selected);
                }

                var frmPreInvoice = new Bill.frmPreInvoice((DataGrid.SelectedValue as dynamic).Id, Constants.StoreOperation.PreInvoice);
                frmPreInvoice.Title = Localize.PreInvoiceManagment;
                frmPreInvoice.ShowDialog();
                SetDataGrid();
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }
        private void MenuItem_Edit(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            try
            {
                if (DataGrid.SelectedValue == null)
                {
                    throw new Exception(Localize.ex_no_record_selected);
                }

                Guid id;
                id = (DataGrid.SelectedValue as dynamic).Id;

                var frmPreInvoice = new Bill.frmPreInvoice(id);
                frmPreInvoice.ShowDialog();
                SetDataGrid();
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }