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); }
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); }
public override void HandleNotice(INotice notice) { switch (notice.GetType()) { case Command.Command_Show: OtherVo vo = notice.GetBody <OtherVo>(); SetViewObj(vo); break; } base.HandleNotice(notice); }
public override void Execute(INotice notice) { switch (notice.GetType()) { case Monitor_Closed: WindowStackManager.ins.OnWindowClosed(notice.GetBody()[0].ToString()); break; } base.Execute(notice); }
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); }
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); }
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); }