public RoomControl(string room) : base(room) { _dockable = new DockableControl("MessageContainer"); _dockable.OnResize += _dockable_OnResize; _userControl = new UserControl("UserControl", room); //_dockable.Options = new jQueryApi.UI.Widgets.DialogOptions() //{ // AutoOpen = true, // Title = , // Width = 350, // Height = 375 //}; _dockable.Title = "Room - " + room; _messageContainer = new BaseControl("MessageContainer"); _messageContainer.CssClass = "messageContainer"; _messenger = new MessengerControl("Messenger"); _messenger.RoomControl = this; _messenger.Room = room; _messenger.CssClass = "messenger"; _dockable.AddChild(_userControl); _dockable.AddChild(_messageContainer); _dockable.AddChild(_messenger); AddChild(_dockable); }
public ItemTreeModule(string name) : base(name) { panel = new DockableControl("Items"); panel.Title = "Items"; treeItems = new Tree("treeItems"); //Tree tree = new Tree(".itemEditor"); var node = new TreeNode() { Text = "Text", Value = "Value", Expanded = true }; node.AddChildren(new List<Control>() { new TreeNode() { Text = "Text", Value = "Value" , Parent = node }, new TreeNode() { Text = "Text", Value = "Value", Parent = node }, new TreeNode() { Text = "Text", Value = "Value", Parent = node }, }); //var ss = new TreeNode() { Text = "Text", Value = "Value", Parent = node }; //ss.AddChildren(new List<Control>() // { // new TreeNode() { Text = "Text", Value = "Value" , Parent = node }, // new TreeNode() { Text = "Text", Value = "Value", Parent = node }, // new TreeNode() { Text = "Text", Value = "Value", Parent = node }, // }); //node.Children.Add(ss); treeItems.AddChild(node); panel.AddChild(treeItems); AddChild(panel); }
public override void PreRender() { CssClass = "consoleModule"; Log.log("[ConsoleModule] Creating Dockable"); dockConsole = new DockableControl("dockConsole"); dockConsole.Title = "Console"; dockConsole.OnResize += dockConsole_OnResize; Log.log("[ConsoleModule] Creating Views"); cvLog = new ConsoleView("cvLog"); cvDebug = new ConsoleView("cvDebug"); cvSockets = new ConsoleView("cvSockets"); Log.log("[ConsoleModule] Creating Tabs"); tbViews = new Tabs("tbViews"); //tbViews.AddTab("Log", cvLog); //tbViews.AddTab("Debug", cvDebug); Log.log("[ConsoleModule] Adding Views and Tabs to Dockable"); dockConsole.AddChild(tbViews); //dlgWindow.Options = new DialogOptions() //{ // AutoOpen = true, // CloseOnEscape = false, // Height = 300, // Width = 500, // Title = "Console" //}; AddChild(dockConsole); dockConsole.AddChild(tbViews); tbViews.AddTab("Log", cvLog); tbViews.AddTab("Debug", cvDebug); tbViews.AddTab("Sockets", cvSockets); //txtInput.CssClass = "input"; //btnSend.Text = "Send"; //dlgWindow.AddChild(txtInput); //dlgWindow.AddChild(btnSend); Log.LogEvent += log; Log.DebugEvent += debug; Log.SocketEvent += socket; }