Пример #1
0
 private void SubscribeMenuEvent(object sender, PWMessage <MenuCommands> msg)
 {
     if (!IsActive)
     {
         return;
     }
     Update(msg.Content);
 }
Пример #2
0
        private void Update(object sender, PWMessage <MenuCommands> msg)
        {
            IRequestAction action = null;

            _actions.TryGetValue(msg.Content, out action);
            if (action != null)
            {
                LoginAction loginAction = action as LoginAction;
                if (loginAction != null)
                {
                    loginAction.IsCancel = msg.Content == MenuCommands.CancelConnect;
                }

                action.Perform();
            }
        }
Пример #3
0
 private void OnAddShape(object sender, PWMessage <ShapeType> msg)
 {
     AddLayer(msg.Content, ShapeAddMode.Menu);
 }