private string FindTip() { var tipEditor = new MetaEditor(); try { return(tipEditor.GetInformation(SelectedItemPath)); } catch { return(string.Empty); } }
protected override void OnPropertyPageInitialised(SharpPropertySheet parent) { FileName = parent.SelectedItemPaths.First(); var editor = new MetaEditor(); try { textBox.Text = editor.GetInformation(FileName); } catch { } }
private void UpdateMetaData() { var editor = new MetaEditor(); if (textBox.Text.Length == 0) { // if the box is empty, will remove the information from meta data. try { editor.RemoveInformation(FileName); } catch { } } else { try { editor.SetInformation(FileName, textBox.Text); } catch { } } }