Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
 private void ClickE(object sender, RoutedEventArgs e)
 {
     FlowMessageBox1.AddMessage("Add at last", false);
 }
Exemplo n.º 3
0
 private void ButtonBase2_OnClick(object sender, RoutedEventArgs e)
 {
     FlowMessageBox1.AddHyperLink("Add to last", ClickE, false);
 }
Exemplo n.º 4
0
 private void ButtonBase1_OnClick(object sender, RoutedEventArgs e)
 {
     FlowMessageBox1.ClearMessage();
 }