コード例 #1
0
        private void mnu_reg_Click_1(object sender, RoutedEventArgs e)
        {
            frm_tarife_bank tb = new frm_tarife_bank();

            tb.ShowDialog();
            SetDataGrid();
        }
コード例 #2
0
        private void mnu_edit_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                if (grid_listeBank.SelectedValue == null)
                {
                    throw new Exception(Localize.ex_no_record_selected);
                }

                var frmeb = new frm_tarife_bank((grid_listeBank.SelectedValue as dynamic).ID);

                frmeb.ShowDialog();
                this.InvalidateVisual();

                SetDataGrid();
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }