// Summary: // Initializes a new instance of the System.Windows.Forms.TabPage class. public __TabPage() { this.__controlCollection = new __TabPageControlCollection((TabPage)this); this.__tabId = "tab" + __tabCount; __tabCount++; InternalElement = new IHTMLDiv(); InternalElement.style.whiteSpace = ScriptCoreLib.JavaScript.DOM.IStyle.WhiteSpaceEnum.nowrap; InternalElement.style.border = "1px solid gray"; InternalElement.style.borderTop = "none"; __tabButton = new IHTMLButton(this.__tabId); __tabButton.ApplyBorderStyle(global::System.Windows.Forms.BorderStyle.Fixed3D); __tabButton.style.textDecoration = "none"; __tabButton.style.color = "#42454a"; __tabButton.style.backgroundColor = "#dedbde"; __tabButton.style.top = "50%"; __tabButton.style.bottom = "50%"; int newh = __TabControl.__TAB_BAR_HEIGHT - 2; __tabButton.style.height = "" + newh; __tabButton.style.border = "ridge"; __tabButton.style.borderTop = "ridge"; __tabButton.style.borderRight = "ridge"; __tabButton.style.borderLeft = "ridge"; __tabButton.style.borderBottom = "none"; __tabButton.style.paddingBottom = "8px"; setFont(DefaultFont); Li = new IHTMLListItem(); Li.style.display = IStyle.DisplayEnum.inline; //Li.style.padding = "5px"; Li.style.marginRight = "0"; // "5px"; Li.style.Float = IStyle.FloatEnum.left; this.__isSelected = true; // 2013-09-30 // Error 5 The type 'System.Xml.Linq.XElement' is defined in // an assembly that is not referenced. You must add a // reference to assembly 'System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. X:\jsc.svn\core\ScriptCoreLib.Windows.Forms\ScriptCoreLib.Windows.Forms\JavaScript\BCLImplementation\System\Windows\Forms\TabPage.cs 72 13 ScriptCoreLib.Windows.Forms Li.appendChild(__tabButton); Li.style.Float = IStyle.FloatEnum.left; __DeSelectTab(); InternalElement.style.backgroundColor = "white"; TextChanged += OnTextChanged; }
public void AddToUL(IHTMLListItem li) { __ul.Add(li); }
private void ShowTasks() { //Console.WriteLine("<meta http-equiv='refresh' content='60' />"); var OrderedList = new IHTMLOrderedList(); IHTMLListHeader Header = "Tasks"; OrderedList.innerHTML += Header; foreach (var Task in this) { var ListItem = new IHTMLListItem(); var Details = new IHTMLUnorderedList(); //Details.Content += (IHTMLListHeader)"Details"; Details.innerHTML += (IHTMLListItem)( "" + new IHTMLAcronym { Title = Task.CounterPath, innerHTML = "Counter is " + Task.Counter }.ToString() + " and " + new IHTMLAcronym { Title = "memory allows to filter out already happened events", innerHTML = "memory is " + Task.Memory.Count }.ToString() + " within context of " + new IHTMLAcronym { Title = Task.Context.FullName, innerHTML = Task.Context.Name }.ToString() ); var DepensdsOnText = new IHTMLAcronym { Title = "This task will not execute until dependencies are cleared from work", innerHTML = "Depends on" }.ToString(); foreach (var DependsOn in Task.ActiveDependencies) { if (DependsOn.IsActive) { Details.innerHTML += (IHTMLListItem)(DepensdsOnText + " (active) " + DependsOn.Task.Name.ToLink(k => "?" + k)); } else { Details.innerHTML += (IHTMLListItem)(DepensdsOnText + " " + DependsOn.Task.Name.ToLink(k => "?" + k)); } } var InputPoolText = new IHTMLAcronym { Title = "Pools are grouped by the intervals they represent. Smaller intervals will be executed before larger intervals", innerHTML = "Input Pool" }.ToString(); foreach (var InputPool in Task.ActiveInputPools) { var InputPoolHeader = (InputPoolText + " " + (IHTMLStrong)("" + InputPool.Interval) + " estimated time " + InputPool.Total + " for " + InputPool.Files.Length + " items"); var Files = Task.VisualizedWorkItems(InputPool.Files); if (InputPool.ShouldPreferOthers) { Details.innerHTML += (IHTMLListItem)("<span style='color: gray;'>(blocked) " + InputPoolHeader + Files + "</span>"); } else { Details.innerHTML += (IHTMLListItem)(InputPoolHeader + Files); } } if (Task.HasActiveDependencies) { ListItem.innerHTML += "(blocked) "; } ListItem.innerHTML += Task.Name.ToLink(k => "?" + k); if (!string.IsNullOrEmpty(Task.Description)) { ListItem.innerHTML += "<pre>" + Task.Description.Trim() + "</pre>"; } ListItem.innerHTML += "<textarea style='width: 100%; height: 20%;'>" + Task.Log.Trim() + "</textarea>"; ListItem.innerHTML += Details; if (Task.HasActiveDependencies) { OrderedList.innerHTML += "<span style='color: gray;'>" + ListItem + "</span>"; } else { OrderedList.innerHTML += ListItem; } } Console.WriteLine(OrderedList); }