public void ShowCollection(RoleCollection Source) { if (this.collectionObject != null) { this.collectionObject = null; } if (this.collectionWindow != null) { this.collectionWindow = null; } this.collectionObject = Source; this.collectionWindow = new CollectionWindow() { Text = "Role Collection" }; collectionObject.Refresh(); ((CollectionWindow)this.collectionWindow).Show(); this.collectionWindow.AllowImport = false; this.collectionWindow.AllowExport = false; this.collectionWindow.Columns = collectionObject.Columns; foreach (var item in collectionObject.Records) { collectionWindow.AddRow(item.Name, item.Mode); } this.collectionWindow.NewRow += CollectionWindow_NewRow; this.collectionWindow.DeleteRow += CollectionWindow_DeleteRow; this.collectionWindow.ModifyRow += CollectionWindow_ModifyRow; this.collectionWindow.ViewRow += CollectionWindow_ViewRow; collectionObject.ListRefreshed += CollectionObject_ListRefreshed; //throw new NotImplementedException(); }
public ManageLogsController(IConnection Connection) { this.Connection = Connection; this.Collection = new Data.LogCollection(); this.Window = new CollectionWindow() { Text = "Log Entry Collection" }; this.Collection.ListRefreshed += Collection_ListRefreshed; this.Window.AllowExport = false; this.Window.AllowImport = false; this.Window.Columns = new string[] { "ID", "Stamp", "Type", "Size" }; this.Window.AddCategory("type", "Log Type", Enum.GetNames(typeof(LogEventType))); this.Window.SetCategory("type", 0); this.Window.DeleteRow += Window_DeleteRow; this.Window.ModifyRow += Window_ModifyRow; this.Window.NewRow += Window_NewRow; this.Window.PageChanged += Window_PageChanged; this.Window.ViewRow += Window_ViewRow; this.Window.CategoryChanged += Window_CategoryChanged; }
public void ShowCollection(C Source) { this.collectionObject = Source; try { this.collectionWindow = this.CreateCollection(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error: Collection Manager", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } collectionObject.Refresh(); this.collectionWindow.AllowImport = false; this.collectionWindow.AllowExport = false; this.collectionWindow.Columns = collectionObject.Columns; if (collectionObject.Records != null) { foreach (var item in collectionObject.Records) { this.ParseRow(item); } } this.collectionWindow.NewRow += CollectionWindow_NewRow; this.collectionWindow.DeleteRow += CollectionWindow_DeleteRow; this.collectionWindow.ModifyRow += CollectionWindow_ModifyRow; this.collectionWindow.ViewRow += CollectionWindow_ViewRow; collectionObject.ListRefreshed += CollectionObject_ListRefreshed; ((IWindowCollection)this.collectionWindow).Show(); }
// document public void getWindows() { if (document == null) { return; } Windows = document.Window.Frames; }
internal HtmlWindowCollection(WebBrowser owner, Mono.WebBrowser.IWebBrowser webHost, IWindowCollection col) { windows = new List <HtmlWindow>(); foreach (IWindow window in col) { windows.Add(new HtmlWindow(owner, webHost, window)); } }
internal HtmlWindowCollection (WebBrowser owner, Mono.WebBrowser.IWebBrowser webHost, IWindowCollection col) { windows = new List<HtmlWindow>(); foreach (IWindow window in col) windows.Add (new HtmlWindow (owner, webHost, window)); }
// document public void getWindows () { if (document == null) return; Windows = document.Window.Frames; }
public static bool Compare(this IWindowCollection source, IWindowCollection n, Func<IWindow, IWindow, Action<string, string>, bool> checkitem, Action<string, string> errAct) { return Compare<IWindow>(source,n,checkitem,errAct); }
public static bool Compare(this IWindowCollection source, IWindowCollection n, Func<IWindow, IWindow, bool> checkitem) { return Compare<IWindow>(source,n,checkitem); }
public static bool Compare(this IWindowCollection source, IWindowCollection n) { return Compare<IWindow>(source,n); }
public static bool Compare(this IWindowCollection source, IWindowCollection n, Func <IWindow, IWindow, Action <string, string>, bool> checkitem, Action <string, string> errAct) { return(Compare <IWindow>(source, n, checkitem, errAct)); }
public static bool Compare(this IWindowCollection source, IWindowCollection n, Func <IWindow, IWindow, bool> checkitem) { return(Compare <IWindow>(source, n, checkitem)); }
public static bool Compare(this IWindowCollection source, IWindowCollection n) { return(Compare <IWindow>(source, n)); }