Ejemplo n.º 1
0
        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 FilesDetailsDialog(repository.one(long.Parse(listView.SelectedItems[0].Text)), this);

            dialog.Show(this);
        }
Ejemplo n.º 2
0
        private void onCreateButton(object sender, EventArgs e)
        {
            var dialog = new FilesDetailsDialog(new File(), this);

            dialog.Show(this);
        }