Beispiel #1
0
        public override int ColumnSettingForDetailView(PersistableObject obj)
        {
            switch (obj.GetType().Name)
            {
            case "TCFolder":
                TCFolder folder = obj as TCFolder;
                if (folder != null)
                {
                    TCFolderPolicy policy = folder.ContentPolicy;
                    if (policy.OnlyTestCaseDesignAllowed)
                    {
                        return((int)ColumnsSetting.TestCaseDesign);
                    }
                }
                break;

            default:
                if (obj.GetType().Assembly == this.GetType().Assembly)
                {
                    return((int)ColumnsSetting.TestCaseDesign);
                }
                break;
            }
            return((int)ColumnsSetting.Unknown);
        }