Exemplo n.º 1
0
        public void ConnectdButtonHandler(bool initializing = false)
        {
            bool connectingRequired = string.IsNullOrEmpty(connectedRepositoryId) || connectedRepositoryId != CT.SelectedRepository.Id;

            connectedRepositoryId = null;

            if (connectingRequired)
            {
                if (callHandler(CT.Connect, "Couldn't load data"))
                {
                    CMISSettings.ConnectPossible = true;
                    TabNamesReset();
                    DataLoaded = true;
                    if (!initializing)
                    {
                        FT.Reset();
                        TT.Reset();
                    }
                }
            }
            if (callHandler(callFTActivateTab, "Couldn't load folders"))
            {
                SelectedTab           = 1;
                connectedRepositoryId = CT.SelectedRepository.Id;
            }
        }