//private void Logging_LoggedEntry(object sender, LogModelEventArgs e) //{ // this.applicationModel.Logging.Logs.Add(e.Message); //} public void Disconnect() { // Logging.LoggedEntry -= this.Logging_LoggedEntry; Logs.Instance.Repositories.Remove(this.logger); this.logger = null; this.applicationModel = null; }
public void Connect(ApplicationModel appModel) { this.applicationModel = appModel; this.logger = new ADLogger(appModel); // Logging.LoggedEntry += this.Logging_LoggedEntry; Logs.Instance.Repositories.Add(this.logger); }