private void onwheel_Click(object sender, RoutedEventArgs e) { OnWheel oc = new OnWheel(); oc.Closing += oc_Closing; _msgLayer_.Content = oc; }
private void _onWheelItem_DoubleClick(object sender, MouseButtonEventArgs e) { if (e.ClickCount == 2) { OnWheel oc = new OnWheel(_onwheeleventlist_.SelectedItem as OnWheelEvent); oc.Closing += oc_Closing; _msgLayer_.Content = oc; } }