public void SetMsg(string _msg, string purpose, string _bot = "") { _purpose = purpose; MsgTextBlockMainMsg.Text = _msg; MsgLabelTop.Content = purpose; ChkTagOption.IsChecked = WTA_TCOM.Properties.Settings.Default.TagOtherViews; if (purpose.Contains("Tag")) { TagOption.Visibility = System.Windows.Visibility.Visible; } else { TagOption.Visibility = System.Windows.Visibility.Collapsed; } if (_closable) { MsgLabelBot.Content = "Ok Already"; MsgLabelBot.FontSize = 18; if (_anErr) { ClrA = ColorExt.ToBrush(System.Drawing.Color.LightPink); } } else { if (_bot != "") { MsgLabelBot.Content = _bot; } } FlipColor(); }
private void RandomColorPair() { Random rand = new Random(); int randInt = rand.Next(0, 1); switch (randInt) { case 0: ClrA = ColorExt.ToBrush(System.Drawing.Color.AliceBlue); ClrB = ColorExt.ToBrush(System.Drawing.Color.Cornsilk); break; case 1: ClrA = ColorExt.ToBrush(System.Drawing.Color.Cornsilk); ClrB = ColorExt.ToBrush(System.Drawing.Color.AliceBlue); break; default: ClrA = ColorExt.ToBrush(System.Drawing.Color.AliceBlue); ClrB = ColorExt.ToBrush(System.Drawing.Color.Cornsilk); break; } }