/// <summary>
        /// Show popup window whichs is special, has special message
        /// </summary>
        /// <param name="childWindow"></param>
        /// <param name="message"></param>
        public static void Show(ChildWindow childWindow, MessageItem message)
        {
            if (childWindow != null) {
                _instance = childWindow;
                _instance.Show();

                Messenger.Default.Send<MessageItem>(message);
            }
        }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj.ObjectReceive == "ExaminationCandidate")
       _client.THI_SINH_SearchAsync(CurrentSearch, 200);
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj != null && obj.ObjectReceive == "ExaminationCandidateEdit")
     {
         ActionMode = obj.ActionMode;
         IsEnable = true;
         CurrentItem = obj.Content != null ? obj.Content as THI_SINH_SearchResult : new THI_SINH_SearchResult()
         {
             maNguoiLap = CurrentSystemInfo.CurrentUser.userID,
             thoiGianLap = DateTime.Now,
             maTrangThaiDuyet = "U",
             trangThaiDuLieu = "1"
         };
         switch (ActionMode)
         {
             case Core.Actions.ActionMode.View:
                 ActionMenuService.SetAction(null, null, null, null, null, null, ActionCommand);
                 IsEnable = false;
                 break;
             case Core.Actions.ActionMode.Edit:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 break;
             case Core.Actions.ActionMode.Insert:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 CurrentItem.SBD = Helper.GenerateCode(obj.Tag.ToString());
                 break;
             default:
                 break;
         }
     }
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj.ObjectReceive == "PageInfo")
         _client.TL_MENU_SearchAsync(CurrentSearch, 20);
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj.ObjectReceive == "Remarking")
    _clientBienBanThi.BIEN_BAN_CHAM_THI_SearchAsync(CurrentSearch, 200);
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj != null && obj.ObjectReceive == "RemarkingEdit")
     {
         ActionMode = obj.ActionMode;
         IsEnable = true;
         MaThiSinh = obj.Content != null ? (obj.Content as BIEN_BAN_CHAM_THI_SearchResult).maThiSinh : null;
         if (!string.IsNullOrEmpty(_maThiSinh))
             CurrentItem = DataItemThiSinh.Where(p => p.maThiSinh == MaThiSinh).FirstOrDefault();
         switch (ActionMode)
         {
             case Core.Actions.ActionMode.View:
                 ActionMenuService.SetAction(null, null, null, null, null, null, ActionCommand);
                 _namTuyenSinh = (obj.Content as BIEN_BAN_CHAM_THI_SearchResult).namTuyenSinh.Value;
                 IsEnable = false;
                 break;
             case Core.Actions.ActionMode.Edit:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 _namTuyenSinh = (obj.Content as BIEN_BAN_CHAM_THI_SearchResult).namTuyenSinh.Value;
                 break;
             case Core.Actions.ActionMode.Insert:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 break;
             default:
                 break;
         }
     }
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj != null && obj.ObjectReceive == "PageInfoEdit")
     {
         ActionMode = obj.ActionMode;
         IsEnable = true;
         CurrentItem = obj.Content != null ? obj.Content as TL_MENU_SearchResult : new TL_MENU_SearchResult() { menuParentID=0 };
         switch (ActionMode)
         {
             case Core.Actions.ActionMode.View:
                 ActionMenuService.SetAction(null, null, null, null, null, null, ActionCommand);
                 IsEnable = false;
                 break;
             case Core.Actions.ActionMode.Edit:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 break;
             case Core.Actions.ActionMode.Insert:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 break;
             default:
                 break;
         }
     }
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj != null && obj.ObjectReceive == "DVDKDTEdit")
     {
         ActionMode = obj.ActionMode;
         IsReadOnly = false;
         CurrentItem = obj.Content != null ? obj.Content as DON_VI_DKDT_SearchResult : new DON_VI_DKDT_SearchResult();
         switch (ActionMode)
         {
             case Core.Actions.ActionMode.View:
                 ActionMenuService.SetAction(null, null, null, null, null, null, ActionCommand);
                 IsReadOnly = true;
                 break;
             case Core.Actions.ActionMode.Edit:
             case Core.Actions.ActionMode.Insert:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null, null, null);
                 break;
             default:
                 break;
         }
     }
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj.ObjectReceive == "PageInfo")
         client.QUAN_HUYEN_SearchAsync(CurrentSearch, 100);
 }
 public override void OnCurrentMessageReceived(MessageItem obj)
 {
     if (obj != null && obj.ObjectReceive == "UserInfoEdit")
     {
         ActionMode = obj.ActionMode;
         IsEnable = true;
         CurrentItem = obj.Content != null ? obj.Content as TL_USER_SearchResult : new TL_USER_SearchResult();
         switch (ActionMode)
         {
             case Core.Actions.ActionMode.View:
                 ActionMenuService.SetAction(null, null, null, null, null, null, ActionCommand);
                 IsEnable = false;
                 break;
             case Core.Actions.ActionMode.Edit:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 break;
             case Core.Actions.ActionMode.Insert:
                 ActionMenuService.SetAction(null, ActionCommand, null, null, null);
                 break;
             default:
                 break;
         }
         _clientRole.TL_SYS_ROLE_SearchAsync(new TL_SYS_ROLE_SearchResult(), 200);
     }
 }
 public  virtual void OnCurrentMessageReceived(MessageItem obj)
 {
     return;
 }