private void InitializeTable(NSTableView table)
        {
            var columns = table.TableColumns();

            columns[0].SetIdentifier(AutoBackupTableDelegate.CellIdentifiers[0]);
            columns[0].MinWidth = 110;
            columns[0].MaxWidth = 200;
            columns[0].Width    = 140;
            columns[0].Title    = Configuration.Settings.Language.RestoreAutoBackup.DateAndTime;
            columns[1].SetIdentifier(AutoBackupTableDelegate.CellIdentifiers[1]);
            columns[1].MinWidth = 140;
            columns[1].MaxWidth = 10200;
            columns[1].Width    = 260;
            columns[1].Title    = Configuration.Settings.Language.RestoreAutoBackup.FileName;
            table.AddColumn(new NSTableColumn(AutoBackupTableDelegate.CellIdentifiers[2])
            {
                MinWidth = 50,
                MaxWidth = 200,
                Width    = 70,
                Title    = Configuration.Settings.Language.RestoreAutoBackup.Extension,
            });
            table.AddColumn(new NSTableColumn(AutoBackupTableDelegate.CellIdentifiers[3])
            {
                MinWidth = 60,
                MaxWidth = 150,
                Width    = 90,
                Title    = Configuration.Settings.Language.General.Size,
            });


            //2011-12-13_20-19-18_title
            if (Directory.Exists(Configuration.AutoBackupFolder))
            {
                var autoBackupItems = new List <AutoBackupItem>();
                var files           = Directory.GetFiles(Configuration.AutoBackupFolder, "*.*");
                foreach (string fileName in files)
                {
                    if (fileNamePattern.IsMatch(Path.GetFileName(fileName)))
                    {
                        autoBackupItems.Add(new AutoBackupItem(fileName));
                    }
                }
                autoBackupItems = autoBackupItems.OrderBy(p => p.DisplayDate).ToList();
                var ds = new AutoBackupTableDataSource(autoBackupItems);
                table.DataSource = ds;
                table.Delegate   = new AutoBackupTableDelegate(ds);
            }
        }
        private void InitializeTable(NSTableView table)
        {
            var columns = table.TableColumns();
            columns[0].SetIdentifier(AutoBackupTableDelegate.CellIdentifiers[0]);
            columns[0].MinWidth = 110;
            columns[0].MaxWidth = 200;
            columns[0].Width = 140;
            columns[0].Title = Configuration.Settings.Language.RestoreAutoBackup.DateAndTime;
            columns[1].SetIdentifier(AutoBackupTableDelegate.CellIdentifiers[1]);
            columns[1].MinWidth = 140;
            columns[1].MaxWidth = 10200;
            columns[1].Width = 260;
            columns[1].Title = Configuration.Settings.Language.RestoreAutoBackup.FileName;
            table.AddColumn(new NSTableColumn(AutoBackupTableDelegate.CellIdentifiers[2]) 
            {
                MinWidth = 50,
                MaxWidth = 200,
                Width = 70,
                Title = Configuration.Settings.Language.RestoreAutoBackup.Extension,
            });
            table.AddColumn(new NSTableColumn(AutoBackupTableDelegate.CellIdentifiers[3]) 
            {
                MinWidth = 60,
                MaxWidth = 150,
                Width = 90,
                Title = Configuration.Settings.Language.General.Size,
            });


            //2011-12-13_20-19-18_title
            if (Directory.Exists(Configuration.AutoBackupFolder))
            {
                var autoBackupItems = new List<AutoBackupItem>();
                var files = Directory.GetFiles(Configuration.AutoBackupFolder, "*.*");
                foreach (string fileName in files)
                {
                    if (fileNamePattern.IsMatch(Path.GetFileName(fileName)))
                    {
                        autoBackupItems.Add(new AutoBackupItem(fileName));
                    }
                }
                autoBackupItems = autoBackupItems.OrderBy(p => p.DisplayDate).ToList();
                var ds = new AutoBackupTableDataSource(autoBackupItems);
                table.DataSource = ds;
                table.Delegate = new AutoBackupTableDelegate(ds);
            }
        }
 public AutoBackupTableDelegate (AutoBackupTableDataSource datasource)
 {
     _dataSource = datasource;
 }
 public AutoBackupTableDelegate(AutoBackupTableDataSource datasource)
 {
     _dataSource = datasource;
 }