private void btnAdd_Click(object sender, EventArgs e) { frmAddNewClip frm = new frmAddNewClip(clipsdir); if (frm.ShowDialog() != DialogResult.OK) { return; } RefreshClipBin(clipsdir); }
private void btnEdit_Click(object sender, EventArgs e) { if (lstClipNames.SelectedIndex < 0) { return; } frmAddNewClip frm = new frmAddNewClip("Edit Clip", lstClipNames.SelectedItem.ToString(), txtClip.Text, clipsdir); if (frm.ShowDialog() != DialogResult.OK) { return; } RefreshClipBin(clipsdir); }