Using system;
Namespace Vavic {///
public static Notify Instance () {if (m_notify == null) m_notify = new Notify (); return m_notify;} public void SendMessage (int code, string message) {NotifyEventArgs e = new NotifyEventArgs (code, message); if (OnNotifyEvent ! = null) ONNOTIFYEVENT (this, E);}
Public Class NotifyEventArgs: System.EventArgs {PUBLIC NotifyEventArgs (int code, string message) {m_ncode = code; m_strime = message;}
Public NotifyEventArgs () {}
Protected int m_ncode; public int code {get {return m_ncode;} set {m_ncode = value;}}
protected string m_strMessage = string.Empty; public string Message {get {return m_strMessage;} set {m_strMessage = value; if (m_strMessage == null) m_strMessage = string.Empty;}}} #region Common Infomation public const int CompanyInfo = 1 ; public const int ProjectInfo = 2; public const int TaskInfo = 3; public const int Opportunity = 4; public const int Contactor = 5; public const int EmployeeInfo = 6; public const int DepartmentInfo = 7; public const int AdvCityInfo = 8; #ndregion}}}