Example #1
0
        private static void PromptApiKey()
        {
            Logger.Info("Please input your api key into the wakatime window.");
            var form = new Forms.ApiKeyForm();

            form.ShowDialog();
        }
        public void Initialize() {
            // Plugin property setup
            this.pluginImage = Properties.Resources.wakatime;
            this.pluginPanel = new Forms.ApiKeyForm();

            // Append API Form to the Help menu
            ToolStripMenuItem menu = (ToolStripMenuItem)PluginBase.MainForm.FindMenuItem("ToolsMenu");
            menu.DropDownItems.Add(new ToolStripSeparator());
            menu.DropDownItems.Add(new ToolStripMenuItem(this.pluginName, this.pluginImage, new EventHandler(menuItemCallback)));

            // Interval to check mainform loaded
            // (Can't find a way to access FD's mainform events through the API, this is a workaround)
            Timer timer = new Timer();
            timer.Interval = 100;
            timer.Tick += checkFormLoaded;
            timer.Start();
        }
 private static void PromptApiKey()
 {
     var form = new ApiKeyForm();
     form.ShowDialog();
 }
Example #4
0
 internal static void PromptApiKey()
 {
     var form = new ApiKeyForm();
     form.ShowDialog();
 }
 private static void PromptApiKey()
 {
     Logger.Info("Please input your api key into the wakatime window.");
     var form = new ApiKeyForm();
     form.ShowDialog();
 }