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); }
public void Message(MpeLogLevel level, string message) { if (currentLevel != level) { currentLevel = level; SetIconPanelText(currentLevel.ToString()); } if (textPanel.Text.Equals(message) == false) { SetTextPanelText(message); } }
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; } }
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); } }
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); } }
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); }