當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.ToolStripStatusLabel類代碼示例

本文整理匯總了C#中System.Windows.Forms.ToolStripStatusLabel的典型用法代碼示例。如果您正苦於以下問題:C# ToolStripStatusLabel類的具體用法?C# ToolStripStatusLabel怎麽用?C# ToolStripStatusLabel使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ToolStripStatusLabel類屬於System.Windows.Forms命名空間,在下文中一共展示了ToolStripStatusLabel類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: StatusService

        public StatusService(Form mainForm)
        {
            m_mainForm = mainForm;

            m_statusStrip = new StatusStrip();
            m_statusStrip.Name = "StatusBar";
            m_statusStrip.Dock = DockStyle.Bottom;
            // statusStrip items  are laid out horizontally and overflow as necessary.
            m_statusStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
            m_statusStrip.ShowItemToolTips = false;

            // main status text
            m_mainPanel = new ToolStripStatusLabel();
            m_mainPanel.Width = 256;
            m_mainPanel.AutoSize = true;
            m_mainPanel.Spring = true;
            m_mainPanel.TextAlign = ContentAlignment.MiddleLeft;
            m_statusStrip.Items.Add(m_mainPanel);

            m_progressTimer = new Timer(
                progressCallback, this, Timeout.Infinite, ProgressInterval);

            m_progressDialog = new ThreadSafeProgressDialog(false, true);
            m_progressDialog.Cancelled += progressDialog_Cancelled;
        }
開發者ID:JanDeHud,項目名稱:LevelEditor,代碼行數:25,代碼來源:StatusService.cs

示例2: CrmConnectionStatusBar

        /// <summary>
        /// Initializes a new instance of class CrmConnectionStatusBar
        /// </summary>
        public CrmConnectionStatusBar(FormHelper formHelper)
        {
            resources = new System.ComponentModel.ComponentResourceManager(typeof(CrmConnectionStatusBar));

            ConnectionManager.Instance.ConnectionListUpdated += cManager_ConnectionListUpdated;
            _formHelper = formHelper;

            // Build connection control
            this.BuildConnectionControl();

            // Add label that will display information about connection
            ToolStripStatusLabel informationLabel = new ToolStripStatusLabel
            {
                Spring = true,
                TextAlign = ContentAlignment.MiddleRight
            };

            this.Items.Add(informationLabel);

            ToolStripProgressBar progress = new ToolStripProgressBar
            {
                Minimum = 0,
                Maximum = 100,
                Visible = false
            };
            this.Items.Add(progress);

            base.RenderMode = ToolStripRenderMode.Professional;
        }
開發者ID:NORENBUCH,項目名稱:XrmToolBox,代碼行數:32,代碼來源:CrmConnectionStatusBar.cs

示例3: draw

        public void draw(ToolStripStatusLabel label)
        {
            _ctx.translate(280, 200);
            _ctx.scale(0.4, 0.4);

            fly(_ctx, 1, label);
        }
開發者ID:podlipensky,項目名稱:sharpcanvas,代碼行數:7,代碼來源:FlyingDragon.cs

示例4: CreateDefaultStipStatusLabel

 //分離された領域を作成
 private static ToolStripStatusLabel CreateDefaultStipStatusLabel() {
     ToolStripStatusLabel l = new ToolStripStatusLabel();
     l.AutoSize = false;
     l.BorderSides = ToolStripStatusLabelBorderSides.All;
     l.BorderStyle = Border3DStyle.SunkenInner;
     return l;
 }
開發者ID:Ricordanza,項目名稱:poderosa,代碼行數:8,代碼來源:StatusBar.cs

