Exemplo n.º 1
0
        public override bool ShowConnectionDialog(IConnectionInfo cxInfo, bool isNewConnection)
        {
            // Populate the default URI with a demo value:
            if (isNewConnection)
            {
                new ConnectionProperties(cxInfo).ProcessName = "ConnectionName";
            }

            var result = new ConnectionDialog(cxInfo).ShowDialog();

            return(result == true);
        }
Exemplo n.º 2
0
        public override bool ShowConnectionDialog(IConnectionInfo cxInfo, bool isNewConnection)
        {
            // Populate the default URI with a demo value:
            if (isNewConnection) new AstoriaProperties (cxInfo).Uri = "http://ogdi.cloudapp.net/v1/dc";

            bool? result = new ConnectionDialog (cxInfo).ShowDialog ();
            return result == true;
        }