Пример #1
0
        private void Properties(object sender, RoutedEventArgs e)
        {
            DialogWindowPropertiesModbusControl WindowProperties = new DialogWindowPropertiesModbusControl(this);

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

            e.Handled = true;
        }
Пример #2
0
        protected override void OnMouseDoubleClick(MouseButtonEventArgs e)
        {
            base.OnMouseDoubleClick(e);

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

            e.Handled = true;
        }