)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Default (Ia.Statistics.Wa.Models.Business)

Public general use code classes and xml files that we've compiled and used over the years:

    1: using System.Configuration;
    2:  
    3: namespace Ia.Statistics.Wa.Models.Business
    4: {
    5:     ////////////////////////////////////////////////////////////////////////////
    6:  
    7:     /// <summary publish="true">
    8:     ///
    9:     /// </summary>
   10:     /// 
   11:     /// <remarks> 
   12:     /// Copyright © 2006-2025 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   13:     ///
   14:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   15:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   16:     ///
   17:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   18:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   19:     /// 
   20:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   21:     /// 
   22:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   23:     /// </remarks> 
   24:     public class Default
   25:     {
   26:         ////////////////////////////////////////////////////////////////////////////
   27:  
   28:         /// <summary>
   29:         ///
   30:         /// </summary>
   31:         public Default()
   32:         {
   33:         }
   34:  
   35:         ////////////////////////////////////////////////////////////////////////////
   36:  
   37:         /// <summary>
   38:         ///
   39:         /// </summary>
   40:         public static Ia.Cl.Models.Result Registration_Email(string email, string password)
   41:         {
   42:             bool b;
   43:             string message;
   44:  
   45:             message = Ia.Statistics.Wa.Models.Ui.Default.MailTop();
   46:             message += @"
   47: <p>You new account is ready:</p>
   48: <table>
   49: <tr><td>Email:</td><td style=""font-weight:bold"">" + email + @"</td></tr>
   50: <tr><td>Password:</td><td style=""font-weight:bold"">" + password + @"</td></tr>
   51: </table>
   52: ";
   53:  
   54:             message += "<p>We wish you a good experience with our service</p>";
   55:  
   56:             message += Ia.Statistics.Wa.Models.Ui.Default.MailBottom();
   57:  
   58:             var result = Ia.Cl.Models.Smtp.SendHtml(email, email, "Your New " + Ia.Cl.Models.ApplicationConfiguration.GetSetting("AppSettings:SiteName") + " Account is Ready", message);//, out result);
   59:  
   60:             return result;
   61:         }
   62:  
   63:         ////////////////////////////////////////////////////////////////////////////
   64:  
   65:         /// <summary>
   66:         ///
   67:         /// </summary>
   68:         public static Ia.Cl.Models.Result SendRegistrationConfirmationEmail(object providerUserKey, string email, string password)
   69:         {
   70:             bool b;
   71:             string message;
   72:  
   73:             message = Ia.Statistics.Wa.Models.Ui.Default.PlainMailTop();
   74:             message += @"
   75: Please confirm your account by clicking on the link: <a href=""http://fkim.com/private/verify_registration.aspx?id=" + providerUserKey.ToString() + @"""/>
   76: Email: " + email + @"
   77: Password: " + password + @"
   78:  
   79: We wish you a good experience with our service.
   80: ";
   81:  
   82:             message += Ia.Statistics.Wa.Models.Ui.Default.PlainMailBottom();
   83:  
   84:             var result = Ia.Cl.Models.Smtp.SendPlain(email, email, "Your New " + Ia.Cl.Models.ApplicationConfiguration.GetSetting("AppSettings:SiteName") + " Account is Ready", message);//, out result);
   85:  
   86:             return result;
   87:         }
   88:  
   89:         ////////////////////////////////////////////////////////////////////////////
   90:         ////////////////////////////////////////////////////////////////////////////
   91:     }
   92:  
   93:     ////////////////////////////////////////////////////////////////////////////
   94:     ////////////////////////////////////////////////////////////////////////////
   95: }