private void ReadStatus() { //_databaseStatus = "From Database Class"; DatabaseStatusRaisedEventArgs args = new DatabaseStatusRaisedEventArgs(); args.Status = _databaseStatus; OnDatabaseStatusRaised(args); }
protected virtual void OnDatabaseStatusRaised(DatabaseStatusRaisedEventArgs e) { EventHandler <DatabaseStatusRaisedEventArgs> handler = StatusRaised; if (handler != null) { handler(this, e); } }