예제 #1
0
    IEnumerator LongClick(Vector2 target)
    {
        yield return(new WaitForSeconds(1f));

        if ((target - longClickPos).magnitude < Screen.width / 10)
        {
            Vector3    mousepos = Camera.main.ScreenToWorldPoint(target) + Vector3.one * 0.5f;
            Vector2Int tileIdx  = new Vector2Int((int)mousepos.x, (int)mousepos.y);
            if (FieldManager.IsInField(tileIdx))
            {
                InfoView.instance.infoPanel.SetActive(true);
                Tile tile = FieldManager.GetTile(tileIdx);
                InfoView.Show(tile);

                Unit unit = tile.GetUnit();
                if (unit != null)
                {
                    InfoView.Show(unit);
                }

                Obtainable obtainable = tile.GetObtainable();
                if (obtainable != null)
                {
                    InfoView.Show(obtainable);
                }
            }
        }
    }
예제 #2
0
    public void Popup()
    {
        TrafficMessage tdata = m_Data as TrafficMessage;

        if (tdata.buy)
        {
            if (Convert.ToSingle(tdata.Money) <= UserTicketsModel.Instance.money)
            {
                if (TimeManager.instance.isTicketBuy(tdata.id))
                {
                    InfoView.Show(new InfoMessage("您已购买此行程,请勿重复购买", "提示!"));
                }
                else
                {
                    GameObject         go   = PopUpManager.Instance.AddUiLayerPopUp(Prefabs.BuyTicketPopup);
                    BuyTicketPopupView btpv = go.GetComponent <BuyTicketPopupView>();
                    btpv.traffic = m_Data as TrafficMessage;
                    PopUpManager.Instance.SetPopupPanelAutoClose(go);
                }
            }
            else
            {
                InfoView.Show(new InfoMessage("您的余额不足,支付失败", "提示!"));
            }
        }
        else
        {
            GameObject         go   = PopUpManager.Instance.AddUiLayerPopUp(Prefabs.BuyTicketPopup);
            BuyTicketPopupView btpv = go.GetComponent <BuyTicketPopupView>();
            btpv.traffic = m_Data as TrafficMessage;
            PopUpManager.Instance.SetPopupPanelAutoClose(go);
        }
    }
예제 #3
0
 public void Start()
 {
     _menu            = FindObjectOfType <UserInterface>().CreateView <InfoView>();
     _menu.ObjectInfo = this;
     _menu.InitializeViews();
     _menu.Deactivate();
 }
예제 #4
0
        private void OnInfoCommand(object obj)
        {
            AudioControl = MediaState.Stop;
            ButtonPressedEvent.GetEvent().Handler += CloseInfoView;

            InfoVue = new InfoView(MainWindow.LoginVM);


            InfoVue.ShowDialog();

            if (InfoVue.infoVM.ClickOnFin)
            {
                XmlSerializer xs = new XmlSerializer(typeof(List <Utilisateur>));

                StreamWriter wr = new StreamWriter("Xml/listeUtilisateur.xml");

                xs.Serialize(wr, MainWindow.LoginVM.ListUtilisateur);

                if (InfoVue.infoVM.ClickOnDel)
                {
                    MainWindow.Hide();
                    MainWindow.LoginVM.Login.Show();
                }
            }
        }
예제 #5
0
        public async Task LeavePendingGame()
        {
            if (PendingGameService.PendingGames.Count == 0)
            {
                await ReplyAsync(ErrorView.NotFound());
            }
            else
            {
                PendingGame game = PendingGameService.PendingGames.FirstOrDefault();
                IUser       user = game.Users.FirstOrDefault(u => u.Id == Context.User.Id);
                if (game.Active)
                {
                    _game.RemoveUserFromPlay(user);
                    await _game.NotifyPlayerLeft(Context.User);
                }
                else
                {
                    game.Users.Remove(user);
                    await ReplyAsync(InfoView.LeftLobby());

                    if (game.Users.Count == 0)
                    {
                        PendingGameService.PendingGames.Clear();
                        await ReplyAsync(InfoView.DeletedLobby());
                    }
                }
            }
        }
예제 #6
0
    public static void Show(InfoMessage message)
    {
        GameObject go = PopUpManager.Instance.AddPopLayerPopUp(Prefabs.InfoPanel);
        InfoView   iv = go.GetComponent <InfoView>();

        iv.Message = message;
        PopUpManager.Instance.SetPopupPanelAutoClose(go);
    }
예제 #7
0
 public InfoViewController()
 {
     iv             = new InfoView();
     iv.DataContext = this;
     ic             = this;
     ic.InstantiateMasterController();
     ic.Start();
 }
    public void AirPlaneFly(TicketParam tp)
    {
        TicketsController.Instance.DeleteTickets(tp.rt.GetTicketId());
        if (UserTicketsModel.Instance.where == Where.City && tp.rt.GetRoutineStartNode().Contains(UserTicketsModel.Instance.city))
        {
            AudioManager.Instance.PlayMusic(Audios.AirPlaneClip);
            UserTicketsModel.Instance.where = Where.AirPlane;
            Lucky.LuckyUtils.Log("airplane fly" + tp.rt.GetBeginTime());
            Vector3 startPos = Vector3.zero;
            Lucky.LuckyUtils.Log("start " + tp.rt.GetRoutineStartNode());
            Lucky.LuckyUtils.Log("stop " + tp.rt.GetEndNode());

            string start = tp.rt.GetRoutineStartNode();
            string stop  = tp.rt.GetEndNode();
            start = GetCityString(start);
            stop  = GetCityString(stop);
            LocationsModel.cityslocation.TryGetValue(start, out startPos);
            Vector3 stopPos = Vector3.zero;
            LocationsModel.cityslocation.TryGetValue(stop, out stopPos);
            Lucky.LuckyUtils.Log("start stop pos " + startPos + " " + stopPos);
            airline.Show(startPos, stopPos);


            dst = stop;

            DateTime starttime = tp.rt.GetBeginTime();
            DateTime stoptime  = tp.rt.GetEndTime();
            TimeSpan ts        = stoptime - starttime;

            ticketid = tp.rt.GetTicketId();
            TicketsController.Instance.DeleteTickets(ticketid);

            traveltime = (float)ts.TotalMinutes;
            Lucky.LuckyUtils.Log("travel time " + ts.TotalMinutes);
            double realtime = traveltime / TimeManager.instance.TimeSpeed;
            Lucky.LuckyUtils.Log("realtime " + realtime);
            animationName = start + "To" + stop;

            animator = airplane.GetComponent <Animator>();
            animator.Stop();
            AnimationClip clip = FindClip(animator, animationName);
            if (clip != null)
            {
                cliptime = clip.length;
                double speed = cliptime / realtime;
                Lucky.LuckyUtils.Log("speed " + speed);
                airplane.SetActive(true);
                animator.Play(animationName);
                animator.speed = (float)speed;
            }

            UserTicketsModel.Instance.going = true;
        }
        else
        {
            InfoView.Show(new InfoMessage("你当前不在出发城市,该机票" + tp.rt.GetTicketName() + "作废!", "亏大了!"));
        }
    }
예제 #9
0
 void Start()
 {
     OnLoad.onClick.AddListener(() => {
         OnLoad.gameObject.SetActive(false);
         infoView = Instantiate(infoViewPrefab);
         infoView.AddStatus(" · Start the download");
         infoView.AddStatus(" · Resource Search");
         addressableSceneLoader.StartFindSceneLocation(remoteSceneName, OnFindScene, OnError);
     });
 }
예제 #10
0
 public MainView()
 {
     GameM    = new GameModel();
     Language = new Language();
     Show     = new Show_hidden();
     InfoV    = new InfoView();
     LoginM   = new LoginModel();
     GameVM   = new GameVM(GameM, LoginM, InfoV);
     LoginVM  = new LoginVM(LoginM, GameM);
 }
예제 #11
0
    private void SetFirstPopUp()
    {
        if (UserTicketsModel.Instance.firstEnter == 0)
        {
            UserTicketsModel.Instance.firstEnter = 1;
            InfoView.Show(new InfoMessage("妈妈转账到账3000元,回沈阳!回家过年!要在24点前回到家吃年夜饭!", "收到转账"));
#if UNITY_ANDROID
            PlayerPrefs.SetInt("firstenter", 1);
#endif
        }
    }
예제 #12
0
        //public ActionResult ViewCatalog()
        //{
        //    var CatalogInfor = new InfoView();
        //    CatalogInfor.tongSpTrongGio = 0;
        //    if (Session["cart"] != null)
        //    {
        //        CatalogInfor.tongSpTrongGio = ((GioHang)Session["cart"]).TongSoluong();
        //    }
        //    return View(CatalogInfor);
        //}

        public ActionResult ViewCatalog(string id)
        {
            var CatalogInfor = new InfoView();

            CatalogInfor.Id             = id;
            CatalogInfor.tongSpTrongGio = 0;
            if (Session["cart"] != null)
            {
                CatalogInfor.tongSpTrongGio = ((GioHang)Session["cart"]).TongSoluong();
            }
            return(View(CatalogInfor));
        }
        public MainWindowViewModel(NavigationService navigationService,
                                   [KeyFilter("ConfigUpdateView")] ConfigUpdateView configUpdateView,
                                   PatConfigView patConfigView,
                                   DeleterConfigView deleterConfigView,
                                   AttachmentConfigView attachmentConfigView,
                                   RepositoryConfigView repositoryConfigView,
                                   BugFamilyView bugFamilyView,
                                   InfoView infoView,
                                   TestItemsView testItemsView,
                                   FieldMapperView fieldMapperView,
                                   IContext context,
                                   NotificationViewModel notificationViewModel)
        {
            NavigationService = navigationService;

            _patConfigView        = patConfigView;
            _deleterConfigView    = deleterConfigView;
            _attachmentConfigView = attachmentConfigView;
            _repositoryConfigView = repositoryConfigView;
            _bugFamilyView        = bugFamilyView;
            _infoView             = infoView;
            _testItemsView        = testItemsView;
            _fieldMapperView      = fieldMapperView;
            _configUpdateView     = configUpdateView;
            Context = context;
            Context.InitializePats();
            Context.InitializeRepositories();
            NotificationViewModel = notificationViewModel;

            LoadConfigUpdateViewCommand     = new RelayCommand(LoadConfigUpdateView, IsConfigUpdateViewEnabled);
            LoadPatConfigViewCommand        = new RelayCommand(LoadPatConfigView, IsPatConfigViewEnabled);
            LoadDeleterConfigViewCommand    = new RelayCommand(LoadDeleterConfigView, IsDeleterConfigViewEnabled);
            LoadAttachmentConfigViewCommand = new RelayCommand(LoadAttachmentConfigView, IsAttachmentConfigViewEnabled);
            LoadRepositoryConfigViewCommand = new RelayCommand(LoadRepositoryConfigView, IsRepositoryConfigViewEnabled);
            LoadBugFamilyViewCommand        = new RelayCommand(LoadBugFamilyView, IsBugFamilyViewEnabled);
            LoadInfoViewCommand             = new RelayCommand(LoadInfoView, IsInfoViewEnabled);
            LoadTestItemsViewCommand        = new RelayCommand(LoadTestItemsView, IsTestItemsViewEnabled);
            LoadFieldMapperViewCommand      = new RelayCommand(LoadFieldMapperView, IsFieldMapperViewEnabled);
            ShowMessageCommand   = new RelayCommandGeneric <NotificationModel, bool>(NotificationViewModel.ShowMessage, NotificationViewModel.IsShowMessageEnabled);
            LockWorkItemsCommand = new RelayCommand(LockWorkItems, IsLockWorkItemsEnabled);

            _patConfigView.ShowMessageCommand        = ShowMessageCommand;
            _configUpdateView.ShowMessageCommand     = ShowMessageCommand;
            _deleterConfigView.ShowMessageCommand    = ShowMessageCommand;
            _attachmentConfigView.ShowMessageCommand = ShowMessageCommand;
            _repositoryConfigView.ShowMessageCommand = ShowMessageCommand;
            _bugFamilyView.ShowMessageCommand        = ShowMessageCommand;
            _testItemsView.ShowMessageCommand        = ShowMessageCommand;
            _infoView.ShowMessageCommand             = ShowMessageCommand;
            _fieldMapperView.ShowMessageCommand      = ShowMessageCommand;

            CheckPatFreshness(DataAccessService.GetPatConfigFilePath());
        }
        void ReleaseDesignerOutlets()
        {
            if (AllButton != null)
            {
                AllButton.Dispose();
                AllButton = null;
            }

            if (HighlightsButton != null)
            {
                HighlightsButton.Dispose();
                HighlightsButton = null;
            }

            if (NotesButton != null)
            {
                NotesButton.Dispose();
                NotesButton = null;
            }

            if (TagFilterButton != null)
            {
                TagFilterButton.Dispose();
                TagFilterButton = null;
            }

            if (TagFilterPopBtn != null)
            {
                TagFilterPopBtn.Dispose();
                TagFilterPopBtn = null;
            }

            if (InfoView != null)
            {
                InfoView.Dispose();
                InfoView = null;
            }

            if (InfoLabelTF != null)
            {
                InfoLabelTF.Dispose();
                InfoLabelTF = null;
            }

            if (AnnotationTableView != null)
            {
                AnnotationTableView.Dispose();
                AnnotationTableView = null;
            }
        }
예제 #15
0
        private void FilterAndSetStops(TextBox filterTB, StopViewManager manager, InfoView infoView)
        {
            ListOfIDObjects <Stop> stops = new ListOfIDObjects <Stop>();
            string query = filterTB.Text.Trim().ToUpperInvariant();

            foreach (Stop stop in this.Database.Stops)
            {
                if ((query.Equals(string.Empty) || stop.Name.ToUpperInvariant().Contains(query)) && stops.GetItemByName(stop.Name) == null)
                {
                    stops.Add(stop);
                }
            }
            manager.SetStops(stops);
            infoView.TextDescription = string.Format("Ai filtrat {0} / {1} stații", stops.Count, this.Database.Stops.Count);
        }
예제 #16
0
    public void TrainGo(TicketParam tp)
    {
        if (tp == null)
        {
            Debug.Log("tp is null");
        }
        TicketsController.Instance.DeleteTickets(tp.rt.GetTicketId());
        if (UserTicketsModel.Instance.where == Where.City && tp.rt.GetRoutineStartNode().Contains(UserTicketsModel.Instance.city))
        {
            AudioManager.Instance.PlayMusic(Audios.RailwayClip);
            UserTicketsModel.Instance.where = Where.Train;
            Lucky.LuckyUtils.Log("train go" + tp.rt.GetBeginTime());
            string start = tp.rt.GetRoutineStartNode();
            string stop  = tp.rt.GetEndNode();
            dst = stop;

            DateTime starttime = tp.rt.GetBeginTime();
            DateTime stoptime  = tp.rt.GetEndTime();
            TimeSpan ts        = stoptime - starttime;

            ticketid = tp.rt.GetTicketId();
            TicketsController.Instance.DeleteTickets(ticketid);

            traveltime = (float)ts.TotalMinutes;
            double realtime = traveltime / TimeManager.instance.TimeSpeed;
            start         = GetCityString(start);
            stop          = GetCityString(stop);
            animationName = start + "-" + stop + "_Train";
            Lucky.LuckyUtils.Log("train " + animationName);

            animator = train.GetComponent <Animator>();
            AnimationClip clip = FindClip(animator, animationName);
            if (clip != null)
            {
                cliptime = clip.length;
                double speed = cliptime / realtime;
                train.SetActive(true);
                animator.Play(animationName, 0, 0);
                animator.speed = (float)speed;
            }

            UserTicketsModel.Instance.going = true;
        }
        else
        {
            InfoView.Show(new InfoMessage("你当前不在出发城市,该火车票" + tp.rt.GetTicketName() + "作废!", "亏大了!"));
        }
    }
예제 #17
0
 public async Task CreatePendingGame()
 {
     if (!(await CanPayCostOfEntry(Context.User.Id)))
     {
         await ReplyAsync(ErrorView.NotEnoughFunds());
     }
     else if (PendingGameService.PendingGames.Any())
     {
         await ReplyAsync(ErrorView.MultipleGames());
     }
     else
     {
         PendingGame game = new PendingGame(Context.User);
         PendingGameService.PendingGames.Add(game);
         await ReplyAsync(InfoView.LobbyCreated(game.Id));
     }
 }
예제 #18
0
        private void AddToRow(int index, XRTableRow row, InfoView info)
        {
            // add cell STT
            XRTableCell xr = new XRTableCell();

            xr.WidthF = 44.17F;
            xr.Text   = (index + 1).ToString();
            row.Cells.Add(xr);

            // add cell TenHang
            XRTableCell xr2 = new XRTableCell();

            xr2.WidthF = 189.17F;
            xr2.Text   = infoViews[index].TenHang;
            row.Cells.Add(xr2);

            // add cell DVTinh
            XRTableCell xr3 = new XRTableCell();

            xr3.WidthF = 83.33F;
            xr3.Text   = infoViews[index].DVTinh.ToString();
            row.Cells.Add(xr3);

            // add cell SoLuong
            XRTableCell xr4 = new XRTableCell();

            xr4.WidthF = 79.17F;
            xr4.Text   = infoViews[index].SoLuong.ToString();
            row.Cells.Add(xr4);

            // add cell DonGia
            XRTableCell xr5 = new XRTableCell();

            xr5.WidthF = 119.17F;
            xr5.Text   = infoViews[index].DonGiaG.ToString();
            row.Cells.Add(xr5);

            // add Cell TongTien
            XRTableCell xr6 = new XRTableCell();

            xr6.WidthF = 172F;
            xr6.Text   = infoViews[index].TongTien.ToString();
            row.Cells.Add(xr6);
        }
예제 #19
0
 public GameVM(GameModel _gameM, LoginModel _loginM, InfoView _InfoV)
 {
     GameM  = _gameM;
     LoginM = _loginM;
     InfoV  = _InfoV;
     InfoVi = _InfoV;
     //GetWinActive();
     AddCordCommand      = new ReplayCommand(StartAddCord);
     AutoBuffCommand     = new ReplayCommand(StartBuffSkill);
     RemoveAllCommand    = new ReplayCommand(ItemRemoveAll);
     LeftRightCommand    = new ReplayCommand(ButtonMouse);
     FastClickCommand    = new ReplayCommand(StartFastClick);
     SaveCommand         = new ReplayCommand(StartSave);
     OpenCommand         = new ReplayCommand(StartOpen);
     GetIDCommand        = new ReplayCommand(StartGetIdSKill);
     StartAttack2Command = new ReplayCommand(StartSkill2);
     AutoCommand         = new ReplayCommand(StartAuto);
     AutoTrainCommand    = new ReplayCommand(StartAutoTrain);
     BlockCordCommand    = new ReplayCommand(StartGetRange);
 }
