Пример #1
0
 public SideBar()
 {
     mSideTabs = new List<SideTab>();
     mSideBarControl = null;
     mDockStyle = @"None";
     mSideBarUrl = null;
     mActiveTab = null;
     mInitCommand = null;
     mInitCmd = null;
     mContain = null;
 }
Пример #2
0
 public override void _initControl()
 {
     if (null == mSideBarControl || mSideBarControl.IsDisposed)
     {
         mSideBarControl = new SideBarControl(this);
         if (string.Compare(mDockStyle, @"Top") == 0)
         {
             mSideBarControl.Dock = DockStyle.Top;
         }
         else if (string.Compare(mDockStyle, @"Bottom") == 0)
         {
             mSideBarControl.Dock = DockStyle.Bottom;
         }
         else if (string.Compare(mDockStyle, @"Fill") == 0)
         {
             mSideBarControl.Dock = DockStyle.Fill;
         }
         else if (string.Compare(mDockStyle, @"Left") == 0)
         {
             mSideBarControl.Dock = DockStyle.Left;
         }
         else if (string.Compare(mDockStyle, @"Right") == 0)
         {
             mSideBarControl.Dock = DockStyle.Right;
         }
         else
         {
             mSideBarControl.Dock = DockStyle.None;
         }
     }
 }