public Asztalok(Control p, int pHelyId) { InitializeComponent(); Parent = p; Dock = DockStyle.Fill; _HelyId = pHelyId; _isAdmin = false; mm = (MMenu)Parent.Parent; }
public Asztalok(Control p, int pHelyId, bool adminMode) { InitializeComponent(); Parent = p; Dock = DockStyle.Fill; _HelyId = pHelyId; _isAdmin = adminMode; if (!adminMode) {mm = (MMenu)Parent.Parent;} if (adminMode) { asz = (AsztalSetup)Parent.Parent; } }