Example #1
0
        private CtlTreeView GetShowingSearchTreeview()
        {
            Params.Shortcut.ShowType showType = Params.Shortcut.GetShowType(this._seller);
            CtlTreeView ctv = null;

            if (showType != Params.Shortcut.ShowType.ShopOnly)
            {
                if (showType != Params.Shortcut.ShowType.SelfOnly)
                {
                    ctv = ((this._pubSearchMouseDownTime > this._prvSearchMouseDownTime) ? this.tvPubSearch : this.tvPrvSearch);
                }
                else
                {
                    ctv = this.tvPrvSearch;
                }
            }
            else
            {
                ctv = this.tvPubSearch;
            }
            return(ctv);
        }
Example #2
0
 public void SetContentVisible()
 {
     Params.Shortcut.ShowType showType = Params.Shortcut.GetShowType(this._seller);
     if (showType != Params.Shortcut.ShowType.ShopOnly)
     {
         if (showType != Params.Shortcut.ShowType.SelfOnly)
         {
             Grid.SetRow(this.gboxPub, 0);
             Grid.SetRow(this.gboxPrv, 1);
             this.rd2.Height         = new GridLength(1.0, GridUnitType.Star);
             this.gboxPrv.Visibility = Visibility.Visible;
             this.gboxPub.Visibility = Visibility.Visible;
         }
         else
         {
             Grid.SetRow(this.gboxPrv, 0);
             this.rd2.Height         = GridLength.Auto;
             this.gboxPrv.Visibility = Visibility.Visible;
             this.gboxPub.Visibility = Visibility.Collapsed;
         }
     }
     else
     {
         Grid.SetRow(this.gboxPub, 0);
         this.rd2.Height         = GridLength.Auto;
         this.gboxPub.Visibility = Visibility.Visible;
         this.gboxPrv.Visibility = Visibility.Collapsed;
     }
     if (this.IsNotShopOnly())
     {
         this.tvPrvSearch.CollapseSearch();
         this.BindEvent(this.tvPrvSearch, false);
     }
     if (this.IsNotSelfOnly())
     {
         this.tvPubSearch.CollapseSearch();
         this.BindEvent(this.tvPubSearch, false);
     }
 }
Example #3
0
 public static void SetShowType(string nick, Params.Shortcut.ShowType showType)
 {
     PersistentParams.TrySaveParam2Key <Params.Shortcut.ShowType>("Shortcut.ShowType", nick, showType);
 }