Esempio n. 1
0
        void ViewBind(GroupRecordInfoView view)
        {
            BindingSet <GroupRecordInfoView, GroupRecordInfoViewModel> bindingSet =
                view.CreateBindingSet <GroupRecordInfoView, GroupRecordInfoViewModel>();

            bindingSet.Bind(view.ImgGroupShow).For(v => v.activeSelf).To(vm => vm.ImgGroupShow).OneWay();
            bindingSet.Bind(view.TextGroupShow).For(v => v.activeSelf).To(vm => vm.TextGroupShow).OneWay();
            bindingSet.Bind(view.IconGroupShow).For(v => v.activeSelf).To(vm => vm.IconGroupShow).OneWay();
            bindingSet.Bind(view.MySelfMaskShow).For(v => v.enabled).To(vm => vm.MySelfMaskShow).OneWay();
            bindingSet.Bind(view.DeathMaskShow).For(v => v.enabled).To(vm => vm.DeathMaskShow).OneWay();
            bindingSet.Bind(view.DeadIconShow).For(v => v.enabled).To(vm => vm.DeadIconShow).OneWay();
            bindingSet.Bind(view.RankText).For(v => v.text).To(vm => vm.RankText).OneWay();
            bindingSet.Bind(view.RankColor).For(v => v.color).To(vm => vm.RankColor).OneWay();
            bindingSet.Bind(view.PlayerNameText).For(v => v.text).To(vm => vm.PlayerNameText).OneWay();
            bindingSet.Bind(view.PlayerNameColor).For(v => v.color).To(vm => vm.PlayerNameColor).OneWay();
            bindingSet.Bind(view.CorpsText).For(v => v.text).To(vm => vm.CorpsText).OneWay();
            bindingSet.Bind(view.CorpsColor).For(v => v.color).To(vm => vm.CorpsColor).OneWay();
            bindingSet.Bind(view.KillText).For(v => v.text).To(vm => vm.KillText).OneWay();
            bindingSet.Bind(view.KillColor).For(v => v.color).To(vm => vm.KillColor).OneWay();
            bindingSet.Bind(view.DamageText).For(v => v.text).To(vm => vm.DamageText).OneWay();
            bindingSet.Bind(view.DamageColor).For(v => v.color).To(vm => vm.DamageColor).OneWay();
            bindingSet.Bind(view.DeadText).For(v => v.text).To(vm => vm.DeadText).OneWay();
            bindingSet.Bind(view.DeadColor).For(v => v.color).To(vm => vm.DeadColor).OneWay();
            bindingSet.Bind(view.AssistText).For(v => v.text).To(vm => vm.AssistText).OneWay();
            bindingSet.Bind(view.AssistColor).For(v => v.color).To(vm => vm.AssistColor).OneWay();
            bindingSet.Bind(view.PingText).For(v => v.text).To(vm => vm.PingText).OneWay();
            bindingSet.Bind(view.PingColor).For(v => v.color).To(vm => vm.PingColor).OneWay();
            bindingSet.Bind(view.TitleIconShow1).For(v => v.activeSelf).To(vm => vm.TitleIconShow1).OneWay();
            bindingSet.Bind(view.TitleIconShow2).For(v => v.activeSelf).To(vm => vm.TitleIconShow2).OneWay();
            bindingSet.Bind(view.TitleIconShow3).For(v => v.activeSelf).To(vm => vm.TitleIconShow3).OneWay();
            bindingSet.Bind(view.TitleIconShow4).For(v => v.activeSelf).To(vm => vm.TitleIconShow4).OneWay();

            bindingSet.Build();
        }
        void ViewBind(GroupRecordInfoView view)
        {
            BindingSet <GroupRecordInfoView, GroupRecordInfoViewModel> bindingSet =
                view.CreateBindingSet <GroupRecordInfoView, GroupRecordInfoViewModel>();

            bindingSet.Bind(view.ImgGroupShow).For(v => v.activeSelf).To(vm => vm.ImgGroupShow).OneWay();
            bindingSet.Bind(view.TextGroupShow).For(v => v.activeSelf).To(vm => vm.TextGroupShow).OneWay();
            bindingSet.Bind(view.IconGroupShow).For(v => v.activeSelf).To(vm => vm.IconGroupShow).OneWay();
            bindingSet.Bind(view.BadgeGroupShow).For(v => v.activeSelf).To(vm => vm.BadgeGroupShow).OneWay();
            bindingSet.Bind(view.MySelfMaskShow).For(v => v.enabled).To(vm => vm.MySelfMaskShow).OneWay();
            bindingSet.Bind(view.DeadStateShow).For(v => v.enabled).To(vm => vm.DeadStateShow).OneWay();
            bindingSet.Bind(view.HurtStateShow).For(v => v.enabled).To(vm => vm.HurtStateShow).OneWay();
            bindingSet.Bind(view.RankText).For(v => v.text).To(vm => vm.RankText).OneWay();
            bindingSet.Bind(view.RankColor).For(v => v.color).To(vm => vm.RankColor).OneWay();
            bindingSet.Bind(view.PlayerNameText).For(v => v.text).To(vm => vm.PlayerNameText).OneWay();
            bindingSet.Bind(view.PlayerNameColor).For(v => v.color).To(vm => vm.PlayerNameColor).OneWay();
            bindingSet.Bind(view.CorpsText).For(v => v.text).To(vm => vm.CorpsText).OneWay();
            bindingSet.Bind(view.CorpsColor).For(v => v.color).To(vm => vm.CorpsColor).OneWay();
            bindingSet.Bind(view.KillText).For(v => v.text).To(vm => vm.KillText).OneWay();
            bindingSet.Bind(view.KillColor).For(v => v.color).To(vm => vm.KillColor).OneWay();
            bindingSet.Bind(view.DamageText).For(v => v.text).To(vm => vm.DamageText).OneWay();
            bindingSet.Bind(view.DamageColor).For(v => v.color).To(vm => vm.DamageColor).OneWay();
            bindingSet.Bind(view.DeadText).For(v => v.text).To(vm => vm.DeadText).OneWay();
            bindingSet.Bind(view.DeadColor).For(v => v.color).To(vm => vm.DeadColor).OneWay();
            bindingSet.Bind(view.AssistText).For(v => v.text).To(vm => vm.AssistText).OneWay();
            bindingSet.Bind(view.AssistColor).For(v => v.color).To(vm => vm.AssistColor).OneWay();
            bindingSet.Bind(view.BadgeNormalBgShow).For(v => v.enabled).To(vm => vm.BadgeNormalBgShow).OneWay();
            bindingSet.Bind(view.BadgeMySelfBgShow).For(v => v.enabled).To(vm => vm.BadgeMySelfBgShow).OneWay();
            bindingSet.Bind(view.BadgeHurtBgShow).For(v => v.enabled).To(vm => vm.BadgeHurtBgShow).OneWay();
            bindingSet.Bind(view.BadgeDeadBgShow).For(v => v.enabled).To(vm => vm.BadgeDeadBgShow).OneWay();
            bindingSet.Bind(view.BadgeIconBundle).For(v => v.BundleName).To(vm => vm.BadgeIconBundle).OneWay();
            bindingSet.Bind(view.BadgeIconAsset).For(v => v.AssetName).To(vm => vm.BadgeIconAsset).OneWay();
            bindingSet.Bind(view.TitleIconShow1).For(v => v.activeSelf).To(vm => vm.TitleIconShow1).OneWay();
            bindingSet.Bind(view.TitleIconShow2).For(v => v.activeSelf).To(vm => vm.TitleIconShow2).OneWay();
            bindingSet.Bind(view.TitleIconShow3).For(v => v.activeSelf).To(vm => vm.TitleIconShow3).OneWay();
            bindingSet.Bind(view.TitleIconShow4).For(v => v.activeSelf).To(vm => vm.TitleIconShow4).OneWay();

            bindingSet.Build();
        }