Пример #1
0
        private void InsertPicture(TextProcessorCommand command)
        {
            var window = new FilePopUp();

            window.Initialise(m_helper.Controller);
            window.ShowDialog();
            if (!string.IsNullOrEmpty(window.Filename))
            {
                InsertText(command.InsertBefore + window.Filename + command.InsertAfter, string.Empty);
            }
        }
Пример #2
0
 private void InsertPicture(TextProcessorCommand command)
 {
     var window = new FilePopUp();
     window.Initialise(m_helper.Controller);
     window.ShowDialog();
     if (!string.IsNullOrEmpty(window.Filename))
     {
         InsertText(command.InsertBefore + window.Filename + command.InsertAfter, string.Empty);
     }
 }