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();
        }
 private void CollectionObject_ListRefreshed(object sender, EventArgs e)
 {
     collectionWindow.ClearRows();
     foreach (var item in collectionObject.Records)
     {
         collectionWindow.AddRow(item.Name, item.Mode);
     }
 }