예제 #1
0
 private void AddClipboardFormat(ClipboardFormat cf)
 {
     ListViewItem lvi = new ListViewItem(cf.Description ?? "");
     lvi.Tag = cf;
     lvi.SubItems.Add(cf.Format ?? "");
     lvClipboardFormats.Items.Add(lvi);
 }
예제 #2
0
 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.";
 }
예제 #3
0
 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.";
 }