public void Note(int code) { string note; switch (code) { case 0: note = "Пожалуйста, подождите..."; break; case 1: note = " "; break; case 2: note = " "; break; case 3: note = " "; break; default: note = "This case is not exist"; break; } loadingWindow.ShowNote(note); }