private void btn_edit_Click(object sender, EventArgs e) { var dialog = new EditDialog((SyncFolder)fastObjectListView1.SelectedObject); if (dialog.ShowDialog() == DialogResult.OK) { fastObjectListView1.SetObjects(model.getAll()); } }
private void btn_add_Click(object sender, EventArgs e) { var dialog = new EditDialog(new SyncFolder()); if (dialog.ShowDialog() == DialogResult.OK) { model.addSyncFolder(dialog.SyncFolder); fastObjectListView1.AddObject(dialog.SyncFolder); } }