Exemple #1
0
        // 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;
                }
            });
        }
Exemple #2
0
 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 !!!!
 }
Exemple #4
0
 public override void ToStatus(eStatusMsgType messageType, string statusText)
 {
     Console.WriteLine("ToStatus: " + messageType + " " + statusText);
 }
Exemple #5
0
 public override void ToStatus(eStatusMsgType messageType, string statusText)
 {
     // TODO: Add icon, other info? tooltip seperate
     App.MainWindow.ShowStatus(messageType, statusText);
 }
Exemple #6
0
 public abstract void ToStatus(eStatusMsgType messageType, string statusText);
Exemple #7
0
 public override void ToStatus(eStatusMsgType messageType, string statusText)
 {
     /// Console.WriteLine(statusText); //write to Console already been done by Reporter
 }