예제 #20
0
        /// <summary>
        /// 获取列表页面的页数
        /// </summary>
        /// <param name="id"></param>
        protected void GetClassPageCount(int id)
        {
            Class c = ClassView.GetModelByID(id.ToS());
            TemplateList t = TemplateListView.Find(string.Format("SysModel={0}", c.ModelID.ToS()));

            int pagecount = 0;
            switch (c.ModelID)
            {
                case 1:
                    //新闻
                    pagecount = NewsView.Count(string.Format("classid in(select {0} union select id from Class where parentID={0})", id)).GetPageCount(t.ShowRecordCount);
                    break;
                case 2:
                    //图片
                    pagecount = ImageAlbumView.Count(string.Format("classid in(select {0} union select id from Class where parentID={0})", id)).GetPageCount(t.ShowRecordCount);
                    break;
                case 3:
                    //问答
                    pagecount = QuestionView.Count(string.Format("classid in(select {0} union select id from Class where parentID={0})", id)).GetPageCount(t.ShowRecordCount);
                    break;
                case 4:
                    //小说
                    pagecount = BookView.Count(string.Format("classid in(select {0} union select id from Class where parentID={0})", id)).GetPageCount(t.ShowRecordCount);
                    break;
                case 5:
                    //分类
                    pagecount = InfoView.Count(string.Format("classid in(select {0} union select id from Class where parentID={0})", id)).GetPageCount(t.ShowRecordCount);
                    break;
                case 6:
                    //影视
                    pagecount = MovieInfoView.Count(string.Format("classid in(select {0} union select id from Class where parentID={0})", id)).GetPageCount(t.ShowRecordCount);
                    break;
                default:
                    pagecount = 0;
                    break;
            }

            Response.Clear();
            Response.Write(pagecount);
        }
예제 #21
0
        /// <summary>
        /// Информационное сообщение
        /// </summary>
        /// <param name="sender">окно, вызвавшее сообщение</param>
        /// <param name="message">текст сообщения</param>
        /// <param name="title">заголовок окна</param>
        public static void InfoMessage(Window sender, string message, string title = "")
        {
            InfoView view = new InfoView(message, title);

            try
            {
                if (sender != null)
                {
                    view.Owner = sender;
                }
                else
                {
                    view.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                }
            }
            catch
            {
                view.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            }

            view.ShowDialog();
        }
예제 #22
0
        public override void InstallBindings()
        {
            if (!CustomAlertsInstaller.FirstBindingInstalled)
            {
                return;
            }

            InfoView                    infoView                    = BeatSaberUI.CreateViewController <InfoView>();
            AlertListView               alertListView               = BeatSaberUI.CreateViewController <AlertListView>();
            AlertEditView               alertEditView               = BeatSaberUI.CreateViewController <AlertEditView>();
            AlertDetailView             alertDetailView             = BeatSaberUI.CreateViewController <AlertDetailView>();
            NavigationController        navigationController        = BeatSaberUI.CreateViewController <NavigationController>();
            CustomAlertsFlowCoordinator customAlertsFlowCoordinator = BeatSaberUI.CreateFlowCoordinator <CustomAlertsFlowCoordinator>();

            Container.Bind <ModalStateManager>().AsSingle();
            InstallController <InfoView>(infoView);
            InstallController <AlertListView>(alertListView);
            InstallController <AlertEditView>(alertEditView);
            InstallController <AlertDetailView>(alertDetailView);
            InstallController <NavigationController>(navigationController);
            InstallController <CustomAlertsFlowCoordinator>(customAlertsFlowCoordinator);
        }
예제 #23
0
        public async Task JoinPendingGame()
        {
            if (!(await CanPayCostOfEntry(Context.User.Id)))
            {
                await ReplyAsync(ErrorView.NotEnoughFunds());
            }
            else if (PendingGameService.PendingGames.Count == 0)
            {
                await ReplyAsync(ErrorView.NotFound());
            }
            else if (PendingGameService.PendingGames.Any(g => g.Users.Any(u => u.Id == Context.User.Id)))
            {
                await ReplyAsync(ErrorView.AlreadyInLobby());
            }
            else
            {
                PendingGame game = PendingGameService.PendingGames.FirstOrDefault();
                if (game.Active)
                {
                    await ReplyAsync(ErrorView.InProgress());
                }
                else
                {
                    game.Users.Add(Context.User);
                    if (game.Users.Count == GameConfiguration.NumberOfPlayers)
                    {
                        game.Active = true;
                        await ReplyAsync(InfoView.GameStarting());

                        await _game.InitialiseGame(Context, game);
                    }
                    else
                    {
                        await ReplyAsync(InfoView.LobbyStatus(game.Users.Count));
                    }
                }
            }
        }
예제 #24
0
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            Dispatcher.CurrentDispatcher.BeginInvoke((Action)(() =>
            {
                if (Properties.Settings.Default.ShowInfoWindow)
                {
                    var infoWindow = new InfoView
                    {
                        Owner = this
                    };

                    infoWindow.ShowDialog();

                    if (infoWindow.DoNotShowAgainCheckBox.IsChecked == true)
                    {
                        Properties.Settings.Default.ShowInfoWindow = false;
                        Properties.Settings.Default.Save();
                    }
                }

                Task.Run((Action)CheckForNewerVersion);
            }));
        }
예제 #25
0
 private void OnGoClick()
 {
     AudioManager.Instance.PlayMusic(Audios.ButtonClip);
     if (TimeManager.instance.HasTickets() || UserTicketsModel.Instance.going)
     {
         if (!isPlay)
         {
             isPlay = true;
             TimeManager.instance.GoToNextStartTime();
             //GoBtnText.text = "休息";
         }
         else
         {
             isPlay = false;
             //GoBtnText.text = "出发";
             TimeManager.instance.SetNormalSpeed();
         }
     }
     else
     {
         InfoView.Show(new InfoMessage("请到购票界面买票后出发!", "没有已购车票"));
     }
 }
