Пример #1
0
 /// <summary>
 /// The component is upon to be moved or resized.
 /// </summary>
 private void OnDragStarting(object sender, InputModeEventArgs e)
 {
     if (sender is ComponentDropInputMode graphDropInputMode)
     {
         var component = graphDropInputMode.DropData as IGraph;
         layoutHelper = new ClearAreaLayoutHelper(graphControl, component, keepComponentsButton.Checked ? graphComponents : null);
         layoutHelper.InitializeLayout();
     }
 }
        /// <summary>
        /// The component is upon to be moved or resized.
        /// </summary>
        private void OnDragStarting(object sender, InputModeEventArgs e)
        {
            var graphDropInputMode = sender as ComponentDropInputMode;

            if (graphDropInputMode != null)
            {
                var component = graphDropInputMode.DropData as IGraph;
                layoutHelper = new ClearAreaLayoutHelper(GraphControl, component, ConsiderComponents.IsChecked == true ? components : null);
                layoutHelper.InitializeLayout();
            }
        }