Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            // add dir item
            DirItemConfigureForm child = new DirItemConfigureForm();
            if (child.ShowDialog() != DialogResult.OK)
                return;

            var item = child.TheItem;
            Context.Current.AddDirItem(item);
            ResetListView();
        }
Пример #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            // edit selected dir item
            DirItem selItem = this.olvDirItems.SelectedObject as DirItem;
            if (selItem == null)
                return;

            DirItemConfigureForm child = new DirItemConfigureForm(selItem);
            if (child.ShowDialog() != DialogResult.OK)
                return;

            ResetListView();
        }