Beispiel #1
0
        public static Guid CreateLayerFilter(IntPtr sessionHandle,
                                             Guid providerId,
                                             Guid sublayerId,
                                             DisplayData displayData,
                                             Layer layer,
                                             Action action,
                                             uint weight,
                                             Guid calloutId,
                                             Guid providerContextId)
        {
            var id = Guid.Empty;

            AssertSuccess(() => PInvoke.CreateLayerFilter(
                              sessionHandle,
                              ref providerId,
                              ref sublayerId,
                              ref displayData,
                              (uint)layer,
                              (uint)action,
                              weight,
                              ref calloutId,
                              ref providerContextId,
                              ref id));

            return(id);
        }
Beispiel #2
0
        public static Guid CreateLayerFilter(IntPtr sessionHandle,
                                             Guid providerId,
                                             Guid sublayerId,
                                             DisplayData displayData,
                                             Layer layer,
                                             Action action,
                                             uint weight,
                                             Guid calloutId,
                                             Guid providerContextId,
                                             bool persistent = false,
                                             Guid id         = new Guid())
        {
            AssertSuccess(() => PInvoke.CreateLayerFilter(
                              sessionHandle,
                              ref providerId,
                              ref sublayerId,
                              ref displayData,
                              (uint)layer,
                              (uint)action,
                              weight,
                              ref calloutId,
                              ref providerContextId,
                              (uint)(persistent ? 1 : 0),
                              ref id));

            return(id);
        }