コード例 #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);
            }
        }
コード例 #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);
            }
        }
コード例 #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="status"></param>
        protected void UpdateStatus(string status)
        {
            IWinFormApplication app = ServiceProvider.GetService <IApplication>() as IWinFormApplication;

            if (app != null)
            {
                app.UpdateStatus(status);
            }
        }
コード例 #4
0
        /// <summary>
        ///
        /// </summary>
        protected internal virtual void OnDisplayManagerChanged()
        {
            if (this.DisplayManager == null || this.DisplayManager.SearchManager == null)
            {
                pageNavigator1.Enabled = false;
                //tsbSearchConditions.Enabled = false;
            }
            else
            {
                pageNavigator1.BindingSource = new PageBindingSource(this.DisplayManager.SearchManager);
                pageNavigator1.Enabled       = this.DisplayManager.SearchManager.EnablePage;

                //tsbSearchConditions.LoadMenus(this.DisplayManager.SearchManager, this.Text);
            }

            IWinFormApplication mdiForm = ServiceProvider.GetService <IApplication>() as IWinFormApplication;

            if (mdiForm != null)
            {
                mdiForm.OnChildFormShow(this);
            }
        }