private void btnSave_Click(object sender, RoutedEventArgs e) { FileStoreHelper.SaveToFile(FILE_NAME, new NodesWithEdges { Nodes = _nodes, Edges = _edges }); }