Ejemplo n.º 1
0
        internal SignInWithEmailPanel(CloudEditionWelcomeWindow parentWindow)
        {
            mParentWindow = parentWindow;

            InitializeLayoutAndStyles();

            BuildComponents();
        }
Ejemplo n.º 2
0
        internal CreatedOrganizationPanel(string organizationName, CloudEditionWelcomeWindow parentWindow)
        {
            mOrganizationName = organizationName;
            mParentWindow     = parentWindow;

            InitializeLayoutAndStyles();

            BuildComponents();
        }
Ejemplo n.º 3
0
        internal static void ShowWindow(IPlasticWebRestApi restApi)
        {
            CloudEditionWelcomeWindow window = GetWindow <CloudEditionWelcomeWindow>();

            window.mRestApi     = restApi;
            window.titleContent = new GUIContent(
                PlasticLocalization.GetString(PlasticLocalization.Name.SignInToPlasticSCM));
            window.minSize = new Vector2(800, 460);
            window.Show();
        }
Ejemplo n.º 4
0
        internal SSOSignUpPanel(
            CloudEditionWelcomeWindow parentWindow,
            IPlasticWebRestApi restApi)
        {
            mParentWindow = parentWindow;
            mRestApi      = restApi;

            InitializeLayoutAndStyles();

            BuildComponents();
        }
Ejemplo n.º 5
0
        internal SignInWithEmailPanel(
            CloudEditionWelcomeWindow parentWindow,
            IWelcomeWindowNotify notify,
            IPlasticWebRestApi restApi)
        {
            mParentWindow = parentWindow;
            mNotify       = notify;
            mRestApi      = restApi;

            InitializeLayoutAndStyles();

            BuildComponents();
        }
Ejemplo n.º 6
0
        internal SignInPanel(
            CloudEditionWelcomeWindow parentWindow,
            IPlasticWebRestApi restApi,
            CmConnection cmConnection)
        {
            mParentWindow = parentWindow;
            mRestApi      = restApi;
            mCmConnection = cmConnection;

            InitializeLayoutAndStyles();

            BuildComponents();
        }
Ejemplo n.º 7
0
        internal OrganizationPanel(
            CloudEditionWelcomeWindow parentWindow,
            IPlasticWebRestApi restApi,
            string title,
            List <string> organizations,
            bool canCreateAnOrganization)
        {
            mParentWindow  = parentWindow;
            mRestApi       = restApi;
            mOrganizations = organizations;

            InitializeLayoutAndStyles();

            BuildComponents(title, canCreateAnOrganization);
        }
Ejemplo n.º 8
0
        internal void ChooseOrganization(List <string> organizations,
                                         bool canCreateAnOrganization)
        {
            mPlasticWindow = GetPlasticWindow();

            CloudEditionWelcomeWindow.ShowWindow(
                mPlasticWindow.PlasticWebRestApiForTesting,
                mPlasticWindow.CmConnectionForTesting, null, true);

            mCloudEditionWelcomeWindow = CloudEditionWelcomeWindow.GetWelcomeWindow();
            mCloudEditionWelcomeWindow.FillUserAndToken(sUserName, sAccessToken);
            if (organizations.Count == 1)
            {
                mCloudEditionWelcomeWindow.JoinOrganizationAndWelcomePage(organizations[0]);
                return;
            }
            mCloudEditionWelcomeWindow.ShowOrganizationPanelFromAutoLogin(organizations, canCreateAnOrganization);
        }
        internal static void ShowWindow(
            IPlasticWebRestApi restApi,
            CmConnection cmConnection,
            WelcomeView welcomeView,
            bool autoLogin = false)
        {
            sRestApi      = restApi;
            sCmConnection = cmConnection;
            sAutoLogin    = autoLogin;
            CloudEditionWelcomeWindow window = GetWindow <CloudEditionWelcomeWindow>();

            window.titleContent = new GUIContent(
                PlasticLocalization.GetString(PlasticLocalization.Name.SignInToPlasticSCM));
            window.minSize = window.maxSize = new Vector2(500, 460);

            window.mWelcomeView = welcomeView;

            window.Show();
        }
Ejemplo n.º 10
0
        internal CreateOrganizationPanel(
            CloudEditionWelcomeWindow parentWindow,
            VisualElement parentPanel,
            IPlasticWebRestApi restApi)
        {
            mParentWindow = parentWindow;
            mParentPanel  = parentPanel;
            mRestApi      = restApi;

            InitializeLayoutAndStyles();

            BuildComponents();

            var progressControls = new ProgressControlsForDialogs(new VisualElement[] { mCreateButton, mBackButton });

            mProgressControls = progressControls;
            mGettingDatacentersProgressContainer.Add(progressControls);

            GetDatacenters.Run(
                mRestApi, mProgressControls, this);
        }