Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public ClipboardFormatForm(ClipboardFormat cbf)
 {
     InitializeComponent();
     ClipboardFormat = cbf;
     txtDescription.Text = cbf.Description ?? "";
     txtFormat.Text = cbf.Format ?? "";
     CodeMenu.Create<ReplCodeMenuEntry>(txtFormat);
     lblExample.Text = string.Format(Resources.ClipboardFormatForm_ClipboardFormatForm_Supported_variables___0__and_other_variables_such_as__1__etc_,
         "$result, $url, $shorturl, $thumbnailurl, $deletionurl, $filepath, $filename, $filenamenoext, $thumbnailfilename, $thumbnailfilenamenoext, $folderpath, $foldername, $uploadtime",
         "%y, %mo, %d");
 }