Ejemplo n.º 1
0
        void IPlugin.OnLoad()
        {
            app = ServiceProvider.GetService<IApplication>() as IWinFormApplication;
            if (app != null)
            {
                m_tsbItem = new ToolStripLoadingCircle();
                m_tsbItem.LoadingCircleControl.AccessibleName = m_taskName;
                m_tsbItem.LoadingCircleControl.Active = false;
                m_tsbItem.LoadingCircleControl.Color = System.Drawing.Color.DarkGray;
                m_tsbItem.LoadingCircleControl.InnerCircleRadius = 8;
                m_tsbItem.LoadingCircleControl.Location = new System.Drawing.Point(1, 2);
                m_tsbItem.LoadingCircleControl.Name = "toolStripLoadingCircle1";
                m_tsbItem.LoadingCircleControl.NumberSpoke = 10;
                m_tsbItem.LoadingCircleControl.OuterCircleRadius = 10;
                m_tsbItem.LoadingCircleControl.RotationSpeed = 100;
                m_tsbItem.LoadingCircleControl.Size = new System.Drawing.Size(28, 20);
                m_tsbItem.LoadingCircleControl.SpokeThickness = 4;
                m_tsbItem.LoadingCircleControl.StylePreset = Feng.Windows.Forms.LoadingCircle.StylePresets.MacOSX;
                m_tsbItem.LoadingCircleControl.TabIndex = 1;
                m_tsbItem.LoadingCircleControl.Text = m_taskName;
                m_tsbItem.Name = "toolStripLoadingCircle1";
                m_tsbItem.Size = new System.Drawing.Size(28, 20);
                m_tsbItem.Text = m_taskName;
                m_tsbItem.ToolTipText = m_taskName;

                app.InsertStatusItem(-1, m_tsbItem);
                m_tsbItem.Text = m_taskName;
                m_tsbItem.DoubleClick += new EventHandler(loadingCircle_DoubleClick);
            }
        }
Ejemplo n.º 2
0
        void IPlugin.OnLoad()
        {
            app = ServiceProvider.GetService <IApplication>() as IWinFormApplication;
            if (app != null)
            {
                m_tsbItem = new ToolStripLoadingCircle();
                m_tsbItem.LoadingCircleControl.AccessibleName    = m_taskName;
                m_tsbItem.LoadingCircleControl.Active            = false;
                m_tsbItem.LoadingCircleControl.Color             = System.Drawing.Color.DarkGray;
                m_tsbItem.LoadingCircleControl.InnerCircleRadius = 8;
                m_tsbItem.LoadingCircleControl.Location          = new System.Drawing.Point(1, 2);
                m_tsbItem.LoadingCircleControl.Name              = "toolStripLoadingCircle1";
                m_tsbItem.LoadingCircleControl.NumberSpoke       = 10;
                m_tsbItem.LoadingCircleControl.OuterCircleRadius = 10;
                m_tsbItem.LoadingCircleControl.RotationSpeed     = 100;
                m_tsbItem.LoadingCircleControl.Size              = new System.Drawing.Size(28, 20);
                m_tsbItem.LoadingCircleControl.SpokeThickness    = 4;
                m_tsbItem.LoadingCircleControl.StylePreset       = Feng.Windows.Forms.LoadingCircle.StylePresets.MacOSX;
                m_tsbItem.LoadingCircleControl.TabIndex          = 1;
                m_tsbItem.LoadingCircleControl.Text              = m_taskName;
                m_tsbItem.Name        = "toolStripLoadingCircle1";
                m_tsbItem.Size        = new System.Drawing.Size(28, 20);
                m_tsbItem.Text        = m_taskName;
                m_tsbItem.ToolTipText = m_taskName;

                app.InsertStatusItem(-1, m_tsbItem);
                m_tsbItem.Text         = m_taskName;
                m_tsbItem.DoubleClick += new EventHandler(loadingCircle_DoubleClick);
            }
        }
Ejemplo n.º 3
0
        void loadingCircle_DoubleClick(object sender, EventArgs e)
        {
            ToolStripLoadingCircle item = sender as ToolStripLoadingCircle;

            if (m_asyncHelper == null)
            {
                Start();

                item.LoadingCircleControl.Active = true;
            }
            else
            {
                Stop();
                item.LoadingCircleControl.Active = false;
            }
        }