Exemplo n.º 1
0
        private void displaySpecificForm()
        {
            int selectedrowindex = dataAccountGridView.SelectedCells[0].RowIndex;

            DataGridViewRow selectedRow = dataAccountGridView.Rows[selectedrowindex];

            selectedAccountID = Convert.ToInt32(selectedRow.Cells["KODE AKUN"].Value);

            switch (originModuleID)
            {
            case globalConstants.TAMBAH_HAPUS_JURNAL_HARIAN:
                parentForm.addSelectedAccountID(selectedAccountID);
                this.Close();
                break;

            default:
                if (null == editNoAkunForm || editNoAkunForm.IsDisposed)
                {
                    editNoAkunForm = new dataNomorAkunDetailForm(globalConstants.EDIT_AKUN, selectedAccountID);
                }

                editNoAkunForm.Show();
                editNoAkunForm.WindowState = FormWindowState.Normal;
                break;
            }
        }
Exemplo n.º 2
0
        private void newButton_Click(object sender, EventArgs e)
        {
            if (null == newNoAkunForm || newNoAkunForm.IsDisposed)
            {
                newNoAkunForm = new dataNomorAkunDetailForm(globalConstants.NEW_AKUN, 0);
            }

            newNoAkunForm.Show();
            newNoAkunForm.WindowState = FormWindowState.Normal;
        }