private void txtMsg_TextChanged(object sender, System.EventArgs e) { //if log is hidden then when logging,show red panel text if (panel1.Visible == false && !txtMsg.Text.Equals("")) { statusBrush = new SolidBrush(Color.Red); statusBar.Refresh(); } }
private int AddInternal(StatusBarPanel p, bool refresh) { if (p == null) { throw new ArgumentNullException("value"); } p.SetParent(owner); int res = panels.Add(p); if (refresh) { owner.CalcPanelSizes(); owner.Refresh(); } // UIA Framework Event: Panel Added OnUIACollectionChanged(new CollectionChangeEventArgs(CollectionChangeAction.Add, res)); return(res); }
private void WorkProgress(int records, int pagecount, ref bool docancel) { // if (fmetapr.MetaFile.Finished) // EPage.Maximum = fmetapr.MetaFile.Pages.CurrentCount; string atext = ""; if (records > 0) { atext = atext + Translator.TranslateStr(684) + ": " + records.ToString("##,##0"); } atext = atext + " " + Translator.TranslateStr(1414) + ": " + (pagecount).ToString("#,##0"); BStatus.Panels[0].Text = atext; BStatus.Refresh(); }