public ObjectsClassification()
        {
            InitializeComponent();

            GraphViewModel graphModel = new GraphViewModel();
            graphModel.LoadObjectTypes();
            graphModel.CreateMainGraph();

            this.DataContext = graphModel;
        }
 public ObjectsClassification(GraphViewModel graphModel)
     : this()
 {
     this.DataContext = graphModel;
 }