コード例 #1
0
        private void OnDeleteFeatButtonClick(object sender, EventArgs e)
        {
            int selection;

            Model.Delete();

            //Lets reset the FeatListBox
            selection = FeatListBox.SelectedIndex - 1;
            if (selection < 0)
            {
                selection = 0;
            }

            FeatListBox.Items.Clear();
            PopulateFeatListBox();
            AllowChangeEvents         = false;
            FeatListBox.SelectedIndex = selection;
            PopulateFields(FeatListBox.SelectedItem.ToString());
            AllowChangeEvents = true;
        }