コード例 #1
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            StateAbbr stateAbbrCur = new StateAbbr();

            stateAbbrCur.IsNew = true;
            FormStateAbbrEdit FormSAE = new FormStateAbbrEdit(stateAbbrCur);

            FormSAE.ShowDialog();
            if (FormSAE.DialogResult != DialogResult.OK)
            {
                return;
            }
            _isChanged = true;
            Cache.Refresh(InvalidType.StateAbbrs);
            FillGrid();
        }
コード例 #2
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            if (gridMain.GetSelectedIndex() == -1)
            {
                return;
            }
            if (IsSelectionMode)
            {
                StateAbbrSelected = (StateAbbr)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag;
                DialogResult      = DialogResult.OK;
                return;
            }
            FormStateAbbrEdit FormSAE = new FormStateAbbrEdit((StateAbbr)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag);

            FormSAE.ShowDialog();
            if (FormSAE.DialogResult != DialogResult.OK)
            {
                return;
            }
            _isChanged = true;
            Cache.Refresh(InvalidType.StateAbbrs);
            FillGrid();
        }