private void SaveConfiguration()
        {
            _myCrmHelper.SaveConfiguration(_newConfig, true);

            ClearForm();
            ToggleFormView(hideView: true);
            PopulateSavedConfigurations();
        }
Ejemplo n.º 2
0
        private void SaveConfiguration()
        {
            try
            {
                Cursor.Current = Cursors.WaitCursor;
                _myCrmHelper.SaveConfiguration(_newConfig, true);
                _myCrmHelper.SetIServiceManagementForOrganization(ref _newConfig);
                MainView parentForm = this.MdiParent as MainView;
                parentForm.PopulateSavedConfigurations();

                Views.RibbonDownloadForm ribbonDlForm = new RibbonDownloadForm(_newConfig);
                ribbonDlForm.Text          = _newConfig.ServerAddress.ToString() + ": " + _newConfig.OrganizationName;
                ribbonDlForm.MdiParent     = this.MdiParent;
                ribbonDlForm.StartPosition = FormStartPosition.CenterScreen;
                ribbonDlForm.Show();

                Cursor.Current = Cursors.Default;
                this.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }