Пример #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddNewClip frm = new frmAddNewClip(clipsdir);

            if (frm.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            RefreshClipBin(clipsdir);
        }
Пример #2
0
        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);
        }