Esempio n. 1
0
        public IssueBrowserDialog(Parameters parameters)
        {
            Logger.LogMessageWithData("IssueBrowserDialog()");

            InitializeComponent();

            // Set the icons here instead of them being stored in the resource file multiple times
            this.Icon             = Properties.Resources.TurtleHub;
            updateNotifyIcon.Icon = Properties.Resources.TurtleHub;

            this.parameters = parameters;

            checkBoxShowPrs.Checked = parameters.ShowPrsByDefault;

            Text = string.Format(Text, parameters.Repository);

            // Wrap the objectlistview and set the aspects appropriately
            issuelistview = new TypedObjectListView <Issue>(this.objectListView1);
            issuelistview.GetColumn(0).AspectGetter = delegate(Issue x) { return(x.Number); };
            issuelistview.GetColumn(1).AspectGetter = delegate(Issue x) { return(x.Title); };
            issuelistview.GetColumn(2).AspectGetter = delegate(Issue x) { return(x.User.Login); };
            issuelistview.GetColumn(3).AspectGetter = delegate(Issue x) { return(x.Assignee != null ? x.Assignee.Login : String.Empty); };

            // Start the GitHub magic
            client = new GitHubClient(new ProductHeaderValue("TurtleHub"));
        }
Esempio n. 2
0
        /// <summary>
        /// Called when the form has loaded.
        /// Used to set up the initial GUI state
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MeterForm_Load(object sender, EventArgs e)
        {
            // Set up data record list view
            recordList.GetColumn(0).AspectGetter = delegate(DataRecord x) { return(x.GetDataType()); };
            recordList.GetColumn(1).AspectGetter = delegate(DataRecord x) { return(x.GetStorageNumber()); };
            recordList.GetColumn(2).AspectGetter = delegate(DataRecord x) { return(x.GetTariff()); };
            recordList.GetColumn(3).AspectGetter = delegate(DataRecord x) { return(x.GetFunction()); };
            recordList.GetColumn(4).AspectGetter = delegate(DataRecord x) { return(x.GetUnit()); };
            recordList.GetColumn(5).AspectGetter = delegate(DataRecord x) { return(BitConverter.ToString(x.GetDIB()).Replace("-", "")); };
            recordList.GetColumn(6).AspectGetter = delegate(DataRecord x) { return(BitConverter.ToString(x.GetVIB()).Replace("-", "")); };
            recordList.GetColumn(7).AspectGetter = delegate(DataRecord x) { return(BitConverter.ToString(x.GetData()).Replace("-", "")); };
            recordList.GetColumn(8).AspectGetter = delegate(DataRecord x) { return("Delete"); };
            recordList.GetColumn(9).AspectGetter = delegate(DataRecord x) { return("Modify"); };
            recordList.ListView.ButtonClick     += HandleListViewButtonClick;

            // Set up form caption
            Text = string.Format("Meter: {0}", currentMeter.MeterId);

            // Set up meter specific GUI components
            txtBoxMeterId.Text = currentMeter.MeterId;
            cmbBoxPrimaryAddress.Items.AddRange(Enumerable.Range(1, 250).Cast <object>().ToArray());
            cmbBoxPrimaryAddress.SelectedItem = currentMeter.PrimaryAddress;
            cmbBoxMeterType.DataSource        = Enum.GetValues(typeof(MeterType));
            cmbBoxMeterType.SelectedItem      = currentMeter.MeterType;
            txtBoxManufacturerId.Text         = currentMeter.ManufacturerId;
        }
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_Members.CellEditActivation      = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.objectListView_Members.UseExplorerTheme        = false;
            this.objectListView_Members.UseTranslucentHotItem   = true;
            this.objectListView_Members.FullRowSelect           = false;
            this.objectListView_Members.HotTracking             = false;
            this.objectListView_Members.HeaderToolTip.IsBalloon = false;
            this.objectListView_Members.HotItemStyle.BackColor  = Color.AliceBlue;
            this.objectListView_Members.HotItemStyle.ForeColor  = Color.MediumBlue;

            TypedObjectListView <MemberListViewItemModel> olv = new TypedObjectListView <MemberListViewItemModel>(
                this.objectListView_Members
                );

            olv.GetColumn((int)OlvMemberIndex.Email).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.Email : string.Empty);
                };

            olv.GetColumn((int)OlvMemberIndex.MemberId).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.MemberId : string.Empty);
                };

            olv.GetColumn((int)OlvMemberIndex.Path).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.Path : string.Empty);
                };
        }
