Exemple #1
0
        private void RaiseChangeQuoteFormat(IClient client, QuoteFormat format)
        {
            var handler = ChangeQuoteFormat;

            if (handler != null)
            {
                handler(client, format);
            }
        }
        private async void InsertQuote()
        {
            var quote = await CustomDialog.Show <Quote>(_currentWindow, "Insert quote");

            if (quote is null)
            {
                return;
            }

            var table = QuoteFormat.Create(quote);

            _currentWindow.TextEditor.InsertBlock(table);
        }
Exemple #3
0
        private void CopyFromTQ()
        {
            var            errorMessage   = String.Empty;
            string         format         = GetConfigValue("QuoteFormat");
            TextDataFormat textDataFormat = TextDataFormat.UnicodeText;

            QuoteFormat quoteFormat = Travelport.Smartpoint.Plugins.Wishlist.Converters.QuoteFormat.TextFormat;

            if (format.Equals("HTML"))
            {
                quoteFormat    = QuoteFormat.HtmlFormat;
                textDataFormat = TextDataFormat.Html;
            }
            var dataObject = Travelport.Smartpoint.Plugins.Wishlist.Helpers.CopyToClipboard.CopyClipBoard(quoteFormat, out errorMessage, true);
            var quote      = dataObject.GetText(textDataFormat);

            LoadPortal(quote);
            string s = string.Empty;
        }
 private void ClientOnChangeQuoteFormat(IClient client, QuoteFormat quoteFormat)
 {
     quoteFormats[client] = quoteFormat;
 }
 private void ClientOnChangeQuoteFormat(IClient client, QuoteFormat quoteFormat)
 {
     quoteFormats[client] = quoteFormat;
 }