Ejemplo n.º 1
0
 public VezerloControl(FakUserInterface fak, Vezerloinfo parent, Panel treepanel, Panel mainpanel)
 {
     InitializeComponent();
     FakUserInterface = fak;
     ParentVezerles = parent;
     Hivo = parent.Control;
     TreePanel = treepanel;
     mainpanel.Controls.Add(this);
     MenuPanel = panel1;
     MainControl = (MainControl)Hivo;
     MainForm = (Main)MainControl.MainForm;
     AktivMenuindex = -1;
     AktivDropindex = -1;
     KezeloiSzint = UserParamTabla.AktualCegInformaciok[UserParamTabla.AktivCegIndex].KezeloiSzint;
     //usercontnevek = FakUserInterface.GetBySzintPluszTablanev("R", "USERCONTROLNEVEK");
     //kezszintek = FakUserInterface.GetKodtab("R", "Kezszint");
     //UserContKezszint = FakUserInterface.GetOsszef("R", "UserContKezszint");
     UserParamok = UserParamTabla.UserParamok;
     TreeView = (TreeView)treepanel.Controls[0];
     letezousercontnevek = new ArrayList(MainControl.letezousercontrolnevek);
     MenuStrip = menuStrip1;
     Vezerles = new Vezerloinfo(FakUserInterface, this, AktivMenuindex, parent, ref KezeloiSzint, ref HozferJog, letezousercontnevek);
     Vezerles.LetezoControlok = new Base[Vezerles.LetezoUserControlNevek.Count];
     OsszesMenuItem = Vezerles.MenuItemek;
     TabControlok = new TabControl[OsszesMenuItem.Length];
     for (int i = 0; i < TabControlok.Length; i++)
     {
         TabControlok[i] = new TabControl();
         TabControlok[i].ShowToolTips = true;
         TabControlok[i].Dock = DockStyle.Fill;
         TabControlok[i].Selecting += TabControl_Selecting;
         TabControlok[i].Click += TabControl_Click;
     }
     OsszesDropItem = Vezerles.DropItemek;
     OsszesTabPage = Vezerles.TabPagek;
     OsszesEredetiEnable = Vezerles.EredetiDropEnablek;
     Vezerloinfo alvez;
     Base control = null;
     for (int i = 0; i < Vezerles.MenuNevek.Length; i++)
     {
         if (Vezerles.MenuNevek[i] == "Formvez")
         {
             Vezerles.AktivControl = this;
             control = new Formvezerles(FakUserInterface, treepanel, MenuPanel, Vezerles, ref KezeloiSzint, ref UserParamTabla.CegSzarmazekosJogosultsag);
             MainControl.FormVezerles = (Formvezerles)control;
             alvez = null;
         }
         else
         {
             alvez = new Vezerloinfo(FakUserInterface, Vezerles, i, ref KezeloiSzint, ref UserParamTabla.AktualTermeszetesJogosultsag, letezousercontnevek);
             alvez.TabControl = TabControlok[i];
             TabControlok[i].Controls.AddRange((TabPage[])OsszesTabPage[i]);
         }
         //if (alvez != null)
         //{
         //    ArrayList droparray = new ArrayList();
         //    ToolStripMenuItem[] dropok = (ToolStripMenuItem[])alvez.DropItemek[0];
         //    droparray = new ArrayList(dropok);
         //    alvez.SetMenuAlmenuItems(droparray);
         //}
     }
 }
Ejemplo n.º 2
0
 public override void EgyediInditas()
 {
     base.EgyediInditas();
     Vezerloinfo parentvez = Vezerles;
     Base control = new Formvezerles(FakUserInterface, panel2, panel1, parentvez, ref KezeloiSzint, ref HozferJog);
 }