Interaction logic for ConnectWindow.xaml
Inheritance: System.Windows.Window
示例#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;
        }
示例#2
0
        public ConnectPresenter(ConnectWindow view)
        {
            View = view;

            AttachEvents();
        }