/// <summary> /// On load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void fMain_Load(object sender, EventArgs e) { this.core = new REDCore(this, this.Data); // Attach events this.core.OnError += new EventHandler <ErrorEventArgs>(core_OnError); this.core.OnCancelled += new EventHandler(core_OnCancelled); this.core.OnAborted += new EventHandler(core_OnAborted); this.core.OnProgressChanged += new EventHandler <ProgressChangedEventArgs>(core_OnProgressChanged); this.core.OnFoundEmptyDirectory += new EventHandler <FoundEmptyDirInfoEventArgs>(core_OnFoundEmptyDir); this.core.OnFinishedScanForEmptyDirs += new EventHandler <FinishedScanForEmptyDirsEventArgs>(core_OnFoundFinishedScanForEmptyDirs); this.core.OnDeleteProcessChanged += new EventHandler <DeleteProcessUpdateEventArgs>(core_OnDeleteProcessChanged); this.core.OnDeleteProcessFinished += new EventHandler <DeleteProcessFinishedEventArgs>(core_OnDeleteProcessFinished); this.core.OnDeleteError += new EventHandler <DeletionErrorEventArgs>(core_OnDeleteError); Properties.Settings.Default.PropertyChanged += new PropertyChangedEventHandler(Default_PropertyChanged); Properties.Settings.Default.SettingChanging += new System.Configuration.SettingChangingEventHandler(Default_SettingChanging); this.init(); }
/// <summary> /// On load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void fMain_Load(object sender, EventArgs e) { this.core = new REDCore(this, this.Data); // Attach events this.core.OnError += new EventHandler<ErrorEventArgs>(core_OnError); this.core.OnCancelled += new EventHandler(core_OnCancelled); this.core.OnAborted += new EventHandler(core_OnAborted); this.core.OnProgressChanged += new EventHandler<ProgressChangedEventArgs>(core_OnProgressChanged); this.core.OnFoundEmptyDirectory += new EventHandler<FoundEmptyDirInfoEventArgs>(core_OnFoundEmptyDir); this.core.OnFinishedScanForEmptyDirs += new EventHandler<FinishedScanForEmptyDirsEventArgs>(core_OnFoundFinishedScanForEmptyDirs); this.core.OnDeleteProcessChanged += new EventHandler<DeleteProcessUpdateEventArgs>(core_OnDeleteProcessChanged); this.core.OnDeleteProcessFinished += new EventHandler<DeleteProcessFinishedEventArgs>(core_OnDeleteProcessFinished); this.core.OnDeleteError += new EventHandler<DeletionErrorEventArgs>(core_OnDeleteError); Properties.Settings.Default.PropertyChanged += new PropertyChangedEventHandler(Default_PropertyChanged); Properties.Settings.Default.SettingChanging += new System.Configuration.SettingChangingEventHandler(Default_SettingChanging); this.init(); }