예제 #26
0
        protected void setupModuleInfo()
        {
            string description = "";
            Texture moduleLogo = null;
            string panelName;

            infoView = new InfoView();

            if (moduleSwitcher != null)
            {
                description = moduleSwitcher.CurrentTemplate.GetValue("description");

                panelName = moduleSwitcher.CurrentTemplate.GetValue("logoPanel");
                if (panelName != null)
                {
                    moduleLogo = GameDatabase.Instance.GetTexture(panelName, false);
                    if (moduleLogo != null)
                        infoView.moduleLabel = moduleLogo;
                }
            }

            infoView.ModuleInfo = description + "\r\n\r\n" + GetInfo();
        }
예제 #27
0
 private void InitViews()
 {
     if (this.listView == null)
     {
         this.listView = new ListView();
         Unity.PackageManager.PackageManager.Instance.CheckForRemoteUpdates();
     }
     if (this.infoView == null)
     {
         this.infoView = new InfoView();
     }
 }
예제 #28
0
        public NPCInfoSubPage() : base(MainForm.CurrentLanguage["NPCInfo"])
        {
            NPCView = new NPCView();

            NPCViewInfoView               = new InfoView(NPCView, InfoView.TipDock.Top);
            NPCViewInfoView.Bounds        = new Rectangle(5, 5, 80, 80);
            NPCViewInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCViewInfoView.Text          = MainForm.CurrentLanguage["Icon"];
            this.Controls.Add(NPCViewInfoView);

            NPCNameInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false);
            NPCNameInfoView.Text          = MainForm.CurrentLanguage["Name"];
            NPCNameInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCNameInfoView.Bounds        = new Rectangle(0, 0, 170, 20);

            NPCTypeInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false);
            NPCTypeInfoView.Text          = MainForm.CurrentLanguage["Type"];
            NPCTypeInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCTypeInfoView.Bounds        = new Rectangle(0, 20, 170, 20);

            NPCAIStyleInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false);
            NPCAIStyleInfoView.Text          = MainForm.CurrentLanguage["AIStyle"];
            NPCAIStyleInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCAIStyleInfoView.Bounds        = new Rectangle(0, 40, 170, 20);

            InfoView NPCDetailInfoView = new InfoView(new Panel()
            {
                BorderStyle = BorderStyle.None
            }, InfoView.TipDock.Top);
            Panel ItemDetailInfoViewContent = (NPCDetailInfoView.View as Panel);

            ItemDetailInfoViewContent.Controls.Add(NPCNameInfoView);
            ItemDetailInfoViewContent.Controls.Add(NPCTypeInfoView);
            ItemDetailInfoViewContent.Controls.Add(NPCAIStyleInfoView);
            NPCDetailInfoView.Text          = MainForm.CurrentLanguage["Details"];
            NPCDetailInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCDetailInfoView.Bounds        = new Rectangle(90, 5, 170, 80);
            this.Controls.Add(NPCDetailInfoView);



            NPCWidthInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCWidthInfoView.Text          = MainForm.CurrentLanguage["Width"];
            NPCWidthInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCWidthInfoView.Bounds        = new Rectangle(0, 0, 255, 20);

            NPCHeightInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCHeightInfoView.Text          = MainForm.CurrentLanguage["Height"];
            NPCHeightInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCHeightInfoView.Bounds        = new Rectangle(0, 20, 255, 20);

            NPCDamageInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCDamageInfoView.Text          = MainForm.CurrentLanguage["Damage"];
            NPCDamageInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCDamageInfoView.Bounds        = new Rectangle(0, 40, 255, 20);

            NPCDefenseInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCDefenseInfoView.Text          = MainForm.CurrentLanguage["Defense"];
            NPCDefenseInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCDefenseInfoView.Bounds        = new Rectangle(0, 60, 255, 20);

            NPCLifeMaxInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCLifeMaxInfoView.Text          = MainForm.CurrentLanguage["LifeMax"];
            NPCLifeMaxInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCLifeMaxInfoView.Bounds        = new Rectangle(0, 80, 255, 20);

            NPCKnockbackResistInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCKnockbackResistInfoView.Text          = MainForm.CurrentLanguage["KnockbackResist"];
            NPCKnockbackResistInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCKnockbackResistInfoView.Bounds        = new Rectangle(0, 100, 255, 20);

            InfoView NPCPropInfoView = new InfoView(new Panel()
            {
                BorderStyle = BorderStyle.None
            }, InfoView.TipDock.Top);
            Panel NPCDetailtInfoViewContent = (NPCPropInfoView.View as Panel);

            NPCDetailtInfoViewContent.Controls.Add(NPCWidthInfoView);
            NPCDetailtInfoViewContent.Controls.Add(NPCHeightInfoView);
            NPCDetailtInfoViewContent.Controls.Add(NPCDamageInfoView);
            NPCDetailtInfoViewContent.Controls.Add(NPCDefenseInfoView);
            NPCDetailtInfoViewContent.Controls.Add(NPCLifeMaxInfoView);
            NPCDetailtInfoViewContent.Controls.Add(NPCKnockbackResistInfoView);
            NPCPropInfoView.Text          = MainForm.CurrentLanguage["Properties"];
            NPCPropInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCPropInfoView.Bounds        = new Rectangle(5, 105, 255, 140);
            this.Controls.Add(NPCPropInfoView);

            NPCTownNPCInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCTownNPCInfoView.Text          = MainForm.CurrentLanguage["TownNPC"];
            NPCTownNPCInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCTownNPCInfoView.Bounds        = new Rectangle(0, 0, 255, 20);

            NPCBossInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCBossInfoView.Text          = "Boss";
            NPCBossInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCBossInfoView.Bounds        = new Rectangle(0, 20, 255, 20);

            NPCFriendlyInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left, false, 100);
            NPCFriendlyInfoView.Text          = MainForm.CurrentLanguage["Friendly"];
            NPCFriendlyInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCFriendlyInfoView.Bounds        = new Rectangle(0, 40, 255, 20);

            InfoView NPCCategoryInfoView = new InfoView(new Panel()
            {
                BorderStyle = BorderStyle.None
            }, InfoView.TipDock.Top);
            Panel NPCCategoryInfoViewContent = (NPCCategoryInfoView.View as Panel);

            NPCCategoryInfoViewContent.Controls.Add(NPCTownNPCInfoView);
            NPCCategoryInfoViewContent.Controls.Add(NPCBossInfoView);
            NPCCategoryInfoViewContent.Controls.Add(NPCFriendlyInfoView);
            NPCCategoryInfoView.Text          = MainForm.CurrentLanguage["Category"];
            NPCCategoryInfoView.Tip.BackColor = NPCTabPage.NPCColor;
            NPCCategoryInfoView.Bounds        = new Rectangle(5, 260, 255, 80);
            this.Controls.Add(NPCCategoryInfoView);
        }
