Пример #1
0
        private void Communicator_DatabaseStatusOnChanged(object sender, Database.ConnectdDatabaseOnProgressArguments e)
        {
            previousDatabaseInformation = e.PreviousDatabaseInformation;

            BombsHost.DatabaseStatus newValue = e.NewStatus;
            if (newValue != BombsHost.DatabaseStatus.Ready)
            {
                Dispatcher.BeginInvoke(new Action(delegate()
                {
                    switch (newValue)
                    {
                        case BombsHost.DatabaseStatus.ConfigurationOnProgress:
                            ShowBusyMessage(Properties.Resources.DatabaseStatus_ConfigurationOnProgress);
                            break;
                        case BombsHost.DatabaseStatus.DatabaseErrorConfiguration:
                            HideBusyMessage();
                            break;
                    }
                }));
            }
        }
Пример #2
0
        private void Communicator_DatabaseStatusOnChanged(object sender, Database.ConnectdDatabaseOnProgressArguments e)
        {
            previousDatabaseInformation = e.PreviousDatabaseInformation;

            InvokeValidateDatabaseStatus(e.NewStatus);
        }