示例#1
0
 public override void HandleNotice(INotice notice)
 {
     switch (notice.GetType())
     {
     case Command2.Command2_OK:
         this.view.input.text = notice.GetBody()[0].ToString();
         break;
     }
     base.HandleNotice(notice);
 }
示例#2
0
 public override void HandleNotice(INotice notice)
 {
     switch (notice.GetType())
     {
     case Worker_Cloud.Broad_AddValue:
         this.view.num += (int)notice.GetBody()[0];
         break;
     }
     base.HandleNotice(notice);
 }
示例#3
0
 public override void HandleNotice(INotice notice)
 {
     switch (notice.GetType())
     {
     case Command.Command_Show:
         OtherVo vo = notice.GetBody <OtherVo>();
         SetViewObj(vo);
         break;
     }
     base.HandleNotice(notice);
 }
示例#4
0
    public override void Execute(INotice notice)
    {
        switch (notice.GetType())
        {
        case Monitor_Closed:
            WindowStackManager.ins.OnWindowClosed(notice.GetBody()[0].ToString());
            break;
        }

        base.Execute(notice);
    }
示例#5
0
    public override void HandleNotice(INotice notice)
    {
        switch (notice.GetType())
        {
        case Command.Command_Show:
            TableVo vo = notice.GetBody <TableVo>();
            SetViewObj(vo);
            ShowSubPage(viewObj.index);
            break;

        case Command.Command_Reactive:
            LoadViewObj();
            break;
        }
        base.HandleNotice(notice);
    }
示例#6
0
    public override void HandleNotice(INotice notice)
    {
        // TODO: handle all notices from command
        switch (notice.GetType())
        {
        case Command.Command_Show:
            CodeGenVo vo = notice.GetBody <CodeGenVo>();
            SetViewObj(vo);
            break;

        case Command.Command_Reactive:
            LoadViewObj();
            break;
            // TODO: others custom notices...
        }
        base.HandleNotice(notice);
    }
示例#7
0
    public override void HandleNotice(INotice notice)
    {
        switch (notice.GetType())
        {
        case Command.Command_Show:
            KeepVo vo = notice.GetBody <KeepVo>();
            if (vo == null)
            {
                vo = new KeepVo();
            }
            SetViewObj(vo);
            break;

        case Command.Command_Reactive:
            LoadViewObj();
            break;
        }
        base.HandleNotice(notice);
    }