Beispiel #1
0
        private void RandomizeButton_Click(object sender, RoutedEventArgs e)
        {
            FooKingpin kingpin = (FooKingpin)FindResource("fooKingpin");

            kingpin.Randomize();

            FooCallButton callButton = (FooCallButton)FindResource("fooCallButton");

            callButton.Randomize();
        }
Beispiel #2
0
        private void RandomizeButton_Click(object sender, RoutedEventArgs e)
        {
            FooKingpin kingpin = (FooKingpin)FindResource("fooKingpin");

            kingpin.Randomize();

            FooCallButton callButton = (FooCallButton)FindResource("fooCallButton");

            callButton.Randomize();

            FooIPAddressable fooIPAddressable = (FooIPAddressable)FindResource("fooIPAddressable");

            fooIPAddressable.Randomize();

            ViewModelLocator.IPAddressViewModel.Model = fooIPAddressable;
        }