I'm new to C# and am working on this project
My code:
private static void Anonymize(ElementList elementList)
{
string name = textBox3.Text;
Anonimize(elementList.Get(DicomTag.PatientsName), PatientNames, "Patient Name " + name);
}
when Anonimize method parameters are:
private static void Anonimize(Element element, Dictionary<string, string> dic, string pattern)
I would like to know how to be able to type in the patients name into a text box and have the program use it in the static method. The program needs to stay static and I can't add a textbox parameter because that will mess with my other code. Any help would be greatly appreciated.