// New method to set staus bar text and icon internal void ShowStatus(eStatusMsgType messageType, string statusText) { this.Dispatcher.Invoke(() => { if (!string.IsNullOrEmpty(statusText)) { xProcessMsgPnl.Visibility = Visibility.Visible; xProcessMsgTxtBlock.Text = statusText; xProcessMsgTxtBlock.ToolTip = statusText; switch (messageType) { case eStatusMsgType.PROCESS: xProcessMsgIcon.ImageType = eImageType.Processing; break; case eStatusMsgType.INFO: xProcessMsgIcon.ImageType = eImageType.Info; break; } GingerCore.General.DoEvents(); } else { xProcessMsgPnl.Visibility = Visibility.Collapsed; } }); }
public StatusMsg(eStatusMsgType MessageType, string MsgHeader, string MsgContent, bool ShowBtn = false, string BtnContent = "") { this.MessageType = MessageType; this.MsgHeader = MsgHeader; this.MsgContent = MsgContent; this.ShowBtn = ShowBtn; this.BtnContent = BtnContent; }
public override void ToStatus(eStatusMsgType messageType, string statusText) { // TODO: Add icon, other info? tooltip seperate if (!WorkSpace.Instance.RunningInExecutionMode) { App.MainWindow.ShowStatus(messageType, statusText); } // Check if we need to write to console or already done !!!! }
public override void ToStatus(eStatusMsgType messageType, string statusText) { Console.WriteLine("ToStatus: " + messageType + " " + statusText); }
public override void ToStatus(eStatusMsgType messageType, string statusText) { // TODO: Add icon, other info? tooltip seperate App.MainWindow.ShowStatus(messageType, statusText); }
public abstract void ToStatus(eStatusMsgType messageType, string statusText);
public override void ToStatus(eStatusMsgType messageType, string statusText) { /// Console.WriteLine(statusText); //write to Console already been done by Reporter }