コード例 #1
0
        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");
            }
        }
コード例 #2
0
        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);
            }
        }