public static CaseAddition GetCaseAddition() { if (caseAddition == null) { caseAddition = new CaseAddition(); } return(caseAddition); }
public static CaseAddition GetCaseAddition(CaseDisplay caseDisplay) { if (caseAdditionParam == null) { caseAdditionParam = new CaseAddition(caseDisplay); } return(caseAdditionParam); }
/// <summary> /// Добавление /// </summary> private void button12_Click(object sender, EventArgs e) { caseAddition = CaseAddition.GetCaseAddition(this); caseAddition.ShowDialog(); }