Exemplo n.º 1
0
        private bool _AddNotification(string Title, string Link, IconDataFeather Icon, string Offset, string RegID)
        {
            DateTimeZone __DateTimeZone = new DateTimeZone(Offset);
            bool         returnVal      = __Check.ExcutionNonQuery(string.Format(@"insert into System_Notifications 
            (Reg_ID,Title,Icon,Link,DateTime)  values({0},'{1}','{2}','{3}','{4}')",
                                                                                 RegID, Title, Icon.ToString().Replace("_", "-"), Link, __DateTimeZone.DateTimes()));

            ErrorMessage = __Check.Messege;
            return(returnVal);
        }
Exemplo n.º 2
0
 /// <summary>
 /// this function is also adding notification but it not need the public class variable it already set the variable please set and get result.
 /// </summary>
 /// <param name="Title">Type your Notification title. Note! please type short look good.</param>
 /// <param name="Link">This is a link to send to other page. if not nessery press #</param>
 /// <param name="Icon">Data Feather icon is ECMS.IconDataFeather icon to auto genareat icon.</param>
 /// <param name="Offset">Offset is set the which country are now.</param>
 /// <param name="RegID">this is a registation id whose notification it.</param>
 /// <returns></returns>
 public bool AddNotification(string Title, string Link, IconDataFeather Icon, string Offset, string RegID)
 {
     return(_AddNotification(Title, Link, Icon, Offset, RegID));
 }