private void onEditButtonClick(object sender, EventArgs e)
        {
            if (listView.SelectedItems.Count != 1)
            {
                MessageBox.Show("Please select one item to edit.", "Check your actions");
                return;
            }

            var dialog = new CollectionsDetailsDialog(collectionRepository.one(long.Parse(listView.SelectedItems[0].Text)), this);

            dialog.Show(this);
        }
        private void onCreateButton(object sender, EventArgs e)
        {
            var dialog = new CollectionsDetailsDialog(new Collection(), this);

            dialog.Show(this);
        }