public VRPImportDialog() { InitializeComponent(); vrpFileName = string.Empty; tourFileName = string.Empty; format = VRPFormat.Empty; }
private void openVRPFileButton_Click(object sender, EventArgs e) { if (openVRPFileDialog.ShowDialog(this) == DialogResult.OK) { tspFileTextBox.Text = openVRPFileDialog.FileName; tspFileTextBox.Enabled = true; vrpFileName = openVRPFileDialog.FileName; okButton.Enabled = true; tourFileTextBox.Text = string.Empty; tourFileName = string.Empty; format = (VRPFormat)(openVRPFileDialog.FilterIndex); } }