private void AddClipboardFormat(ClipboardFormat cf) { ListViewItem lvi = new ListViewItem(cf.Description ?? ""); lvi.Tag = cf; lvi.SubItems.Add(cf.Format ?? ""); lvClipboardFormats.Items.Add(lvi); }
public ClipboardFormatForm(ClipboardFormat cbf) { InitializeComponent(); ClipboardFormat = cbf; txtDescription.Text = cbf.Description ?? ""; txtFormat.Text = cbf.Format ?? ""; NameParser.CreateCodesMenu(txtFormat); lblExample.Text = "Supported variables: $result, $url, $shorturl, $thumbnailurl, $deletionurl, $filepath, $filename, $filenamenoext, $thumbnailfilename, $thumbnailfilenamenoext, $folderpath, $foldername, $uploadtime and other variables such as %y-%mo-%d etc."; }
public ClipboardFormatForm(ClipboardFormat cbf) { InitializeComponent(); ClipboardFormat = cbf; txtDescription.Text = cbf.Description ?? ""; txtFormat.Text = cbf.Format ?? ""; cmsFormatPattern = NameParser.CreateCodesMenu(txtFormat); lblExample.Text = "Supported variables: $result, $url, $shorturl, $thumbnailurl, $deletionurl, $filepath, $filename, $filenamenoext, $folderpath, $foldername, $uploadtime and other variables such as %y-%mo-%d etc."; }