예제 #1
0
파일: BaseScreen.cs 프로젝트: AramisIT/FMCG
 /// <summary>Перейти на наступний екран</summary>
 /// <param name="newScreen">Назва наступного екрану</param>
 /// <param name="isNext"></param>
 protected void GoToScreen(BaseScreen newScreen, bool isNext = true)
 {
     if (BeforeScreenChanged(isNext) || isNext)
     {
         OnScreenChanged(new ScreenChangedArgs(newScreen, true));
     }
 }
예제 #2
0
 /// <summary>���� - "������ ����"</summary>
 /// <param name="nextScreen">��������� ����</param>
 /// <param name="isNext">��������� �� ���������</param>
 public ScreenChangedArgs(BaseScreen nextScreen, bool isNext)
 {
     NextScreen = nextScreen;
     IsNext = isNext;
 }
예제 #3
0
파일: MainScreen.cs 프로젝트: AramisIT/FMCG
 /// <summary>Встановити новий скрін</summary>
 /// <param name="name">Назва скріну</param>
 private void loadNextScreen(BaseScreen name)
 {
     Controls.Add(name);
     name.ScreenChanged += screenChanged;
     Text = name.GetType().Name;
 }