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