public NewMonitorLocationRow(string loca, NewMonitorGroupForm.NewLocationManger NewLocationManger) { InitializeComponent(); this.location = loca; this.MonitorLocationLabel.Text = this.location; this.NewLocationManger = NewLocationManger; this.NotificationTextBox.Visible = false; FolderTrackGuiTest1.NewMonitorGroup.NewMonitorGroupForm.ErrorAc er = new NewMonitorGroupForm.ErrorAc(); er.location = loca; er.ro = this; NewLocationManger.AddRowFromString(er); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); FolderTrackGuiTest1.NewMonitorGroup.NewMonitorGroupForm.ErrorAc er = new NewMonitorGroupForm.ErrorAc(); er.location = this.location; er.ro = this; NewLocationManger.RemoveRowFromString(er); }