private void frmPackageTracker_Load(object sender, EventArgs e) { try { _monitor = new PackageMonitor(LoadHtml); _monitor.PackageModified += new EventHandler<NotifyUpdateEventArgs>(_monitor_PackageModified); _monitor.StatusModified += new EventHandler(_monitor_StatusModified); LoadCycles(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public frmConfig(PackageMonitor monitor) { InitializeComponent(); Monitor = monitor; }