コード例 #1
0
        private void ReadStatus()
        {
            //_databaseStatus = "From Database Class";

            DatabaseStatusRaisedEventArgs args = new DatabaseStatusRaisedEventArgs();

            args.Status = _databaseStatus;
            OnDatabaseStatusRaised(args);
        }
コード例 #2
0
        protected virtual void OnDatabaseStatusRaised(DatabaseStatusRaisedEventArgs e)
        {
            EventHandler <DatabaseStatusRaisedEventArgs> handler = StatusRaised;

            if (handler != null)
            {
                handler(this, e);
            }
        }