コード例 #1
0
        private void Properties(object sender, RoutedEventArgs e)
        {
            DialogWindowPropertiesEthernetControl WindowProperties = new DialogWindowPropertiesEthernetControl(this);

            WindowProperties.Owner = Application.Current.MainWindow;
            WindowProperties.ShowDialog();

            e.Handled = true;
        }
コード例 #2
0
        protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
        {
            base.OnMouseDoubleClick(e);

            if (IsSelected)
            {
                DialogWindowPropertiesEthernetControl WindowProperties = new DialogWindowPropertiesEthernetControl(this);
                WindowProperties.Owner = Application.Current.MainWindow;
                WindowProperties.ShowDialog();
            }

            e.Handled = true;
        }