private void Double_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { try { if (e.ClickCount == 2) { Windows.WindowMatchingMaterials window = new Windows.WindowMatchingMaterials(ContainerItem); window.Show(); } } catch (Exception exception) { MessageBox.Show(exception.Message, "Ошибка"); } }
private void MatchingMaterials_OnClick(object sender, RoutedEventArgs e) { Windows.WindowMatchingMaterials window = new Windows.WindowMatchingMaterials(); window.Show(); }