public TabBarMenu() { InitializeComponent(); sh1 = new ShortcutDesk(ref MainTab); //Connection.GetVersion(); Connection.SetMenu(); menus = Connection.ResultAllMenu; subSystems = Connection.ResultAllSubSystem; FirstTurn(); mainButton1.UserID = _userID; mainButton1.SalMaliID = _salMaliID; }
public TabBarMenu() { InitializeComponent(); sh1 = new ShortcutDesk(ref MainTab); //Connection.GetVersion(); Connection.SetMenu(); this.menus = Connection.ResultAllMenu; this.subSystems = Connection.ResultAllSubSystem; FirstTurn(); mainButton1.UserID = _userID; mainButton1.SalMaliID = _salMaliID; //ToolStripMenuItem tmp = new ToolStripMenuItem(); //{ // tmp.Text = "ميزكار"; // tmp.Tag = new MyTag() // { MenuId = -2, FormId = 0, ParentId = -1 }; // tmp.RightToLeft = RightToLeft.Yes; // tmp.ForeColor = System.Drawing.SystemColors.ButtonFace; // tmp.BackColor = System.Drawing.Color.FromArgb(20, 130, 150); // tmp.AutoSize = false; // tmp.Size = new System.Drawing.Size(97, tmp.Height + 20); // tmp.Font = new Font("IRANSans(FaNum)", 11); // tmp.Click += Shortcut_Click; //} //MyMnSt.Items.Add(tmp); //MainTab = new CustomTabControl(); //MainTab.Dock = DockStyle.Fill; //MainTab.DisplayStyle = TabStyle.Chrome; //MainTab.AllowDrop = true; //MainTab.RightToLeft = RightToLeft; //MainTab.RightToLeftLayout = true; }
public formtest() { InitializeComponent(); sh1 = new ShortcutDesk(ref dockPanel1); m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString); }