예제 #29
0
        public PagePanel_MainPage(int Width, int Height) : base(Width, Height)
        {
            TextFont = new Font("Arial", 10);
            using (var s = Assembly.GetExecutingAssembly().GetManifestResourceStream("QTRHacker.NewDimension.Res.Image.cross.png"))
                CrossImage = Image.FromStream(s);

            PlayerArrayBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 60, Width, 20),
                Text   = MainForm.CurrentLanguage["PlayerArrayAddress"]
            };
            Controls.Add(PlayerArrayBaseAddressInfoView);

            CurrentPlayerBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 80, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerAddress"]
            };
            Controls.Add(CurrentPlayerBaseAddressInfoView);

            CurrentPlayerInventoryBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 100, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerInvAddress"]
            };
            Controls.Add(CurrentPlayerInventoryBaseAddressInfoView);

            CurrentPlayerArmorBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 120, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerArmorAddress"]
            };
            Controls.Add(CurrentPlayerArmorBaseAddressInfoView);

            CurrentPlayerDyeBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 140, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerDyeAddress"]
            };
            Controls.Add(CurrentPlayerDyeBaseAddressInfoView);

            CurrentPlayerMiscBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 160, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerMiscAddress"]
            };
            Controls.Add(CurrentPlayerMiscBaseAddressInfoView);

            CurrentPlayerMiscDyeBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 180, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerMiscDyeAddress"]
            };
            Controls.Add(CurrentPlayerMiscDyeBaseAddressInfoView);

            CurrentPlayerBuffTypeBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 200, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerBuffAddress"]
            };
            Controls.Add(CurrentPlayerBuffTypeBaseAddressInfoView);

            CurrentPlayerBuffTimeBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 220, Width, 20),
                Text   = MainForm.CurrentLanguage["MyPlayerBuffTimeAddress"]
            };
            Controls.Add(CurrentPlayerBuffTimeBaseAddressInfoView);

            CurrentPlayerFirstItemBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 240, Width, 20),
                Text   = MainForm.CurrentLanguage["InvFirstItemAddress"]
            };
            Controls.Add(CurrentPlayerFirstItemBaseAddressInfoView);

            Terraria_Main_Update_BaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 260, Width, 20),
                Text   = MainForm.CurrentLanguage["Terraria_Main_Update"]
            };
            Controls.Add(Terraria_Main_Update_BaseAddressInfoView);

            SignHeadBaseAddressInfoView = new InfoViewEx(220)
            {
                Bounds = new Rectangle(0, 280, Width, 20),
                Text   = MainForm.CurrentLanguage["SignHead"]
            };
            Controls.Add(SignHeadBaseAddressInfoView);



            RefreshButton           = new Button();
            RefreshButton.FlatStyle = FlatStyle.Flat;
            RefreshButton.ForeColor = Color.White;
            RefreshButton.Text      = MainForm.CurrentLanguage["FetchAddressesAgain"];
            RefreshButton.Bounds    = new Rectangle(Width - 130, Height - 40, 120, 30);
            RefreshButton.Click    += (s, e) =>
            {
                if (HackContext.GameContext == null)
                {
                    return;
                }
                InitializeAddresses();
            };
            Controls.Add(RefreshButton);
        }
