private void buttonShutterSpeed_Click(object sender, RoutedEventArgs e) { ShutterSpeed w = new ShutterSpeed(); ActionShow.CenterShow(CameraTestDesktop.getDesktopPanel(), w); Canvas Desk = CameraTestDesktop.getDesktopPanel(); if (Desk.Children.Contains(this)) { Desk.Children.Remove(this); } }
private void Button_Click_2(object sender, RoutedEventArgs e) { ShutterSpeed ss = new ShutterSpeed(); LynxWindow.ShowWindow(ss, this.Parent as Panel); }