private void BtnNetworkExport_OnClick(object sender, RoutedEventArgs e) { var filename = ""; var inputDialog = new FileNameInputWindow("FileName"); if (inputDialog.ShowDialog() == true) { filename = inputDialog.Answer; NetworkFileHandler.ExportNetwork(MainNetwork, filename + ".txt"); } }
private void BtnNetworkImport_OnClick(object sender, RoutedEventArgs e) { var filename = ""; var inputDialog = new NetworkInputWindow(); if (inputDialog.ShowDialog() == true) { filename = inputDialog.Answer; NetworkFileHandler.ImportNetwork(ref MainNetwork, "Networks\\" + filename + ".txt", DrawCanvas); } }