예제 #30
0
        public ItemInfoSubPage() : base(MainForm.CurrentLanguage["ItemInfo"])
        {
            ItemIconInfoView = new InfoView(new PictureBox()
            {
                SizeMode = PictureBoxSizeMode.CenterImage
            }, InfoView.TipDock.Top);
            ItemIconInfoView.Text          = MainForm.CurrentLanguage["Icon"];
            ItemIconInfoView.Bounds        = new Rectangle(5, 5, 80, 80);
            ItemIconInfoView.Tip.BackColor = ItemsColor;

            ItemNameInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Right
            }, InfoView.TipDock.Left, false);
            ItemNameInfoView.Text          = MainForm.CurrentLanguage["Name"];
            ItemNameInfoView.Tip.BackColor = ItemsColor;
            ItemNameInfoView.Bounds        = new Rectangle(0, 0, 170, 20);

            ItemTypeInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Right
            }, InfoView.TipDock.Left, false);
            ItemTypeInfoView.Text          = MainForm.CurrentLanguage["Type"];
            ItemTypeInfoView.Tip.BackColor = ItemsColor;
            ItemTypeInfoView.Bounds        = new Rectangle(0, 20, 170, 20);

            ItemRareInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Right
            }, InfoView.TipDock.Left, false);
            ItemRareInfoView.Text          = MainForm.CurrentLanguage["Rare"];
            ItemRareInfoView.Tip.BackColor = ItemsColor;
            ItemRareInfoView.Bounds        = new Rectangle(0, 40, 170, 20);

            InfoView ItemDetailInfoView = new InfoView(new Panel()
            {
                BorderStyle = BorderStyle.None
            }, InfoView.TipDock.Top);
            Panel ItemDetailInfoViewContent = (ItemDetailInfoView.View as Panel);

            ItemDetailInfoViewContent.Controls.Add(ItemNameInfoView);
            ItemDetailInfoViewContent.Controls.Add(ItemTypeInfoView);
            ItemDetailInfoViewContent.Controls.Add(ItemRareInfoView);
            ItemDetailInfoView.Text          = MainForm.CurrentLanguage["Details"];
            ItemDetailInfoView.Tip.BackColor = ItemsColor;
            ItemDetailInfoView.Bounds        = new Rectangle(90, 5, 170, 80);

            ItemDescriptionInfoView = new InfoView(new TextBox()
            {
                Multiline = true
            }, InfoView.TipDock.Left);
            ItemDescriptionInfoView.Text          = MainForm.CurrentLanguage["Description"];
            ItemDescriptionInfoView.Tip.BackColor = ItemsColor;
            ItemDescriptionInfoView.Bounds        = new Rectangle(5, 90, 255, 80);

            RequireItems                         = new MTabControl();
            RequireItems.TColor                  = ItemsColor;
            ItemRecipeFromInfoView               = new InfoView(RequireItems, InfoView.TipDock.Top);
            ItemRecipeFromInfoView.Text          = MainForm.CurrentLanguage["Recipe"] + "(From)";
            ItemRecipeFromInfoView.Tip.BackColor = ItemsColor;
            ItemRecipeFromInfoView.Bounds        = new Rectangle(5, 175, 255, 100);

            RecipeToItems = new ListBox()
            {
                BorderStyle = BorderStyle.None
            };
            RecipeToItems.MouseDoubleClick += (s, e) =>
            {
                OnRecipeToItemDoubleClick(s, e);
            };
            ItemRecipeToInfoView               = new InfoView(RecipeToItems, InfoView.TipDock.Top);
            ItemRecipeToInfoView.Text          = MainForm.CurrentLanguage["Recipe"] + "(To)";
            ItemRecipeToInfoView.Tip.BackColor = ItemsColor;
            ItemRecipeToInfoView.Bounds        = new Rectangle(5, 280, 255, 100);

            ItemValueInfoView = new InfoView(new TextBox()
            {
                TextAlign = HorizontalAlignment.Center
            }, InfoView.TipDock.Left);
            ItemValueInfoView.Text          = MainForm.CurrentLanguage["Rare"];
            ItemValueInfoView.Tip.BackColor = ItemsColor;
            ItemValueInfoView.Bounds        = new Rectangle(5, 385, 255, 20);



            Controls.Add(ItemIconInfoView);
            Controls.Add(ItemDetailInfoView);
            Controls.Add(ItemDescriptionInfoView);
            Controls.Add(ItemRecipeFromInfoView);
            Controls.Add(ItemRecipeToInfoView);
            Controls.Add(ItemValueInfoView);
        }
예제 #31
0
        /// <summary>
        /// 保存数据
        /// </summary>
        protected void SaveData()
        {
            int id = WS.RequestInt("id");
            var i  = InfoView.GetModelByID(id.ToS());

            i.Address = WS.RequestString("address");
            i.Bit1    = WS.RequestString("bit1").ToBoolean();
            i.Bit2    = WS.RequestString("bit2").ToBoolean();
            i.Bit3    = WS.RequestString("bit3").ToBoolean();
            i.Bit4    = WS.RequestString("bit4").ToBoolean();
            i.Bit5    = WS.RequestString("bit5").ToBoolean();

            var cls = NewsAction.NewsClass.Where(p => p.ID == WS.RequestInt("class")).First();

            i.ClassID     = cls.ID;
            i.ClassName   = cls.ClassName;
            i.ClickCount  = WS.RequestInt("clickcount", 0);
            i.Contact     = WS.RequestString("contact");
            i.ContactType = WS.RequestString("contacttype", "个人");

            i.Decimal1 = WS.RequestString("decimal1").ToDecimal(0);
            i.Decimal2 = WS.RequestString("decimal2").ToDecimal(0);
            i.Decimal3 = WS.RequestString("decimal3").ToDecimal(0);
            i.Decimal4 = WS.RequestString("decimal4").ToDecimal(0);
            i.Decimal5 = WS.RequestString("decimal5").ToDecimal(0);

            i.ImageCount = WS.RequestInt("imagecount", 0);
            i.InfoTypeID = TypeID.ToS();
            i.Intro      = WS.RequestString("intro");
            i.IsSetTop   = WS.RequestString("issettop").ToBoolean();

            i.Num1  = WS.RequestInt("num1", 0);
            i.Num2  = WS.RequestInt("num2", 0);
            i.Num3  = WS.RequestInt("num3", 0);
            i.Num4  = WS.RequestInt("num4", 0);
            i.Num5  = WS.RequestInt("num5", 0);
            i.Num6  = WS.RequestInt("num6", 0);
            i.Num7  = WS.RequestInt("num7", 0);
            i.Num8  = WS.RequestInt("num8", 0);
            i.Num9  = WS.RequestInt("num9", 0);
            i.Num10 = WS.RequestInt("num10", 0);

            i.Nvarchar1  = WS.RequestString("nvarchar1");
            i.Nvarchar2  = WS.RequestString("nvarchar2");
            i.Nvarchar3  = WS.RequestString("nvarchar3");
            i.Nvarchar4  = WS.RequestString("nvarchar4");
            i.Nvarchar5  = WS.RequestString("nvarchar5");
            i.Nvarchar6  = WS.RequestString("nvarchar6");
            i.Nvarchar7  = WS.RequestString("nvarchar7");
            i.Nvarchar8  = WS.RequestString("nvarchar8");
            i.Nvarchar9  = WS.RequestString("nvarchar9");
            i.Nvarchar10 = WS.RequestString("nvarchar10");
            i.Nvarchar11 = WS.RequestString("nvarchar11");
            i.Nvarchar12 = WS.RequestString("nvarchar12");
            i.Nvarchar13 = WS.RequestString("nvarchar13");
            i.Nvarchar14 = WS.RequestString("nvarchar14");
            i.Nvarchar15 = WS.RequestString("nvarchar15");

            i.OutTime     = WS.RequestString("outtime").ToDateTime();
            i.PostTime    = WS.RequestString("posttime").ToDateTime();
            i.ReplyCount  = WS.RequestInt("replycount", 0);
            i.Tel         = WS.RequestString("tel");
            i.TelLocation = WS.RequestString("tellocation");

            i.Text1 = WS.RequestString("text1");
            i.Text2 = WS.RequestString("text2");
            i.Text3 = WS.RequestString("text3");
            i.Text4 = WS.RequestString("text4");
            i.Text5 = WS.RequestString("text5");

            i.Title    = WS.RequestString("title");
            i.UserID   = SysUserAction.LocalUser.ID;
            i.UserName = SysUserAction.LocalUser.UserName;
            i.ZtID     = 0;
            i.ZtName   = "";

            if (i.Id > 0)
            {
                InfoView.Update(i);
            }
            else
            {
                InfoView.Insert(i);
            }

            Response.Redirect("InfoList.aspx?type=" + TypeID);
        }
