private string ImportMePlease(string file) { using (var form = new Forms.BankNPresetSel(file, 0, 1)) { var result = form.ShowDialog(); if (result == DialogResult.OK) { return(String.Format("p{0},{1}={2},{3}|{4}", form.BankValueReturn, form.PresetValueReturn, form.DesBankValueReturn, form.DesPresetValueReturn, file)); } else { return(String.Format("p{0},{1}={2},{3}|{4}", 0, 0, 0, 0, file)); } } }
private string ImportMePlease(string file) { using (var form = new Forms.BankNPresetSel(file, 0, 1)) { var result = form.ShowDialog(); if (result == DialogResult.OK) { return String.Format("p{0},{1}={2},{3}|{4}", form.BankValueReturn, form.PresetValueReturn, form.DesBankValueReturn, form.DesPresetValueReturn, file); } else { return String.Format("p{0},{1}={2},{3}|{4}", 0, 0, 0, 0, file); } } }