public CE_USER_NOTIFICATION(string title, string text) { actionFlags = ActionFlags.PUN_DIALOG; pwszDialogTitle = new SmartString(title); pwszDialogText = new SmartString(text); pwszSound = new SmartString(null); dwMaxSound = 0; dwReserved = 0; }
public CE_NOTIFICATION_TRIGGER(NOTIFICATION_EVENT notificationEvent) { dwSize = (uint)Marshal.SizeOf(typeof(CE_NOTIFICATION_TRIGGER)); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString(null); lpszArguments = new SmartString(null); startTime = DateTimeToSystemTime(DateTime.Now); endTime = DateTimeToSystemTime(DateTime.Now.AddDays(1)); }
public CE_NOTIFICATION_TRIGGER(DateTime start) { dwSize = (uint)Marshal.SizeOf(typeof(CE_NOTIFICATION_TRIGGER)); dwType = CNT_TYPE.CNT_TIME; dwEvent = NOTIFICATION_EVENT.NONE; lpszApplication = new SmartString(null); lpszArguments = new SmartString(null); startTime = DateTimeToSystemTime(start); endTime = new SYSTEMTIME(); }
public CE_NOTIFICATION_TRIGGER(string application, string arguments, NOTIFICATION_EVENT notificationEvent) { dwSize = (uint)Marshal.SizeOf(typeof(CE_NOTIFICATION_TRIGGER)); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString(application); lpszArguments = new SmartString(arguments); startTime = DateTimeToSystemTime(DateTime.Now); endTime = new SYSTEMTIME(); }
public CE_USER_NOTIFICATION( string title, string text ) { actionFlags = ActionFlags.PUN_DIALOG; pwszDialogTitle = new SmartString( title ); pwszDialogText = new SmartString( text ); pwszSound = new SmartString( null ); dwMaxSound = 0; dwReserved = 0; }
public CE_NOTIFICATION_TRIGGER( NOTIFICATION_EVENT notificationEvent ) { dwSize = (uint)Marshal.SizeOf( typeof(CE_NOTIFICATION_TRIGGER) ); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString( null ); lpszArguments = new SmartString( null ); startTime = DateTimeToSystemTime( DateTime.Now ); endTime = DateTimeToSystemTime( DateTime.Now.AddDays(1) ); }
public CE_NOTIFICATION_TRIGGER( string application, string arguments, NOTIFICATION_EVENT notificationEvent ) { dwSize = (uint)Marshal.SizeOf( typeof(CE_NOTIFICATION_TRIGGER) ); dwType = CNT_TYPE.CNT_EVENT; dwEvent = notificationEvent; lpszApplication = new SmartString(application); lpszArguments = new SmartString(arguments); startTime = DateTimeToSystemTime( DateTime.Now ); endTime = new SYSTEMTIME(); }
public CE_NOTIFICATION_TRIGGER( DateTime start ) { dwSize = (uint)Marshal.SizeOf( typeof(CE_NOTIFICATION_TRIGGER) ); dwType = CNT_TYPE.CNT_TIME; dwEvent = NOTIFICATION_EVENT.NONE; lpszApplication = new SmartString( null ); lpszArguments = new SmartString( null ); startTime = DateTimeToSystemTime( start ); endTime = new SYSTEMTIME(); }