示例5: PowerShellHost

        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="parentForm">The connection form that will display the PowerShell console.</param>
        /// <param name="terminal">Terminal control that will display the PowerShell console.</param>
        /// <param name="executeHelper">Method used to execute PowerShell commands within the current session.</param>
        /// <param name="progressBar">Progress bar UI element to update when writing progress records.</param>
        /// <param name="progressLabel">Label UI element to update when writing progress records.</param>
        public PowerShellHost(
			PowerShellConnectionForm parentForm, TerminalControl terminal, Func<string, Collection<PSObject>> executeHelper, ToolStripProgressBar progressBar,
			ToolStripStatusLabel progressLabel)
        {
            _parentForm = parentForm;
            _powerShellHostUi = new PowerShellHostUi(terminal, executeHelper, progressBar, progressLabel);
        }
開發者ID:cdhunt,項目名稱:EasyConnect,代碼行數:15,代碼來源:PowerShellHost.cs

示例6: ProcessLayer

 public ProcessLayer(ToolStripStatusLabel ProcStatus, TextBox TxtLog)
 {
     m_lb_Status = ProcStatus;
     m_txt_Log = TxtLog;
     bIsRun = false;
     bIsShow = true;
 }
開發者ID:hicream,項目名稱:RadioEye,代碼行數:7,代碼來源:ProcessLayer.cs

示例7: StatusWriter

 /// <summary>
 /// Initialize a status writer.
 /// </summary>
 /// <param name="strip">Status strip holding the messages.</param>
 /// <param name="parent">Parent which contains the status writer.  
 /// (May be invoked recursively across threads).</param>
 /// <param name="crossInvoke">Delegate to invoke cross-threads in parent.</param>
 public StatusWriter(ToolStripStatusLabel strip, Control parent, StatusDelegate crossInvoke)
 {
     this.label = strip;
     this.parentControl = parent;
     this.defaultStatusStripBackColor = strip.BackColor;
     this.crossInvoke = crossInvoke;
 }
開發者ID:knowledgehacker,項目名稱:Dryad,代碼行數:14,代碼來源:Status.cs

示例8: ChatClient

 public ChatClient(string[] args, TextBox output, ToolStripStatusLabel messageToolStripSatusLbl)
 {
     this._outputTxtBx = output;
     this._messageStatus = messageToolStripSatusLbl;
     this._roomVersion = RoomVersion.Base;
     this.Initialize(args);
 }
開發者ID:spolnik,項目名稱:Chat_Ice_ZeroC,代碼行數:7,代碼來源:ChatClient.cs

示例9: QueryStatusBar

        public QueryStatusBar()
        {
            SizingGrip = false;
            Stretch = true;
            DockPadding.All = 0;
            
            _connectionLabel = new ToolStripStatusLabel();
            _connectionLabel.Spring = true;

            _serverLabel = new ToolStripStatusLabel();
            _userLabel = new ToolStripStatusLabel();
            _queryTimeLabel = new ToolStripStatusLabel();
            _rowCountLabel = new ToolStripStatusLabel();

            //		    statusLabel.BorderSides = ToolStripStatusLabelBorderSides.All;
            //statusLabel.BorderStyle = Border3DStyle.Sunken;

            foreach (var label in AllLabels)
            {
                label.BorderSides = ToolStripStatusLabelBorderSides.All;
                label.Alignment = ToolStripItemAlignment.Right;
                label.BorderStyle = Border3DStyle.SunkenOuter;
                label.Padding = new Padding(-1, 5, -1, 5);
                label.TextAlign = ContentAlignment.MiddleLeft;
            }

        }
開發者ID:rbramwell,項目名稱:OrionSDK,代碼行數:27,代碼來源:QueryStatusBar.cs

示例10: UpdateStatusBar

 public void UpdateStatusBar(string message)
 {
     statusBar.Items.Clear();
     ToolStripStatusLabel label = new ToolStripStatusLabel(message);
     statusBar.Items.Add(label);
     ScreenReader.sayString(label.Text, false);
 }
開發者ID:craigbrett17,項目名稱:Iris,代碼行數:7,代碼來源:MainWindow.cs