Esempio n. 4
0
        public IssueBrowserDialog(Parameters parameters)
        {
            Logger.LogMessageWithData("IssueBrowserDialog()");

            InitializeComponent();

            // Set the icons here instead of them being stored in the resource file multiple times
            this.Icon             = Properties.Resources.TurtleHub;
            updateNotifyIcon.Icon = Properties.Resources.TurtleHub;

            this.parameters = parameters;

            checkBoxShowPrs.Checked = parameters.ShowPrsByDefault;

            Text = string.Format(Text, parameters.Repository);

            // Wrap the objectlistview and set the aspects appropriately
            issuelistview = new TypedObjectListView <TurtleIssue>(this.objectListView1);
            issuelistview.GetColumn(0).AspectGetter = delegate(TurtleIssue x) { return(x.Number); };
            issuelistview.GetColumn(1).AspectGetter = delegate(TurtleIssue x) { return(x.Title); };
            issuelistview.GetColumn(2).AspectGetter = delegate(TurtleIssue x) { return(x.Creator); };
            issuelistview.GetColumn(3).AspectGetter = delegate(TurtleIssue x) { return(x.Assignee); };

            // Start the tracker magic
            tracker = IssueTrackerFactory.CreateIssueTracker(parameters);
        }
Esempio n. 5
0
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_DeviceList.CellEditActivation      = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.objectListView_DeviceList.UseExplorerTheme        = false;
            this.objectListView_DeviceList.UseTranslucentHotItem   = false;
            this.objectListView_DeviceList.FullRowSelect           = true;
            this.objectListView_DeviceList.HotTracking             = true;
            this.objectListView_DeviceList.ShowGroups              = false;
            this.objectListView_DeviceList.HeaderToolTip.IsBalloon = false;
            this.objectListView_DeviceList.HotItemStyle.BackColor  = Color.AliceBlue;
            this.objectListView_DeviceList.HotItemStyle.ForeColor  = Color.MediumBlue;

            TypedObjectListView <DeviceListViewItemModel> olv = new TypedObjectListView <DeviceListViewItemModel>(
                this.objectListView_DeviceList
                );

            olv.GetColumn((int)OlvDeviceIndex.Created).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.Created : System.DateTime.MinValue);
                };

            olv.GetColumn((int)OlvDeviceIndex.Updated).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.Updated : System.DateTime.MinValue);
                };

            olv.GetColumn((int)OlvDeviceIndex.Email).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.Email : string.Empty);
                };

            olv.GetColumn((int)OlvDeviceIndex.TeamId).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.TeamId : string.Empty);
                };

            olv.GetColumn((int)OlvDeviceIndex.DeviceName).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.DeviceName : string.Empty);
                };

            olv.GetColumn((int)OlvDeviceIndex.IpAddress).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.IpAddress : string.Empty);
                };

            olv.GetColumn((int)OlvDeviceIndex.SessionId).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.SessionId : string.Empty);
                };

            olv.GetColumn((int)OlvDeviceIndex.ClientType).AspectGetter
                = delegate(DeviceListViewItemModel model) {
                return((model != null) ? model.ClientType : string.Empty);
                };
        }
