void AcceptPar() { string[] s = new string[5]; for (int i = 0; i < 5; i++) { object o = boxes[i].SelectedItem; if (o == null) { WindowsExtensions.ControlExtensions.ShowMessageBoxModal("Empty"); return; } s[i] = o + ""; } if (!filter.Set(s[0], s[1], s[2], s[3], s[4])) { WindowsExtensions.ControlExtensions.ShowMessageBoxModal("Incorrect"); return; } FillNumbers(old[0] != null); }