Пример #1
0
        private void AddItemBtn_Click(object sender, EventArgs e)
        {
            ItemCreator itemCreator = new ItemCreator(this.itemsListView, false);

            itemCreator.MinimumSize = itemCreator.Size;
            itemCreator.MaximumSize = itemCreator.Size;
            itemCreator.ShowDialog();
        }
Пример #2
0
 private void ItemsListView_DoubleClick(object sender, EventArgs e)
 {
     // Check if Selected Items count > 0 to avoid ArgumentOutOfRange Exception being thrown later
     if (this.itemsListView.SelectedItems.Count > 0)
     {
         ItemCreator itemCreator = new ItemCreator(this.itemsListView, true);
         itemCreator.MinimumSize = itemCreator.Size;
         itemCreator.MaximumSize = itemCreator.Size;
         itemCreator.ShowDialog();
     }
 }