Esempio n. 6
0
        private void MeterBoard32Form_Load(object sender, EventArgs e)
        {
            // Set up Meter list view
            meterList = new TypedObjectListView <Meter>(objectListView1);
            meterList.GetColumn(0).AspectGetter = delegate(Meter x) { return(x.MeterId); };
            meterList.GetColumn(1).AspectGetter = delegate(Meter x) { return(x.PrimaryAddress); };
            meterList.GetColumn(2).AspectGetter = delegate(Meter x) { return(x.MeterType); };
            meterList.GetColumn(3).AspectGetter = delegate(Meter x) { return(x.ManufacturerId); };
            meterList.GetColumn(4).AspectGetter = delegate(Meter x) { return(x.dataRecords.Count); };
            meterList.GetColumn(5).AspectGetter = delegate(Meter x) { return("Delete"); };
            meterList.GetColumn(6).AspectGetter = delegate(Meter x) { return("Modify"); };
            meterList.ListView.ButtonClick     += delegate(object sender2, CellClickEventArgs e2) {
                Meter meter = (Meter)e2.Model;
                if (e2.ColumnIndex == 5)
                {
                    meters.Remove(meter);
                    objectListView1.RemoveObject(meter);
                }
                else if (e2.ColumnIndex == 6)
                {
                    MeterForm meterForm = new MeterForm(ref meter);
                    if (meterForm.ShowDialog(this).Equals(DialogResult.OK))
                    {
                        objectListView1.UpdateObject(meter);
                    }
                }
                objectListView1.RefreshObject(e2.Model);
            };

            // Set up console component
            consoleControl.WriteOutput("Welcome to MeterBoard32 Configuration Tool console!\r", Color.White);
            consoleTextBox.ReadOnly = true;
        }
Esempio n. 7
0
        public Form1()
        {
            InitializeComponent();

            Shown += (sender, args) => new Form2().Show();

            _tptvFilesystem = new TypedObjectListView <FileSystemItem>(tvFilesystem);
            _tpcolName      = _tptvFilesystem.GetColumn("Name");

            SetupFsTreeView();

            UpdateControlsState();
        }
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_ProvisioningMembers.CellEditActivation      = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.objectListView_ProvisioningMembers.UseExplorerTheme        = false;
            this.objectListView_ProvisioningMembers.UseTranslucentHotItem   = true;
            this.objectListView_ProvisioningMembers.FullRowSelect           = false;
            this.objectListView_ProvisioningMembers.HotTracking             = false;
            this.objectListView_ProvisioningMembers.HeaderToolTip.IsBalloon = false;
            this.objectListView_ProvisioningMembers.HotItemStyle.BackColor  = Color.AliceBlue;
            this.objectListView_ProvisioningMembers.HotItemStyle.ForeColor  = Color.MediumBlue;

            TypedObjectListView <MemberListViewItemModel> olv = new TypedObjectListView <MemberListViewItemModel>(
                this.objectListView_ProvisioningMembers
                );

            olv.GetColumn((int)OlvMembersIndex.Email).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.Email : string.Empty);
                };

            olv.GetColumn((int)OlvMembersIndex.FirstName).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.FirstName : string.Empty);
                };

            olv.GetColumn((int)OlvMembersIndex.LastName).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.LastName : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Status).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.Status : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Usage).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.Usage : 0);
                };
            olv.GetColumn((int)OlvMembersIndex.JoinedOn).AspectGetter
                = delegate(MemberListViewItemModel model)
                {
                return((model != null) ? model.JoinedOn : DateTime.Now);
                };
        }
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_GroupsMembers.CellEditActivation      = ObjectListView.CellEditActivateMode.None;
            this.objectListView_GroupsMembers.UseExplorerTheme        = false;
            this.objectListView_GroupsMembers.UseTranslucentHotItem   = true;
            this.objectListView_GroupsMembers.FullRowSelect           = false;
            this.objectListView_GroupsMembers.HotTracking             = false;
            this.objectListView_GroupsMembers.HeaderToolTip.IsBalloon = false;
            this.objectListView_GroupsMembers.HotItemStyle.BackColor  = Color.AliceBlue;
            this.objectListView_GroupsMembers.HotItemStyle.ForeColor  = Color.MediumBlue;

            TypedObjectListView <GroupListViewItemModel> olv = new TypedObjectListView <GroupListViewItemModel>(
                this.objectListView_GroupsMembers
                );

            olv.GetColumn((int)OlvMembersIndex.GroupName).AspectGetter
                = delegate(GroupListViewItemModel model)
                {
                return((model != null) ? model.GroupName : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.GroupType).AspectGetter
                = delegate(GroupListViewItemModel model)
                {
                return((model != null) ? model.GroupType : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.MemberCount).AspectGetter
                = delegate(GroupListViewItemModel model)
                {
                return((model != null) ? model.MemberCount : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.GroupId).AspectGetter
                = delegate(GroupListViewItemModel model)
                {
                return((model != null) ? model.GroupId : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Email).AspectGetter
                = delegate(GroupListViewItemModel model)
                {
                return((model != null) ? model.Email : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.AddStatus).AspectGetter
                = delegate(GroupListViewItemModel model)
                {
                return((model != null) ? model.AddStatus : string.Empty);
                };
        }
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_DeviceList.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.objectListView_DeviceList.UseExplorerTheme = false;
            this.objectListView_DeviceList.UseTranslucentHotItem = false;
            this.objectListView_DeviceList.FullRowSelect = true;
            this.objectListView_DeviceList.HotTracking = true;
            this.objectListView_DeviceList.ShowGroups = false;
            this.objectListView_DeviceList.HeaderToolTip.IsBalloon = false;
            this.objectListView_DeviceList.HotItemStyle.BackColor = Color.AliceBlue;
            this.objectListView_DeviceList.HotItemStyle.ForeColor = Color.MediumBlue;
            //this.objectListView_Members.HotItemStyle.Overlay = new MemberInfoOverlay();

            TypedObjectListView<DeviceListViewItemModel> olv = new TypedObjectListView<DeviceListViewItemModel>(
                this.objectListView_DeviceList
            );

            olv.GetColumn((int)OlvDeviceIndex.Created).AspectGetter
                = delegate (DeviceListViewItemModel model) {
                    return (model != null) ? model.Created : System.DateTime.MinValue;
                };

            olv.GetColumn((int)OlvDeviceIndex.Email).AspectGetter
                = delegate (DeviceListViewItemModel model) {
                    return (model != null) ? model.Email : string.Empty;
                };

            olv.GetColumn((int)OlvDeviceIndex.TeamId).AspectGetter
                = delegate (DeviceListViewItemModel model) {
                    return (model != null) ? model.TeamId : string.Empty;
                };

            olv.GetColumn((int)OlvDeviceIndex.DeviceName).AspectGetter
                = delegate (DeviceListViewItemModel model) {
                    return (model != null) ? model.DeviceName : string.Empty;
                };

            olv.GetColumn((int)OlvDeviceIndex.IpAddress).AspectGetter
                = delegate (DeviceListViewItemModel model) {
                    return (model != null) ? model.IpAddress : string.Empty;
                };

            olv.GetColumn((int)OlvDeviceIndex.SessionId).AspectGetter
                = delegate (DeviceListViewItemModel model) {
                    return (model != null) ? model.SessionId : string.Empty;
                };

            olv.GetColumn((int)OlvDeviceIndex.ClientType).AspectGetter
                = delegate (DeviceListViewItemModel model) {
                    return (model != null) ? model.ClientType : string.Empty;
                };
        }
Esempio n. 11
0
        public HoursTracker()
        {
            InitializeComponent();
            uxGroupsDefaultLocation = uxGroupsGroup.Location;
            uxHoursDefaultLocation = uxSavedHoursGroup.Location;

            clockInTime = DateTime.Now;
            clockOutTime = DateTime.Now;

            groupManager = new TimeGroupManager();

            SystemTimeTimer.Enabled = true;
            SystemTimeTimer_Tick(null, null);

            //Do some whack ObjectListView things

            //set up the typed olvs
            typedGroupView = new TypedObjectListView<TimeGrouping>(this.uxGroupsView);
            typedTimeView = new TypedObjectListView<TimedInstance>(this.uxSavedHoursView);

            //set up weird delegate things
            for(int i = 0; i < uxSavedHoursView.Columns.Count; i++)
            {
                typedTimeView.GetColumn(i).GroupKeyGetter = delegate (TimedInstance timedInstance)
                {
                    TimedInstance time = timedInstance;
                    return time.CurrentGroup;
                };
            }//end setting all columns to use group name as group key

            for(int i = 0; i < uxSavedHoursView.AllColumns.Count; i++)
            {
                uxSavedHoursView.AllColumns[i].GroupKeyToTitleConverter = delegate (object groupKey)
                {
                    if (groupKey == null) return "No Group Found";
                    TimeGrouping groupObj = (TimeGrouping)groupKey;
                    return groupObj.GroupName;
                };//end setting GroupKeyToTitleConverter
            }//end looping to set groupKeyToTitleConverter for all the columns
            
            // do the group formatters

            uxStartDateColumn.GroupFormatter = (OLVGroup group,
                GroupingParameters parms) =>
            {
                parms.GroupComparer = Comparer<OLVGroup>.Create
                (
                    (x, y) => (((TimeGrouping)x.Key).EarliestDate.TimeSpan.Ticks.CompareTo(
                        ((TimeGrouping)y.Key).EarliestDate.TimeSpan.Ticks)
                    )
                );//end group comparer definition
            };//end group formatter for start date

            uxEndDateColumn.GroupFormatter = (OLVGroup group,
                GroupingParameters parms) =>
            {
                parms.GroupComparer = Comparer<OLVGroup>.Create
                (
                    (x, y) => (((TimeGrouping)x.Key).EarliestDate.TimeSpan.Ticks.CompareTo(
                        ((TimeGrouping)y.Key).EarliestDate.TimeSpan.Ticks)
                    )
                );//end group comparer definition
            };//end group formatter for end date

            uxStartTimeColumn.GroupFormatter = (OLVGroup group,
                GroupingParameters parms) =>
            {
                parms.GroupComparer = Comparer<OLVGroup>.Create
                (
                    (x, y) => (((TimeGrouping)x.Key).EarliestTime.TimeSpan.Ticks.CompareTo(
                        ((TimeGrouping)y.Key).EarliestTime.TimeSpan.Ticks)
                    )
                );//end group comparer definition
            };//end group formatter for start time

            uxEndTimeColumn.GroupFormatter = (OLVGroup group,
                GroupingParameters parms) =>
            {
                parms.GroupComparer = Comparer<OLVGroup>.Create
                (
                    (x, y) => (((TimeGrouping)x.Key).EarliestTime.TimeSpan.Ticks.CompareTo(
                        ((TimeGrouping)y.Key).EarliestTime.TimeSpan.Ticks)
                    )
                );//end group comparer definition
            };//end group formatter for end time

            uxHoursColumn.GroupFormatter = (OLVGroup group, GroupingParameters parms) =>
            {
                parms.GroupComparer = Comparer<OLVGroup>.Create
                    (
                        (x, y) => ((TimeGrouping)x.Key).TotalHours.CompareTo(
                        ((TimeGrouping)y.Key).TotalHours)
                    );//end GroupCompareer
            };//end GroupFormatter for Hours

            uxMinutesColumn.GroupFormatter = (OLVGroup group, GroupingParameters parms) =>
            {
                parms.GroupComparer = Comparer<OLVGroup>.Create
                    (
                        (x, y) => ((TimeGrouping)x.Key).TotalMinutes.CompareTo(
                        ((TimeGrouping)y.Key).TotalMinutes)
                    );//end GroupCompareer
            };//end GroupFormatter for Minutes

            uxInstanceColumn.GroupFormatter = (OLVGroup group, GroupingParameters parms) =>
            {
                parms.GroupComparer = Comparer<OLVGroup>.Create
                (
                    (x, y) => ((TimeGrouping)x.Key).GroupName.CompareTo(((TimeGrouping)y.Key).GroupName)
                );//end groupComparer
            };//end GroupFormatter for InstanceName
        }//end constructor
Esempio n. 12
0
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_PaperMembers.CellEditActivation      = ObjectListView.CellEditActivateMode.None;
            this.objectListView_PaperMembers.UseExplorerTheme        = false;
            this.objectListView_PaperMembers.UseTranslucentHotItem   = true;
            this.objectListView_PaperMembers.FullRowSelect           = false;
            this.objectListView_PaperMembers.HotTracking             = false;
            this.objectListView_PaperMembers.HeaderToolTip.IsBalloon = false;
            this.objectListView_PaperMembers.HotItemStyle.BackColor  = Color.AliceBlue;
            this.objectListView_PaperMembers.HotItemStyle.ForeColor  = Color.MediumBlue;

            TypedObjectListView <PaperListViewItemModel> olv = new TypedObjectListView <PaperListViewItemModel>(
                this.objectListView_PaperMembers
                );

            olv.GetColumn((int)OlvMembersIndex.PaperName).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.PaperName : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.PaperId).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.PaperId : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.FolderPath).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.FolderPath : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Status).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.Status : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Owner).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.Owner : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.CreatedDate).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.CreatedDate : DateTime.Now);
                };
            olv.GetColumn((int)OlvMembersIndex.LastUpdatedDate).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.LastUpdatedDate : DateTime.Now);
                };
            olv.GetColumn((int)OlvMembersIndex.LastEditor).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.LastEditor : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Revision).AspectGetter
                = delegate(PaperListViewItemModel model)
                {
                return((model != null) ? model.Revision : 0);
                };
        }
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_TeamAuditingMembers.CellEditActivation      = ObjectListView.CellEditActivateMode.None;
            this.objectListView_TeamAuditingMembers.UseExplorerTheme        = false;
            this.objectListView_TeamAuditingMembers.UseTranslucentHotItem   = true;
            this.objectListView_TeamAuditingMembers.FullRowSelect           = false;
            this.objectListView_TeamAuditingMembers.HotTracking             = false;
            this.objectListView_TeamAuditingMembers.HeaderToolTip.IsBalloon = false;
            this.objectListView_TeamAuditingMembers.HotItemStyle.BackColor  = Color.AliceBlue;
            this.objectListView_TeamAuditingMembers.HotItemStyle.ForeColor  = Color.MediumBlue;

            TypedObjectListView <TeamAuditingListViewItemModel> olv = new TypedObjectListView <TeamAuditingListViewItemModel>(
                this.objectListView_TeamAuditingMembers
                );

            olv.GetColumn((int)OlvMembersIndex.Timestamp).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Timestamp : DateTime.Now);
                };
            olv.GetColumn((int)OlvMembersIndex.ActorType).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.ActorType : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Email).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Email : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Context).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Context : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.EventType).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.EventType : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Origin).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Origin : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.IpAddress).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.IpAddress : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.City).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.City : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Region).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Region : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Country).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Country : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Participants).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Participants : string.Empty);
                };
            olv.GetColumn((int)OlvMembersIndex.Assets).AspectGetter
                = delegate(TeamAuditingListViewItemModel model)
                {
                return((model != null) ? model.Assets : string.Empty);
                };
        }
        private void InitializeOLVMembers() {
            // don't allow edit
            this.objectListView_MemberList.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.objectListView_MemberList.UseExplorerTheme = false;
            this.objectListView_MemberList.UseTranslucentHotItem = false;
            this.objectListView_MemberList.FullRowSelect = true;
            this.objectListView_MemberList.HotTracking = true;
            this.objectListView_MemberList.ShowGroups = false;
            this.objectListView_MemberList.HeaderToolTip.IsBalloon = false;
            this.objectListView_MemberList.HotItemStyle.BackColor = Color.AliceBlue;
            this.objectListView_MemberList.HotItemStyle.ForeColor = Color.MediumBlue;

            TypedObjectListView<TeamListViewItemModel> olv = new TypedObjectListView<TeamListViewItemModel>(
                this.objectListView_MemberList
            );

            olv.GetColumn((int)OlvTeamIndex.Email).AspectGetter
                = delegate (TeamListViewItemModel model) {
                    return (model != null) ? model.Email : string.Empty;
                };

            olv.GetColumn((int)OlvTeamIndex.TeamId).AspectGetter
                = delegate (TeamListViewItemModel model) {
                    return (model != null) ? model.TeamId : string.Empty;
                };

            olv.GetColumn((int)OlvTeamIndex.FilePath).AspectGetter
                = delegate (TeamListViewItemModel model) {
                    return (model != null) ? model.FilePath : string.Empty;
                };

            olv.GetColumn((int)OlvTeamIndex.FileName).AspectGetter
                = delegate (TeamListViewItemModel model) {
                    return (model != null) ? model.FileName : string.Empty;
                };

            olv.GetColumn((int)OlvTeamIndex.FileSize).AspectGetter
                = delegate (TeamListViewItemModel model) {
                    return (model != null) ? model.FileSize : string.Empty;
                };
        }
        private void InitializeOLVContentDisplay()
        {
            this.fastObjectListView_DataMigrationContentDisplay.CellEditActivation      = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.fastObjectListView_DataMigrationContentDisplay.UseExplorerTheme        = false;
            this.fastObjectListView_DataMigrationContentDisplay.UseTranslucentHotItem   = true;
            this.fastObjectListView_DataMigrationContentDisplay.FullRowSelect           = true;
            this.fastObjectListView_DataMigrationContentDisplay.HotTracking             = true;
            this.fastObjectListView_DataMigrationContentDisplay.ShowGroups              = false;
            this.fastObjectListView_DataMigrationContentDisplay.HeaderToolTip.IsBalloon = false;
            this.fastObjectListView_DataMigrationContentDisplay.GridLines = true;
            TypedObjectListView <ContentDisplayListViewItemModel> olv = new TypedObjectListView <ContentDisplayListViewItemModel>(
                this.fastObjectListView_DataMigrationContentDisplay
                );

            olv.GetColumn((int)OlvContentIndex.OwnerName).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.OwnerName : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.OwnerLogin).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.Email : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.ItemPathDisplay).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.ItemPathDisplay : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.ItemId).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.ItemId : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.ItemName).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.ItemName : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.ItemId).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.ItemId : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.ItemType).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.ItemType : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.ItemSize).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.ItemSize : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.Created).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.Created : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.LastModified).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.LastModified : string.Empty);
                };

            olv.GetColumn((int)OlvContentIndex.Uploaded).AspectGetter
                = delegate(ContentDisplayListViewItemModel model)
                {
                return((model != null) ? model.Uploaded : string.Empty);
                };
        }
        private void InitializeOLVContentDisplay() {
            this.fastObjectListView_DataMigrationContentDisplay.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.fastObjectListView_DataMigrationContentDisplay.UseExplorerTheme = false;
            this.fastObjectListView_DataMigrationContentDisplay.UseTranslucentHotItem = true;
            this.fastObjectListView_DataMigrationContentDisplay.FullRowSelect = true;
            this.fastObjectListView_DataMigrationContentDisplay.HotTracking = true;
            this.fastObjectListView_DataMigrationContentDisplay.ShowGroups = false;
            this.fastObjectListView_DataMigrationContentDisplay.HeaderToolTip.IsBalloon = false;
            this.fastObjectListView_DataMigrationContentDisplay.GridLines = true;
            TypedObjectListView<ContentDisplayListViewItemModel> olv = new TypedObjectListView<ContentDisplayListViewItemModel>(
                this.fastObjectListView_DataMigrationContentDisplay
            );

            olv.GetColumn((int)OlvContentIndex.OwnerName).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.OwnerName : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.OwnerLogin).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.Email : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.ItemPathDisplay).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.ItemPathDisplay : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.ItemId).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.ItemId : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.ItemName).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.ItemName : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.ItemId).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.ItemId : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.ItemType).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.ItemType : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.ItemSize).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.ItemSize : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.Created).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.Created : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.LastModified).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.LastModified : string.Empty;
                };

            olv.GetColumn((int)OlvContentIndex.Uploaded).AspectGetter
                = delegate (ContentDisplayListViewItemModel model) {
                    return (model != null) ? model.Uploaded : string.Empty;
                };
        }
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_TeamFoldersMembers.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.objectListView_TeamFoldersMembers.UseExplorerTheme = false;
            this.objectListView_TeamFoldersMembers.UseTranslucentHotItem = true;
            this.objectListView_TeamFoldersMembers.FullRowSelect = false;
            this.objectListView_TeamFoldersMembers.HotTracking = false;
            this.objectListView_TeamFoldersMembers.HeaderToolTip.IsBalloon = false;
            this.objectListView_TeamFoldersMembers.HotItemStyle.BackColor = Color.AliceBlue;
            this.objectListView_TeamFoldersMembers.HotItemStyle.ForeColor = Color.MediumBlue;

            TypedObjectListView<TeamFoldersListViewItemModel> olv = new TypedObjectListView<TeamFoldersListViewItemModel>(
                this.objectListView_TeamFoldersMembers
            );

            olv.GetColumn((int)OlvMembersIndex.TeamFolderName).AspectGetter
                = delegate (TeamFoldersListViewItemModel model)
                {
                    return (model != null) ? model.TeamFolderName : string.Empty;
                };
            //olv.GetColumn((int)OlvMembersIndex.DefaultSyncSetting).AspectGetter
            //    = delegate (TeamFoldersListViewItemModel model)
            //    {
            //        return (model != null) ? model.DefaultSyncSetting : string.Empty;
            //    };
            olv.GetColumn((int)OlvMembersIndex.TeamFolderId).AspectGetter
                = delegate (TeamFoldersListViewItemModel model)
                {
                    return (model != null) ? model.TeamFolderId : string.Empty;
                };
            olv.GetColumn((int)OlvMembersIndex.Status).AspectGetter
                = delegate (TeamFoldersListViewItemModel model)
                {
                    return (model != null) ? model.Status : string.Empty;
                };
        }
        private void InitializeOLVMembers()
        {
            // don't allow edit
            this.objectListView_ProvisioningMembers.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.None;
            this.objectListView_ProvisioningMembers.UseExplorerTheme = false;
            this.objectListView_ProvisioningMembers.UseTranslucentHotItem = true;
            this.objectListView_ProvisioningMembers.FullRowSelect = false;
            this.objectListView_ProvisioningMembers.HotTracking = false;
            this.objectListView_ProvisioningMembers.HeaderToolTip.IsBalloon = false;
            this.objectListView_ProvisioningMembers.HotItemStyle.BackColor = Color.AliceBlue;
            this.objectListView_ProvisioningMembers.HotItemStyle.ForeColor = Color.MediumBlue;

            TypedObjectListView<MemberListViewItemModel> olv = new TypedObjectListView<MemberListViewItemModel>(
                this.objectListView_ProvisioningMembers
            );

            olv.GetColumn((int)OlvMembersIndex.Email).AspectGetter
                = delegate (MemberListViewItemModel model)
                {
                    return (model != null) ? model.Email : string.Empty;
                };

            olv.GetColumn((int)OlvMembersIndex.FirstName).AspectGetter
                = delegate (MemberListViewItemModel model)
                {
                    return (model != null) ? model.FirstName : string.Empty;
                };

            olv.GetColumn((int)OlvMembersIndex.LastName).AspectGetter
                = delegate (MemberListViewItemModel model)
                {
                    return (model != null) ? model.LastName : string.Empty;
                };

            olv.GetColumn((int)OlvMembersIndex.Usage).AspectGetter
                = delegate (MemberListViewItemModel model)
                {
                    return (model != null) ? model.Usage : 0;
                };
        }