示例#1
0
    public bool GroupEnabled(DXP.TDocumentsBarGrouping Grouping)
    {
        IClient client = DXP.GlobalVars.Client;

        DXP.IClientAPI_Interface ClientAPI = client.GetClientAPI();

        return(ClientAPI.GetGroupingInDocumentsBar() == Grouping ? true : false);
    }
示例#2
0
    public void ChangeDocGrouping(DXP.TDocumentsBarGrouping Grouping)
    {
        IClient client = DXP.GlobalVars.Client;

        DXP.IClientAPI_Interface ClientAPI = client.GetClientAPI();

        ClientAPI.SetGroupingInDocumentsBar(Grouping);
        client.BroadcastNotification(new DXP.SystemNotification(DXP.NotificationCode.SystemNotificationCode.SystemPreferencesChanged));
    }