Пример #1
0
        public void ShowHintMessage(HintContent content)
        {
            var window = GetUnClosedWindow("Hint");

            if (window)
            {
                hintContexts.Enqueue(content);
            }
            else
            {
                OpenWindow("Hint", true, false, content);
            }
        }
Пример #2
0
        private void ShowNextMessage()
        {
            var message = Singleton <WindowManager> .GetInstance().GetHintContext();

            hint = message;
            if (message != null)
            {
                SetValue(message.GetHintMesssge());
            }
            else
            {
                Singleton <WindowManager> .GetInstance().CloseWindow(false, "Hint");
            }
        }
Пример #3
0
 protected override void OnHide(WindowContext context)
 {
     isUpdate = false;
     base.OnHide(context);
     hint = null;
 }
Пример #4
0
 protected override void OnAppear(int sequence, int openOrder, WindowContext context)
 {
     base.OnAppear(sequence, openOrder, context);
     hint = context as HintContent;
     SetValue(hint.GetHintMesssge());
 }