Beispiel #1
0
        private void BuilderCode(RTFBuilderbase sb)
        {
            sb.FontSize(20).Font(RTFFont.CenturyGothic).AppendLine("Hello:");
            sb.Append(Environment.NewLine);
            sb.FontSize(20).Font(RTFFont.CenturyGothic).AppendLine("Please consider this email as formal request to provide the title search report as per the order instruction in the attachment");
            sb.Append(Environment.NewLine);
            sb.Append(Environment.NewLine);
            sb.FontSize(20).FontStyle(FontStyle.Bold).Font(RTFFont.CenturyGothic).AppendLine("Order Summary:");
            sb.Append(Environment.NewLine);

            sb.FontSize(20).FontStyle(FontStyle.Bold).Font(RTFFont.CenturyGothic).Append("Order # :").FontSize(20).Font(RTFFont.Candara).Append("Ni").AppendLine();
            sb.FontSize(20).FontStyle(FontStyle.Bold).Font(RTFFont.CenturyGothic).Append("Order Type :").FontSize(20).Font(RTFFont.Candara).Append("Ni").AppendLine();
            sb.FontSize(20).FontStyle(FontStyle.Bold).Font(RTFFont.CenturyGothic).Append("Property Address :").FontSize(20).Font(RTFFont.Candara).Append("Ni").AppendLine();
            sb.FontSize(20).FontStyle(FontStyle.Bold).Font(RTFFont.CenturyGothic).Append("County:").FontSize(20).Font(RTFFont.Candara).Append("Ni").AppendLine();

            sb.Append(Environment.NewLine);
            sb.Append(Environment.NewLine);
            sb.Append(Environment.NewLine);

            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("• Send completed search packages to: [email protected]." + Environment.NewLine);
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("• Production related clarifications email to:[email protected]." + Environment.NewLine);
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("• All invoices related queries email to [email protected]" + Environment.NewLine);

            sb.Append(Environment.NewLine);
            sb.Append(Environment.NewLine);
            sb.Append(Environment.NewLine);
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("Thank you" + Environment.NewLine);
            sb.Append(Environment.NewLine);
            sb.Append(Environment.NewLine);
            sb.InsertImage(Image.FromFile(@"\\192.168.12.33\Oms-Image-Files\Drn_Email_Logo.png"));
            sb.FontSize(25).Font(RTFFont.Candara).AppendLine("Order Entry Team");
            sb.FontSize(25).Font(RTFFont.Candara).AppendLine("DRN Definite Solutions LLC");
            sb.FontSize(25).Font(RTFFont.Candara).AppendLine("Corp: 3240 East State Street Ext Hamilton, NJ 08619");
            sb.FontSize(25).Font(RTFFont.Candara).AppendLine("Direct: Office: 1- (443)-221-4551|Fax:(760)-280-6000");
            sb.FontSize(25).Font(RTFFont.Candara).AppendLine("[email protected] | www.DRNDS.com");


            sb.Append("----------------------------------------------------------------------------------------------" + Environment.NewLine);
            sb.Append("----------------------------------------------------------------------------------------------" + Environment.NewLine);
            sb.Append("-------------------------------------------------------------------------" + Environment.NewLine);

            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("This e-mail and any files transmitted with it are for the sole use of the intended");
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("recipient(s) and may contain confidential and privileged information. If you are not the ");
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("intended recipient, please contact the sender by reply e-mail and destroy all copies of ");
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("the original message.  Any unauthorized review, use, disclosure, dissemination, ");
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("forwarding, printing or copying of this email or any action taken in reliance on this e-mail  ");
            sb.FontSize(20).Font(RTFFont.Candara).AppendLine("is strictly prohibited and may be unlawful. ");

            sb.Append("----------------------------------------------------------------------------------------------" + Environment.NewLine);
            sb.Append("----------------------------------------------------------------------------------------------" + Environment.NewLine);
            sb.Append("-------------------------------------------------------------------------" + Environment.NewLine);
        }
Beispiel #2
0
        public static RTFBuilderbase AppendLink(RTFBuilderbase s, string text, string hyperlink)
        {
            if (Settings.Default.DisableHyperlinks)
            {
                s.Append(text);
            }
            else
            {
                s.AppendLink(text, hyperlink);
            }

            return(s);
        }
Beispiel #3
0
        public Main()
        {
            InitializeComponent();
            db = new DB();

            this.FormClosing += Main_FormClosing;

            PNConfiguration config = new PNConfiguration();

            // Add execptions
            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionTrapper;

            config.SubscribeKey = Configuration.subscribeKey;
            config.PublishKey   = Configuration.publishKey;
            config.SecretKey    = Configuration.secretKey;

            //instanciate pubnub with configs
            pubnub = new Pubnub(config);
            sb     = new RTFBuilder();
        }