Пример #1
0
        partial void ScanButtonClick(NSObject sender)
        {
            instance.Load();
            passSource = new PassTableSource();
            RunPasses((pass, _) =>
            {
                try
                {
                    var entry = pass.Apply(instance);
                    passSource.entries.Add(entry);
                }
                catch (Exception exception)
                {
                    var entry = new Entry(exception.ToString())
                    {
                        status = Status.Failed
                    };
                    passSource.entries.Add(entry);
                }
            });

            RepairButton.Enabled = true;
            ReportButton.Enabled = true;
            PassTable.DataSource = passSource;
            PassTable.Delegate   = new PassTableDelegate(passSource);
        }
Пример #2
0
 public PassTableDelegate(PassTableSource source)
 {
     this.source = source;
 }