예제 #32
0
        /// <summary>
        /// 加载数据
        /// </summary>
        protected void LoadInfo()
        {
            InfoType it = InfoTypeView.GetModelByID(TypeID.ToS());

            TypeHtml = it.TemlateAdminForm;

            int id = WS.RequestInt("id");
            var i  = InfoView.GetModelByID(id.ToS());

            ValueString = i.ToJson();

            TypeHtml = TypeHtml.Replace("{address}", i.Address);
            TypeHtml = TypeHtml.Replace("{bit1}", i.Bit1.ToS());
            TypeHtml = TypeHtml.Replace("{address}", i.Bit2.ToS());
            TypeHtml = TypeHtml.Replace("{address}", i.Bit3.ToS());
            TypeHtml = TypeHtml.Replace("{address}", i.Bit4.ToS());
            TypeHtml = TypeHtml.Replace("{address}", i.Bit5.ToS());
            TypeHtml = TypeHtml.Replace("{classid}", i.ClassID.ToS());
            TypeHtml = TypeHtml.Replace("{classname}", i.ClassName);
            TypeHtml = TypeHtml.Replace("{clickcount}", i.ClickCount.ToS());
            TypeHtml = TypeHtml.Replace("{contact}", i.Contact);
            TypeHtml = TypeHtml.Replace("{contacttype}", i.ContactType);
            TypeHtml = TypeHtml.Replace("{decimal1}", i.Decimal1.ToS());
            TypeHtml = TypeHtml.Replace("{decimal2}", i.Decimal2.ToS());
            TypeHtml = TypeHtml.Replace("{decimal3}", i.Decimal3.ToS());
            TypeHtml = TypeHtml.Replace("{decimal4}", i.Decimal4.ToS());
            TypeHtml = TypeHtml.Replace("{decimal5}", i.Decimal5.ToS());

            TypeHtml = TypeHtml.Replace("{id}", i.Id.ToS());
            TypeHtml = TypeHtml.Replace("{imagecount}", i.ImageCount.ToS());
            TypeHtml = TypeHtml.Replace("{infotypeid}", i.InfoTypeID.ToS());
            TypeHtml = TypeHtml.Replace("{intro}", i.Intro);
            TypeHtml = TypeHtml.Replace("{issettop}", i.IsSetTop.ToS());
            TypeHtml = TypeHtml.Replace("{num1}", i.Num1.ToS());
            TypeHtml = TypeHtml.Replace("{num2}", i.Num2.ToS());
            TypeHtml = TypeHtml.Replace("{num3}", i.Num3.ToS());
            TypeHtml = TypeHtml.Replace("{num4}", i.Num4.ToS());
            TypeHtml = TypeHtml.Replace("{num5}", i.Num5.ToS());
            TypeHtml = TypeHtml.Replace("{num6}", i.Num6.ToS());
            TypeHtml = TypeHtml.Replace("{num7}", i.Num7.ToS());
            TypeHtml = TypeHtml.Replace("{num8}", i.Num8.ToS());
            TypeHtml = TypeHtml.Replace("{num9}", i.Num9.ToS());
            TypeHtml = TypeHtml.Replace("{num10}", i.Num10.ToS());

            TypeHtml = TypeHtml.Replace("{nvarchar1}", i.Nvarchar1);
            TypeHtml = TypeHtml.Replace("{nvarchar2}", i.Nvarchar2);
            TypeHtml = TypeHtml.Replace("{nvarchar3}", i.Nvarchar3);
            TypeHtml = TypeHtml.Replace("{nvarchar4}", i.Nvarchar4.IsNullOrEmpty()?"随时入住":i.Nvarchar4);
            TypeHtml = TypeHtml.Replace("{nvarchar5}", i.Nvarchar5);
            TypeHtml = TypeHtml.Replace("{nvarchar6}", i.Nvarchar6);
            TypeHtml = TypeHtml.Replace("{nvarchar7}", i.Nvarchar7);
            TypeHtml = TypeHtml.Replace("{nvarchar8}", i.Nvarchar8);
            TypeHtml = TypeHtml.Replace("{nvarchar9}", i.Nvarchar9);
            TypeHtml = TypeHtml.Replace("{nvarchar10}", i.Nvarchar10);
            TypeHtml = TypeHtml.Replace("{nvarchar11}", i.Nvarchar11);
            TypeHtml = TypeHtml.Replace("{nvarchar12}", i.Nvarchar12);
            TypeHtml = TypeHtml.Replace("{nvarchar13}", i.Nvarchar13);
            TypeHtml = TypeHtml.Replace("{nvarchar14}", i.Nvarchar14);
            TypeHtml = TypeHtml.Replace("{nvarchar15}", i.Nvarchar15);

            TypeHtml = TypeHtml.Replace("{outtime}", i.OutTime.ToS());
            TypeHtml = TypeHtml.Replace("{posttime}", i.PostTime.ToS());
            TypeHtml = TypeHtml.Replace("{replycount}", i.ReplyCount.ToS());
            TypeHtml = TypeHtml.Replace("{tel}", i.Tel);
            TypeHtml = TypeHtml.Replace("{tellocation}", i.TelLocation);
            TypeHtml = TypeHtml.Replace("{text1}", i.Text1);
            TypeHtml = TypeHtml.Replace("{text2}", i.Text2);
            TypeHtml = TypeHtml.Replace("{text3}", i.Text3);
            TypeHtml = TypeHtml.Replace("{text4}", i.Text4);
            TypeHtml = TypeHtml.Replace("{text5}", i.Text5);

            TypeHtml = TypeHtml.Replace("{title}", i.Title);
            TypeHtml = TypeHtml.Replace("{userid}", i.UserID.ToS());
            TypeHtml = TypeHtml.Replace("{username}", i.UserName);
            TypeHtml = TypeHtml.Replace("{ztid}", i.ZtID.ToS());
            TypeHtml = TypeHtml.Replace("{ztname}", i.ZtName);
        }