示例11: InitStatus

        /// <summary> 
        /// 初始化任務欄
        /// </summary>
        private void InitStatus()
        {
            this.stsStatus.SuspendLayout();
            // Timer
            ToolStripStatusLabel tsslblTimer = new ToolStripStatusLabel();
            tsslblTimer.Name = "tsslblTimer";
            tsslblTimer.Text = Utility.GetLongSysDateTimeString();

            ToolStripSeparator tssp1 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblUser = new ToolStripStatusLabel();
            tsslblUser.Name = "tsslblUser";
            tsslblUser.Text = "登錄人員:";

            ToolStripSeparator tssp2 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblABName = new ToolStripStatusLabel();
            tsslblABName.Name = "tsslblABName";
            tsslblABName.Text = "當前賬本:";

            ToolStripSeparator tssp3 = new ToolStripSeparator();

            ToolStripStatusLabel tsslblIP = new ToolStripStatusLabel();
            tsslblIP.Name = "tsslblIP";
            tsslblIP.Text = "IP:";

            this.stsStatus.Items.AddRange(new ToolStripItem[] { tsslblTimer, tssp1, tsslblUser, tssp2, tsslblABName, tssp3, tsslblIP});

            this.stsStatus.ResumeLayout(false);
            this.stsStatus.PerformLayout();
        }
開發者ID:rogerluo,項目名稱:Stror,代碼行數:34,代碼來源:Mainform.cs

示例12: FrmOutEarth

 public FrmOutEarth(GSOGlobeControl globeControl, DevComponents.DotNetBar.Controls.DataGridViewX dataGridViewX11, ToolStripStatusLabel toolStripNumbers1)
 {
     InitializeComponent();
     globeControl1 = globeControl;
     dataGridViewX1 = dataGridViewX11;
     toolStripNumbers = toolStripNumbers1;
 }
開發者ID:StarU,項目名稱:qkKL6Dgf12,代碼行數:7,代碼來源:FrmOutEarth.cs

示例13: LayoutOrder

        //Инициализация класса с получением рабочей формы
        public LayoutOrder(Panel Panel, System.Windows.Forms.ToolStripStatusLabel ToolStripStatusLabel1)
        {
            ParentPanel = Panel;
            ParentToolStripStatusLabel = ToolStripStatusLabel1;

            Data.ElemsAfterEditingAss = new Data.MyEventDict(writeElems);
        }
開發者ID:Blyumenshteyn,項目名稱:UchetUSP,代碼行數:8,代碼來源:LayoutOrder.cs

示例14: RepoResultsActor

 public RepoResultsActor(DataGridView userDg, ToolStripStatusLabel statusLabel, ToolStripProgressBar progressBar)
 {
     _userDg = userDg;
     _statusLabel = statusLabel;
     _progressBar = progressBar;
     InitialReceives();
 }
開發者ID:jdarsie,項目名稱:akka-bootcamp,代碼行數:7,代碼來源:RepoResultsActor.cs

示例15: MedusaStatusBar

        /// <summary>
        /// Constructor
        /// </summary>
        public MedusaStatusBar()
        {
            InitializeComponent();

            //Agrego el item de cargando
            ToolStripItem item1 = new ToolStripStatusLabel();
            Image loadingImage = Properties.Resources.ajax_loader_4;
            item1.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
            item1.Name = "loading";
            item1.Image = loadingImage;
            item1.ImageScaling = ToolStripItemImageScaling.None;
            item1.Text = "Cargando...";
            this.Items.Add(item1);
            //Agrego el item de informacion
            ToolStripItem item2 = new ToolStripStatusLabel();
            Image infoImage = Properties.Resources.emblem_important;
            item2.Name = "information";
            item2.DisplayStyle = ToolStripItemDisplayStyle.ImageAndText;
            item2.Image = infoImage;
            item2.ImageScaling = ToolStripItemImageScaling.None;
            item2.Text = "";
            item2.Visible = false;
            this.Items.Add(item2);

            //Timer
            aTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            aTimer.Interval = 10000;
        }
開發者ID:martinherr3,項目名稱:medusa-biodata,代碼行數:31,代碼來源:MedusaStatusBar.cs


注:本文中的System.Windows.Forms.ToolStripStatusLabel類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。