private void OnLocationSaveRequested(LocationProperty saveRequest)
 {
     if ((saveRequest & LocationProperty.Monologues) == LocationProperty.Monologues && Window != null)
     {
         string text = GetCurrentText();
         Window.Message.Current = LocalizableString.ReturnNewLine(text);
     }
 }
        public void ChangeWindow(MessageWindow window)
        {
            if (Window != null)
            {
                string text = GetCurrentText();
                Window.Message.Current = LocalizableString.ReturnNewLine(text);
            }

            Window = window;
            Edit.Dispatcher.Invoke(() => Edit.ChangeWindow(window));
            Preview.Dispatcher.Invoke(() => Preview.ChangeWindow(window));
        }