private void OnPushed(object sender, string message) { if (_statusBar != null) { var contextId = _statusBar.GetContextId(message); _statusBar.Push(contextId, message); _stackContextId.Push(contextId); } }
// Constructor public MainWindow() : base("") { Stetic.Gui.Build(this, typeof(MainWindow)); SBCtxId = Statusbar.GetContextId("Card Status"); Statusbar.Push(SBCtxId, ""); // Try to open CardTerminal try { ct = new CT(1); OnCTConnected(); } catch (CTException ex) { Console.Error.WriteLine(ex); CTError(); } }