예제 #1
0
        private string FindTip()
        {
            var tipEditor = new MetaEditor();

            try
            {
                return(tipEditor.GetInformation(SelectedItemPath));
            }
            catch
            {
                return(string.Empty);
            }
        }
예제 #2
0
        protected override void OnPropertyPageInitialised(SharpPropertySheet parent)
        {
            FileName = parent.SelectedItemPaths.First();
            var editor = new MetaEditor();

            try
            {
                textBox.Text = editor.GetInformation(FileName);
            }
            catch
            {
            }
        }
예제 #3
0
        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 { }
            }
        }