Example #1
0
        private static void OnIsServerRuningChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ServerItem s = (ServerItem)d;

            if ((bool)e.NewValue)
            {
                s.Open();
            }
            else
            {
                s.Stop();
            }
        }
Example #2
0
 private static void OnColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     ServerItem s = (ServerItem)d;
 }