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 user   = repository.one(long.Parse(listView.SelectedItems[0].Text));
            var dialog = new UsersDetailsDialog(user, this);

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

            dialog.Show(this);
        }