Interaction logic for ConnectWindow.xaml
Inheritance: System.Windows.Window
Exemplo n.º 1
0
        public bool Connect()
        {
            var connectionDialog = new ConnectWindow();
            connectionDialog.ShowDialog();

            if (connectionDialog.DialogResult == true)
            {
                CrmServiceClient = connectionDialog.Presenter.CrmConnectionMgr.CrmSvc;
                OrganizationFriendlyName = connectionDialog.Presenter.CrmConnectionMgr.ConnectedOrgFriendlyName;
                OrganizationUniqueName = connectionDialog.Presenter.CrmConnectionMgr.ConnectedOrgUniqueName;

                OrganizationServiceProxy = CrmServiceClient.OrganizationServiceProxy;

                return true;
            }

            return false;
        }
Exemplo n.º 2
0
        public ConnectPresenter(ConnectWindow view)
        {
            View = view;

            AttachEvents();
        }