Esempio n. 1
0
        /// <summary>

        /// Initializes this instance.

        /// </summary>

        private void Initialize()

        {
            this.growl = new Growl.Connector.GrowlConnector();

            this.growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;
        }
Esempio n. 2
0
        private void InitializeAddIn()
        {
            this.cf = new ConfigForm();
            this.cf.PasswordChanged += new EventHandler(cf_PasswordChanged);

            this.appIcon     = ConvertImageToBytes(global::GrowlExtras.VisualStudioAddIn.Properties.Resources.vs);
            this.successIcon = ConvertImageToBytes(global::GrowlExtras.VisualStudioAddIn.Properties.Resources.vs_success);
            this.failureIcon = ConvertImageToBytes(global::GrowlExtras.VisualStudioAddIn.Properties.Resources.vs_failed);

            //string password = Growl.Connector.GrowlConnector.TEST_PASSWORD; //TODO:
            //this.growl = new Growl.Connector.GrowlConnector(password);
            this.growl = new Growl.Connector.GrowlConnector(Properties.Settings.Default.Password);
            this.growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;

            this.application      = new Growl.Connector.Application("Visual Studio");
            this.application.Icon = new Growl.CoreLibrary.BinaryData(this.appIcon);

            this.ntSolutionSuccess = new Growl.Connector.NotificationType("Solution Succeeded", "Solution Succeeded", new Growl.CoreLibrary.BinaryData(this.successIcon), true);
            this.ntSolutionFailed  = new Growl.Connector.NotificationType("Solution Failed", "Solution Failed", new Growl.CoreLibrary.BinaryData(this.failureIcon), true);
            this.ntProjectSuccess  = new Growl.Connector.NotificationType("Project Succeeded", "Project Succeeded", new Growl.CoreLibrary.BinaryData(this.successIcon), true);
            this.ntProjectFailed   = new Growl.Connector.NotificationType("Project Failed", "Project Failed", new Growl.CoreLibrary.BinaryData(this.failureIcon), true);

            this.growl.Register(application, new Growl.Connector.NotificationType[] { ntSolutionSuccess, ntSolutionFailed, ntProjectSuccess, ntProjectFailed });

            this._applicationObject.Events.BuildEvents.OnBuildDone           += new _dispBuildEvents_OnBuildDoneEventHandler(BuildEvents_OnBuildDone);
            this._applicationObject.Events.BuildEvents.OnBuildProjConfigDone += new _dispBuildEvents_OnBuildProjConfigDoneEventHandler(BuildEvents_OnBuildProjConfigDone);
        }
Esempio n. 3
0
File: Form1.cs Progetto: yeka/WPanel
        private void growlBootUp()
        {
            notificationType = new Growl.Connector.NotificationType(sampleNotificationType, "Sample Notification");

            growl = new Growl.Connector.GrowlConnector();
            growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;

            growlapp = new Growl.Connector.Application("WPanel");
            growl.Register(growlapp, new Growl.Connector.NotificationType[] { notificationType });
        }
Esempio n. 4
0
        public GrowlPlugin()
        {
            this.OnPlayerPlayEvent += new _IiTunesEvents_OnPlayerPlayEventEventHandler(growlPlugin_OnPlayerPlayEvent);
            this.OnPlayerPlayingTrackChangedEvent += new _IiTunesEvents_OnPlayerPlayingTrackChangedEventEventHandler(growlPlugin_OnPlayerPlayingTrackChangedEvent);

            // old
            this.udpGrowl = new Growl.UDPLegacy.MessageSender("ITunes Growl Plug-in", Properties.Settings.Default.GrowlPassword);
            this.udpNotificationType = new Growl.UDPLegacy.NotificationType("Track Changed", true);
            this.udpNotificationTypes = new Growl.UDPLegacy.NotificationType[] { this.udpNotificationType };

            // new
            this.application = new Growl.Connector.Application("iTunes");
            this.application.Icon = String.Format(@"{0}\icon.png", System.Windows.Forms.Application.StartupPath);
            this.growl = new Growl.Connector.GrowlConnector(Properties.Settings.Default.GrowlPassword);
            this.growl.NotificationCallback +=new Growl.Connector.GrowlConnector.CallbackEventHandler(growl_NotificationCallback);
            this.growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;
            this.nt1 = new Growl.Connector.NotificationType("Track Changed", "Track Changed");
            this.notificationTypes = new Growl.Connector.NotificationType[] { this.nt1 };
        }
        public GrowlPlugin()
        {
            this.OnPlayerPlayEvent += new _IiTunesEvents_OnPlayerPlayEventEventHandler(growlPlugin_OnPlayerPlayEvent);
            this.OnPlayerPlayingTrackChangedEvent += new _IiTunesEvents_OnPlayerPlayingTrackChangedEventEventHandler(growlPlugin_OnPlayerPlayingTrackChangedEvent);

            // old
            this.udpGrowl             = new Growl.UDPLegacy.MessageSender("ITunes Growl Plug-in", Properties.Settings.Default.GrowlPassword);
            this.udpNotificationType  = new Growl.UDPLegacy.NotificationType("Track Changed", true);
            this.udpNotificationTypes = new Growl.UDPLegacy.NotificationType[] { this.udpNotificationType };

            // new
            this.application                 = new Growl.Connector.Application("iTunes");
            this.application.Icon            = String.Format(@"{0}\icon.png", System.Windows.Forms.Application.StartupPath);
            this.growl                       = new Growl.Connector.GrowlConnector(Properties.Settings.Default.GrowlPassword);
            this.growl.NotificationCallback += new Growl.Connector.GrowlConnector.CallbackEventHandler(growl_NotificationCallback);
            this.growl.EncryptionAlgorithm   = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;
            this.nt1 = new Growl.Connector.NotificationType("Track Changed", "Track Changed");
            this.notificationTypes = new Growl.Connector.NotificationType[] { this.nt1 };
        }
