コード例 #1
0
 private static void Message(MpeLogLevel level, string message)
 {
     if (MediaPortalEditor.Global != null && MediaPortalEditor.Global.StatusBar != null)
     {
         MediaPortalEditor.Global.StatusBar.Message(level, message);
     }
     Console.WriteLine(level.ToString() + ": " + message);
 }
コード例 #2
0
ファイル: MpeLog.cs プロジェクト: arangas/MediaPortal-1
 private static void Message(MpeLogLevel level, string message)
 {
   if (MediaPortalEditor.Global != null && MediaPortalEditor.Global.StatusBar != null)
   {
     MediaPortalEditor.Global.StatusBar.Message(level, message);
   }
   Console.WriteLine(level.ToString() + ": " + message);
 }
コード例 #3
0
 public void Message(MpeLogLevel level, string message)
 {
     if (currentLevel != level)
     {
         currentLevel = level;
         SetIconPanelText(currentLevel.ToString());
     }
     if (textPanel.Text.Equals(message) == false)
     {
         SetTextPanelText(message);
     }
 }
コード例 #4
0
 public void Message(MpeLogLevel level, string message)
 {
     if (currentLevel != level)
     {
         currentLevel   = level;
         iconPanel.Text = currentLevel.ToString();
     }
     if (textPanel.Text.Equals(message) == false)
     {
         textPanel.Text = message;
     }
 }
コード例 #5
0
 public void Message(MpeLogLevel level, string message, int progress)
 {
     if (currentLevel != level)
     {
         currentLevel   = level;
         iconPanel.Text = currentLevel.ToString();
     }
     if (textPanel.Text.Equals(message) == false)
     {
         textPanel.Text = message;
     }
     if (progress != progressBar.Value)
     {
         Progress(progress);
     }
 }
コード例 #6
0
ファイル: MpeLog.cs プロジェクト: arangas/MediaPortal-1
 private static void Message(MpeLogLevel level, Exception e)
 {
   string m = "";
   if (e != null)
   {
     m += "[" + e.GetType().ToString() + "] ";
     if (e.Message != null && e.Message.Length > 0)
     {
       m += e.Message;
       m += Environment.NewLine;
       m += e.StackTrace;
     }
     if (MediaPortalEditor.Global != null && MediaPortalEditor.Global.StatusBar != null)
     {
       MediaPortalEditor.Global.StatusBar.Message(level, e);
     }
     Console.WriteLine(level.ToString() + ": " + m);
   }
 }
コード例 #7
0
        private static void Message(MpeLogLevel level, Exception e)
        {
            string m = "";

            if (e != null)
            {
                m += "[" + e.GetType().ToString() + "] ";
                if (e.Message != null && e.Message.Length > 0)
                {
                    m += e.Message;
                    m += Environment.NewLine;
                    m += e.StackTrace;
                }
                if (MediaPortalEditor.Global != null && MediaPortalEditor.Global.StatusBar != null)
                {
                    MediaPortalEditor.Global.StatusBar.Message(level, e);
                }
                Console.WriteLine(level.ToString() + ": " + m);
            }
        }
コード例 #8
0
		public void Message(MpeLogLevel level, string message) {
			if (currentLevel != level) {
				currentLevel = level;
				iconPanel.Text = currentLevel.ToString();
			}
			if (textPanel.Text.Equals(message) == false) {
				textPanel.Text = message;
			}
		}
コード例 #9
0
		public void Message(MpeLogLevel level, string message, int progress) {
			if (currentLevel != level) {
            currentLevel = level;
				iconPanel.Text = currentLevel.ToString();
			}
			if (textPanel.Text.Equals(message) == false) {
				textPanel.Text = message;
			}
			if (progress != progressBar.Value)
				Progress(progress);
		}
コード例 #10
0
ファイル: MpeStatusBar.cs プロジェクト: arangas/MediaPortal-1
 public void Message(MpeLogLevel level, string message)
 {
   if (currentLevel != level)
   {
     currentLevel = level;
     SetIconPanelText(currentLevel.ToString());
   }
   if (textPanel.Text.Equals(message) == false)
   {
     SetTextPanelText(message);
   }
 }