Esempio n. 1
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            VertexClickCommandParameters parameters = new VertexClickCommandParameters();
            GraphSharp.Controls.VertexControl target = value as GraphSharp.Controls.VertexControl;

            parameters.Target = target.DataContext as ObjectTypeVertex;

            return parameters;
        }
Esempio n. 2
0
        public void OnVertexClick(VertexClickCommandParameters parameters)
        {
            CelestialObjectType oType = parameters.Target.Tag as CelestialObjectType;

            if (oType == null)
                return;

            if (oType.Subtypes == null || oType.Subtypes.Count == 0)
                return;

            _previousRoot = parameters.Target.Parent;
            //CreateOneLevelGraph(parameters.Target, _previousRoot);
            CreateOneLevelGraph(parameters.Target);
        }