Exemplo n.º 1
0
        private void newButton_Click(object sender, EventArgs e)
        {
            dataRegionDetail displayedForm = new dataRegionDetail(globalConstants.NEW_REGION, 0);

            displayedForm.ShowDialog(this);
            dataCabangGridView.DataSource = null;

            if (!namaBranchTextbox.Text.Equals(""))
            {
                loadRegionData(namaBranchTextbox.Text);
            }
        }
Exemplo n.º 2
0
        private void dataCabangGridView_DoubleClick(object sender, EventArgs e)
        {
            int selectedrowindex = dataCabangGridView.SelectedCells[0].RowIndex;

            DataGridViewRow selectedRow = dataCabangGridView.Rows[selectedrowindex];

            selectedRegionID = Convert.ToInt32(selectedRow.Cells["ID"].Value);

            dataRegionDetail displayedForm = new dataRegionDetail(globalConstants.EDIT_REGION, selectedRegionID);

            displayedForm.ShowDialog(this);
        }
Exemplo n.º 3
0
        private void dataCabangGridView_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                int selectedrowindex = dataCabangGridView.SelectedCells[0].RowIndex;

                DataGridViewRow selectedRow = dataCabangGridView.Rows[selectedrowindex];
                selectedRegionID = Convert.ToInt32(selectedRow.Cells["ID"].Value);

                gutil.saveSystemDebugLog(0, "CREATE DATA REGION DETAIL, REGION ID [" + selectedRegionID + "]");
                dataRegionDetail displayedForm = new dataRegionDetail(globalConstants.EDIT_REGION, selectedRegionID);
                displayedForm.ShowDialog(this);
            }
        }