Esempio n. 6
0
        private void ThisApplication_Startup(object sender, System.EventArgs e)
        {
            BuildMenu();

            this.NewMailEx += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_NewMailExEventHandler(ThisApplication_NewMailEx);
            this.Reminder += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ReminderEventHandler(ThisApplication_Reminder);
            this.Reminders.BeforeReminderShow += new Microsoft.Office.Interop.Outlook.ReminderCollectionEvents_BeforeReminderShowEventHandler(Reminders_BeforeReminderShow);

            // setup our growl object
            System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();
            Uri uri = new Uri(assembly.CodeBase);
            string path = System.IO.Path.GetDirectoryName(uri.LocalPath);
            string icon = String.Format(@"{0}\outlook.png", path);
            this.application = new Growl.Connector.Application(APP_NAME);
            this.application.Icon = icon;
            this.notificationTypes = new Growl.Connector.NotificationType[] { reminder, newmail };
            this.growl = new Growl.Connector.GrowlConnector(Properties.Settings.Default.Password);
            this.growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;
            this.growl.NotificationCallback +=new Growl.Connector.GrowlConnector.CallbackEventHandler(growl_NotificationCallback);
            this.growl.Register(this.application, this.notificationTypes);
        }
Esempio n. 7
0
        private void ThisApplication_Startup(object sender, System.EventArgs e)

        {
            BuildMenu();



            this.NewMailEx += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_NewMailExEventHandler(ThisApplication_NewMailEx);

            this.Reminder += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ReminderEventHandler(ThisApplication_Reminder);

            this.Reminders.BeforeReminderShow += new Microsoft.Office.Interop.Outlook.ReminderCollectionEvents_BeforeReminderShowEventHandler(Reminders_BeforeReminderShow);



            // setup our growl object

            System.Reflection.Assembly assembly = System.Reflection.Assembly.GetExecutingAssembly();

            Uri uri = new Uri(assembly.CodeBase);

            string path = System.IO.Path.GetDirectoryName(uri.LocalPath);

            string icon = String.Format(@"{0}\outlook.png", path);

            this.application = new Growl.Connector.Application(APP_NAME);

            this.application.Icon = icon;

            this.notificationTypes = new Growl.Connector.NotificationType[] { reminder, newmail };

            this.growl = new Growl.Connector.GrowlConnector(Properties.Settings.Default.Password);

            this.growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;

            this.growl.NotificationCallback += new Growl.Connector.GrowlConnector.CallbackEventHandler(growl_NotificationCallback);

            this.growl.Register(this.application, this.notificationTypes);
        }
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 private void Initialize()
 {
     this.growl = new Growl.Connector.GrowlConnector();
     this.growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;
 }
Esempio n. 9
0
        private void InitializeAddIn()
        {
            this.cf = new ConfigForm();
            this.cf.PasswordChanged += new EventHandler(cf_PasswordChanged);

            this.appIcon = ConvertImageToBytes(global::GrowlExtras.VisualStudioAddIn.Properties.Resources.vs);
            this.successIcon = ConvertImageToBytes(global::GrowlExtras.VisualStudioAddIn.Properties.Resources.vs_success);
            this.failureIcon = ConvertImageToBytes(global::GrowlExtras.VisualStudioAddIn.Properties.Resources.vs_failed);

            //string password = Growl.Connector.GrowlConnector.TEST_PASSWORD; //TODO:
            //this.growl = new Growl.Connector.GrowlConnector(password);
            this.growl = new Growl.Connector.GrowlConnector(Properties.Settings.Default.Password);
            this.growl.EncryptionAlgorithm = Growl.Connector.Cryptography.SymmetricAlgorithmType.PlainText;

            this.application = new Growl.Connector.Application("Visual Studio");
            this.application.Icon = new Growl.CoreLibrary.BinaryData(this.appIcon);

            this.ntSolutionSuccess = new Growl.Connector.NotificationType("Solution Succeeded", "Solution Succeeded", new Growl.CoreLibrary.BinaryData(this.successIcon), true);
            this.ntSolutionFailed = new Growl.Connector.NotificationType("Solution Failed", "Solution Failed", new Growl.CoreLibrary.BinaryData(this.failureIcon), true);
            this.ntProjectSuccess = new Growl.Connector.NotificationType("Project Succeeded", "Project Succeeded", new Growl.CoreLibrary.BinaryData(this.successIcon), true);
            this.ntProjectFailed = new Growl.Connector.NotificationType("Project Failed", "Project Failed", new Growl.CoreLibrary.BinaryData(this.failureIcon), true);

            this.growl.Register(application, new Growl.Connector.NotificationType[] { ntSolutionSuccess, ntSolutionFailed, ntProjectSuccess, ntProjectFailed });

            this._applicationObject.Events.BuildEvents.OnBuildDone += new _dispBuildEvents_OnBuildDoneEventHandler(BuildEvents_OnBuildDone);
            this._applicationObject.Events.BuildEvents.OnBuildProjConfigDone += new _dispBuildEvents_OnBuildProjConfigDoneEventHandler(BuildEvents_OnBuildProjConfigDone);
        }