private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { var color = Colors.Black; var size = 0; if (CheckBox1.IsChecked == true) { color = Color.FromRgb((byte)rd.Next(256), (byte)rd.Next(256), (byte)rd.Next(256)); } if (CheckBox2.IsChecked == true) { size = rd.Next(12, 18); } if (size == 0) { FlowMessageBox1.AddMessage(rd.Next(50000).ToString("C") + " " + DateTime.Now, color); } else { FlowMessageBox1.AddMessage(rd.Next(50000).ToString("C") + " " + DateTime.Now, color, size); } }
private void ClickE(object sender, RoutedEventArgs e) { FlowMessageBox1.AddMessage("Add at last", false); }