private void btnLoad_Click(object sender, RoutedEventArgs e) { var nodesWithEdges = FileStoreHelper.LoadFromFile(FILE_NAME); drawingCanvas.Children.Clear(); _nodes = nodesWithEdges.Nodes; _edges = nodesWithEdges.Edges; ResetVisitedFlag(); PaintAll(); }