public static NameCreatorSettings selectFont(NameCreatorSettings previous = null) { using (NameCreatorDialog d = new NameCreatorDialog()) { if (previous != null) d.Settings = previous; if (d.ShowDialog() == DialogResult.OK) { return d.Settings; } else { return null; } } }
public static NameCreatorSettings selectFont(NameCreatorSettings previous = null) { using (NameCreatorDialog d = new NameCreatorDialog()) { if (previous != null) { d.Settings = previous; } if (d.ShowDialog() == DialogResult.OK) { return(d.Settings); } else { return(null); } } }