Ejemplo n.º 1
0
        private void DoConnect()
        {
            //this.DatabaseConnection = new DbConnection() { IsConnected = false };

            //ConnectRequest.Notification = connectConfirmation;
            //connectConfirmation.ShowSignal = true;

            connectNotification.Title = "Connect to Database";

            ConnectRequest.Raise(connectNotification, (result) =>
            {
                if (result != null && result.Confirmed && result.DbConnection != null && result.DbConnection.IsConnected)
                {
                    //eventAgg.GetEvent<ConnectEvent>().Publish(result.DbConnection);
                    IsConnected  = true;
                    dbConnection = result.DbConnection;
                }
            });
        }