Example #1
0
        private void Workspaces()
        {
            var workspaces = _tfs.CarregaWorkspaces();

            cbWorkspace.DataSource = workspaces;
            if (workspaces.Length > 0)
            {
                if (string.IsNullOrEmpty(_tfs.Workspace))
                {
                    _tfs.Workspace = workspaces[0];
                }
                cbWorkspace.SelectedItem = _tfs.Workspace;
            }
        }