private void FillEntriesList(SidebarListItem selectedGroup)
        {
            GroupModel         group   = selectedGroup.DataObject as GroupModel;
            IList <EntryModel> entries = databaseCommands.FindEntries(group).OrderBy(x => x.Title).ToList();

            EntriesTableView.DataSource = new EntriesDataSource(entries);

            for (int index = 0; index < configuration.AvailableColumns.Count; index++)
            {
                EntryColumn     c       = configuration.AvailableColumns[index];
                NSTableColumn[] columns = EntriesTableView.TableColumns();
                NSTableColumn   col     = columns[index];
                col.HeaderCell.StringValue = c.Header;
            }
        }
Beispiel #2
0
        void ReleaseDesignerOutlets()
        {
            if (GroupsSourceList != null)
            {
                GroupsSourceList.Dispose();
                GroupsSourceList = null;
            }

            if (EntriesTableView != null)
            {
                EntriesTableView.Dispose();
                EntriesTableView = null;
            }

            if (MainToolbar != null)
            {
                MainToolbar.Dispose();
                MainToolbar = null;
            }

            if (ProgressLabel != null)
            {
                ProgressLabel.Dispose();
                ProgressLabel = null;
            }

            if (ProgressIndicator != null)
            {
                ProgressIndicator.Dispose();
                ProgressIndicator = null;
            }

            if (ProgressPanel != null)
            {
                ProgressPanel.Dispose();
                ProgressPanel = null;
            }
        }