Ejemplo n.º 1
0
 public static SolidColorBrush GetColorFromInfoColor(MyUILibrary.Temp.InfoColor infoColor)
 {
     if (infoColor == MyUILibrary.Temp.InfoColor.Null)
     {
         return(null);
     }
     else
     {
         Color color = Colors.Black;
         if (infoColor == MyUILibrary.Temp.InfoColor.Blue)
         {
             color = Colors.Blue;
         }
         else if (infoColor == MyUILibrary.Temp.InfoColor.Green)
         {
             color = Colors.Green;
         }
         else if (infoColor == MyUILibrary.Temp.InfoColor.Red)
         {
             color = Colors.Red;
         }
         else if (infoColor == MyUILibrary.Temp.InfoColor.LightGray)
         {
             color = Colors.LightGray;
         }
         else if (infoColor == MyUILibrary.Temp.InfoColor.DarkRed)
         {
             color = Colors.DarkRed;
         }
         return(new SolidColorBrush(color));
     }
 }
Ejemplo n.º 2
0
 public void ShowInfo(string title, string detail, MyUILibrary.Temp.InfoColor infoColor = MyUILibrary.Temp.InfoColor.Black)
 {
     MainForm.ShowInfo(title, detail, UIManager.GetColorFromInfoColor(infoColor));
 }