コード例 #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();
     }
 }