Esempio n. 1
0
        public virtual unsafe void SetPicker(global::System.Collections.IList options1Items, global::System.Collections.Generic.IList <global::System.Collections.IList> options2Items, global::System.Collections.Generic.IList <global::System.Collections.Generic.IList <global::System.Collections.IList> > options3Items)
        {
            if (options2Items == null || options2Items.Count == 0)
            {
                SetPicker(options1Items);
                return;
            }
            if (options3Items == null || options3Items.Count == 0)
            {
                SetPicker(options1Items, options2Items);
                return;
            }
            //List<Java.Util.IList> options2ItemsCast = new List<Java.Util.IList>(options2Items.Count);
            //foreach (System.Collections.IList item in options2Items)
            //{
            //    options2ItemsCast.Add(new Java.Util.ArrayList(item));
            //}

            List <Java.Util.IList> options2ItemsCast = Convent(options2Items);


            List <global::Android.Runtime.JavaList <Java.Util.IList> > option3ItemsCast = new List <global::Android.Runtime.JavaList <Java.Util.IList> >();

            if (options3Items != null)
            {
                option3ItemsCast = new List <global::Android.Runtime.JavaList <Java.Util.IList> >(options3Items.Count);

                // 1rd
                foreach (IList <IList> item1 in options3Items)
                {
                    List <Java.Util.IList> items2Cast = new List <Java.Util.IList>(item1.Count);
                    // 2rd
                    foreach (System.Collections.IList item2 in item1)
                    {
                        items2Cast.Add(new Java.Util.ArrayList(item2));
                    }

                    option3ItemsCast.Add(new JavaList <Java.Util.IList>(items2Cast));
                }
            }


            if (id_setPicker_Ljava_util_List_Ljava_util_List_Ljava_util_List_ == IntPtr.Zero)
            {
                id_setPicker_Ljava_util_List_Ljava_util_List_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "setPicker", "(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V");
            }
            IntPtr native_options1Items = global::Android.Runtime.JavaList.ToLocalJniHandle(options1Items);
            IntPtr native_options2Items = global::Android.Runtime.JavaList <Java.Util.IList> .ToLocalJniHandle(options2ItemsCast);

            IntPtr native_options3Items = global::Android.Runtime.JavaList <global::Android.Runtime.JavaList <Java.Util.IList> > .ToLocalJniHandle(option3ItemsCast);

            try
            {
                JValue *__args = stackalloc JValue[3];
                __args[0] = new JValue(native_options1Items);
                __args[1] = new JValue(native_options2Items);
                __args[2] = new JValue(native_options3Items);

                if (((object)this).GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_setPicker_Ljava_util_List_Ljava_util_List_Ljava_util_List_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setPicker", "(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V"), __args);
                }
            }
            finally
            {
                JNIEnv.DeleteLocalRef(native_options1Items);
                JNIEnv.DeleteLocalRef(native_options2Items);
                JNIEnv.DeleteLocalRef(native_options3Items);
            }
        }
Esempio n. 2
0
 // void Clear()
 public static void Clear <T>(
     global::System.Collections.Generic.IList <T> _this)
 {
     _this.Clear();
 }
 public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana> GetLinks(global::ce.GEB_NGN_PCR_Practica1.Prototools source, global::ce.GEB_NGN_PCR_Practica1.Ventana target)
 {
     global::System.Collections.Generic.List <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana>  outLinks = new global::System.Collections.Generic.List <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana>();
     global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana> links    = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana>(source, global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana.PrototoolsDomainRoleId);
     foreach (global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana link in links)
     {
         if (target.Equals(link.Ventana))
         {
             outLinks.Add(link);
         }
     }
     return(outLinks.AsReadOnly());
 }
Esempio n. 4
0
 public static global::Fabrikam.Dsl.TestValidation.ParentRelation GetLink(global::Fabrikam.Dsl.TestValidation.Person source, global::Fabrikam.Dsl.TestValidation.Person target)
 {
     global::System.Collections.Generic.IList <global::Fabrikam.Dsl.TestValidation.ParentRelation> links = DslModeling::DomainRoleInfo.GetElementLinks <global::Fabrikam.Dsl.TestValidation.ParentRelation>(source, global::Fabrikam.Dsl.TestValidation.ParentRelation.ChildDomainRoleId);
     foreach (global::Fabrikam.Dsl.TestValidation.ParentRelation link in links)
     {
         if (target.Equals(link.Parent))
         {
             return(link);
         }
     }
     return(null);
 }
Esempio n. 5
0
 // uint Size { get }
 public static uint get_Size <T>(
     global::System.Collections.Generic.IList <T> _this
     )
 {
     return((uint)_this.Count);
 }
Esempio n. 6
0
        /// <summary>
        /// Provide the menu commands that this command set handles
        /// </summary>
        protected override global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> GetMenuCommands()
        {
            // Get the standard commands
            global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> commands = base.GetMenuCommands();

            global::System.ComponentModel.Design.MenuCommand menuCommand;

            // Add command handler for the "view explorer" command in the top-level menu.
            // We use a ContextBoundMenuCommand because the visibility of this command is
            // based on whether or not the command context of our DSL editor is active.
            menuCommand = new DslShell::CommandContextBoundMenuCommand(this.ServiceProvider,
                                                                       new global::System.EventHandler(OnMenuViewModelExplorer),
                                                                       Constants.ViewUMLSPFExplorerCommand,
                                                                       typeof(UMLSPFEditorFactory).GUID);

            commands.Add(menuCommand);

            return(commands);
        }
Esempio n. 7
0
 public static global::Fabrikam.Dsl.TestValidation.FamilyHasPeople GetLink(global::Fabrikam.Dsl.TestValidation.Family source, global::Fabrikam.Dsl.TestValidation.Person target)
 {
     global::System.Collections.Generic.IList <global::Fabrikam.Dsl.TestValidation.FamilyHasPeople> links = DslModeling::DomainRoleInfo.GetElementLinks <global::Fabrikam.Dsl.TestValidation.FamilyHasPeople>(source, global::Fabrikam.Dsl.TestValidation.FamilyHasPeople.FamilyDomainRoleId);
     foreach (global::Fabrikam.Dsl.TestValidation.FamilyHasPeople link in links)
     {
         if (target.Equals(link.People))
         {
             return(link);
         }
     }
     return(null);
 }
Esempio n. 8
0
 /// <summary>
 /// Initialize the collection of shape fields associated with this shape type.
 /// </summary>
 protected override void InitializeShapeFields(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields)
 {
     base.InitializeShapeFields(shapeFields);
 }
Esempio n. 9
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::TextField field1 = new DslDiagrams::TextField("refDCL");

            field1.DefaultText      = global::IPS.UMLSPF.UMLSPFDomainModel.SingletonResourceManager.GetString("ConecClaserefDCLDefaultText");
            field1.DefaultFocusable = true;
            field1.DefaultAutoSize  = true;
            field1.AnchoringBehavior.MinimumHeightInLines     = 1;
            field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator1 = new DslDiagrams::ConnectorDecorator(field1, DslDiagrams::ConnectorDecoratorPosition.SourceTop, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);

            DslDiagrams::TextField field2 = new DslDiagrams::TextField("refICL");

            field2.DefaultText      = global::IPS.UMLSPF.UMLSPFDomainModel.SingletonResourceManager.GetString("ConecClaserefICLDefaultText");
            field2.DefaultFocusable = true;
            field2.DefaultAutoSize  = true;
            field2.AnchoringBehavior.MinimumHeightInLines     = 1;
            field2.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field2.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator2 = new DslDiagrams::ConnectorDecorator(field2, DslDiagrams::ConnectorDecoratorPosition.TargetTop, DslDiagrams::PointD.Empty);

            decorators.Add(decorator2);

            DslDiagrams::TextField field3 = new DslDiagrams::TextField("NombreRelacionDE");

            field3.DefaultText      = global::IPS.UMLSPF.UMLSPFDomainModel.SingletonResourceManager.GetString("ConecClaseNombreRelacionDEDefaultText");
            field3.DefaultFocusable = true;
            field3.DefaultAutoSize  = true;
            field3.AnchoringBehavior.MinimumHeightInLines     = 1;
            field3.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field3.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator3 = new DslDiagrams::ConnectorDecorator(field3, DslDiagrams::ConnectorDecoratorPosition.SourceBottom, DslDiagrams::PointD.Empty);

            decorators.Add(decorator3);

            DslDiagrams::TextField field4 = new DslDiagrams::TextField("NombreRelacionIZ");

            field4.DefaultText      = global::IPS.UMLSPF.UMLSPFDomainModel.SingletonResourceManager.GetString("ConecClaseNombreRelacionIZDefaultText");
            field4.DefaultFocusable = true;
            field4.DefaultAutoSize  = true;
            field4.AnchoringBehavior.MinimumHeightInLines     = 1;
            field4.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field4.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator4 = new DslDiagrams::ConnectorDecorator(field4, DslDiagrams::ConnectorDecoratorPosition.TargetBottom, DslDiagrams::PointD.Empty);

            decorators.Add(decorator4);

            DslDiagrams::TextField field5 = new DslDiagrams::TextField("RelacionTipo");

            field5.DefaultText      = global::IPS.UMLSPF.UMLSPFDomainModel.SingletonResourceManager.GetString("ConecClaseRelacionTipoDefaultText");
            field5.DefaultFocusable = true;
            field5.DefaultAutoSize  = true;
            field5.AnchoringBehavior.MinimumHeightInLines     = 1;
            field5.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field5.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            field5.DefaultFontId          = new DslDiagrams::StyleSetResourceId(string.Empty, "ShapeTextRegular1");
            DslDiagrams::Decorator decorator5 = new DslDiagrams::ConnectorDecorator(field5, DslDiagrams::ConnectorDecoratorPosition.SourceTop, DslDiagrams::PointD.Empty);

            decorators.Add(decorator5);
        }
Esempio n. 10
0
        public unsafe Frame(global::Org.Jcodec.Common.Model.Picture p0, global::Org.Jcodec.Common.Model.RationalLarge p1, global::Org.Jcodec.Common.Model.RationalLarge p2, global::Org.Jcodec.Common.Model.Rational p3, int p4, global::Org.Jcodec.Common.Model.TapeTimecode p5, global::System.Collections.Generic.IList <string> p6)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero)
            {
                return;
            }

            IntPtr native_p6 = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(p6);

            try {
                JValue *__args = stackalloc JValue [7];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(p5);
                __args [6] = new JValue(native_p6);
                if (GetType() != typeof(Frame))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/Rational;ILorg/jcodec/common/model/TapeTimecode;Ljava/util/List;)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/Rational;ILorg/jcodec/common/model/TapeTimecode;Ljava/util/List;)V", __args);
                    return;
                }

                if (id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_ == IntPtr.Zero)
                {
                    id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Lorg/jcodec/common/model/Picture;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/RationalLarge;Lorg/jcodec/common/model/Rational;ILorg/jcodec/common/model/TapeTimecode;Ljava/util/List;)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(((global::Java.Lang.Object) this).Handle, class_ref, id_ctor_Lorg_jcodec_common_model_Picture_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_RationalLarge_Lorg_jcodec_common_model_Rational_ILorg_jcodec_common_model_TapeTimecode_Ljava_util_List_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p6);
            }
        }
Esempio n. 11
0
        /// <summary>
        /// Provide the menu commands that this command set handles
        /// </summary>
        protected override global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> GetMenuCommands()
        {
            // Get the standard commands
            global::System.Collections.Generic.IList <global::System.ComponentModel.Design.MenuCommand> commands = base.GetMenuCommands();

            global::System.ComponentModel.Design.MenuCommand menuCommand;

            // Add command handler for the "view explorer" command in the top-level menu.
            // We use a ContextBoundMenuCommand because the visibility of this command is
            // based on whether or not the command context of our DSL editor is active.
            menuCommand = new DslShell::CommandContextBoundMenuCommand(this.ServiceProvider,
                                                                       new global::System.EventHandler(OnMenuViewModelExplorer),
                                                                       Constants.ViewTestValidationExplorerCommand,
                                                                       typeof(TestValidationEditorFactory).GUID);

            commands.Add(menuCommand);

            // Add handler for "Validate All" menu command (validates the entire model).
            menuCommand = new DslShell::DynamicStatusMenuCommand(new global::System.EventHandler(OnStatusValidateModel),
                                                                 new global::System.EventHandler(OnMenuValidateModel),
                                                                 DslShell::CommonModelingCommands.ValidateModel);
            commands.Add(menuCommand);
            // Add handler for "Validate" menu command (validates the current selection).
            menuCommand = new DslShell::DynamicStatusMenuCommand(new global::System.EventHandler(OnStatusValidate),
                                                                 new global::System.EventHandler(OnMenuValidate),
                                                                 DslShell::CommonModelingCommands.Validate);
            commands.Add(menuCommand);

            return(commands);
        }
        public static unsafe void Animate(string p0, long p1, long p2, float[] p3, global::Android.Animation.ITimeInterpolator p4, global::System.Collections.Generic.IList <global::Android.Views.View> p5)
        {
            const string __id      = "animate.(Ljava/lang/String;JJ[FLandroid/animation/TimeInterpolator;Ljava/util/ArrayList;)V";
            IntPtr       native_p0 = JNIEnv.NewString(p0);
            IntPtr       native_p3 = JNIEnv.NewArray(p3);
            IntPtr       native_p5 = global::Android.Runtime.JavaList <global::Android.Views.View> .ToLocalJniHandle(p5);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [6];
                __args [0] = new JniArgumentValue(native_p0);
                __args [1] = new JniArgumentValue(p1);
                __args [2] = new JniArgumentValue(p2);
                __args [3] = new JniArgumentValue(native_p3);
                __args [4] = new JniArgumentValue((p4 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p4).Handle);
                __args [5] = new JniArgumentValue(native_p5);
                _members.StaticMethods.InvokeVoidMethod(__id, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                if (p3 != null)
                {
                    JNIEnv.CopyArray(native_p3, p3);
                    JNIEnv.DeleteLocalRef(native_p3);
                }
                JNIEnv.DeleteLocalRef(native_p5);
            }
        }
Esempio n. 13
0
        /// <summary>
        /// Called on both document load and reload.
        /// </summary>
        protected virtual void OnDocumentLoaded()
        {
            // Validate the document
            this.ValidationController.Validate(this.GetAllElementsForValidation(), DslValidation::ValidationCategories.Open);

            // Enable CompartmentItems events.
            global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel modelRoot = this.RootElement as global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityDesignerViewModel;
            if (modelRoot != null)
            {
                global::System.Collections.Generic.IList <DslDiagrams::PresentationElement> diagrams = DslDiagrams::PresentationViewsSubject.GetPresentation(modelRoot);
                if (diagrams.Count > 0)
                {
                    global::Microsoft.Data.Entity.Design.EntityDesigner.View.EntityDesignerDiagram diagram = diagrams[0] as global::Microsoft.Data.Entity.Design.EntityDesigner.View.EntityDesignerDiagram;
                    if (diagram != null)
                    {
                        diagram.SubscribeCompartmentItemsEvents();
                    }
                }
            }
        }
        public virtual unsafe void SetPicker(global::System.Collections.Generic.IList <string> p0, global::System.Collections.Generic.IList <global::System.Collections.Generic.IList <string> > p1, global::System.Collections.Generic.IList <global::System.Collections.Generic.IList <global::System.Collections.Generic.IList <string> > > p2)
        {
            if (id_setPicker_Ljava_util_List_Ljava_util_List_Ljava_util_List_ == IntPtr.Zero)
            {
                id_setPicker_Ljava_util_List_Ljava_util_List_Ljava_util_List_ = JNIEnv.GetMethodID(class_ref, "setPicker", "(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V");
            }
            IntPtr native_p0 = global::Android.Runtime.JavaList <string> .ToLocalJniHandle(p0);

            IntPtr native_p1 = global::Android.Runtime.JavaList <global::System.Collections.Generic.IList <string> > .ToLocalJniHandle(p1);

            IntPtr native_p2 = global::Android.Runtime.JavaList <global::System.Collections.Generic.IList <global::System.Collections.Generic.IList <string> > > .ToLocalJniHandle(p2);

            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(native_p0);
                __args [1] = new JValue(native_p1);
                __args [2] = new JValue(native_p2);

                if (GetType() == ThresholdType)
                {
                    JNIEnv.CallVoidMethod(Handle, id_setPicker_Ljava_util_List_Ljava_util_List_Ljava_util_List_, __args);
                }
                else
                {
                    JNIEnv.CallNonvirtualVoidMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "setPicker", "(Ljava/util/List;Ljava/util/List;Ljava/util/List;)V"), __args);
                }
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
                JNIEnv.DeleteLocalRef(native_p2);
            }
        }
Esempio n. 15
0
        /// <summary>
        /// Saves the given file.
        /// </summary>
        protected override void Save(string fileName)
        {
            DslModeling::SerializationResult serializationResult = new DslModeling::SerializationResult();

            global::isep.edom.gorgeous.Model modelRoot = (global::isep.edom.gorgeous.Model) this.RootElement;


            // Only save the diagrams if
            // a) There are any to save
            // b) This is NOT a SaveAs operation.  SaveAs should allow the subordinate document to control the save of its data as it is writing a new file.
            //    Except DO save the diagram on SaveAs if there isn't currently a diagram as there won't be a subordinate document yet to save it.

            bool saveAs = global::System.StringComparer.OrdinalIgnoreCase.Compare(fileName, this.FileName) != 0;

            global::System.Collections.Generic.IList <DslDiagrams::PresentationElement> diagrams = DslDiagrams::PresentationViewsSubject.GetPresentation(this.RootElement);
            if (diagrams.Count > 0 && (!saveAs || this.diagramDocumentLockHolder == null))
            {
                global::isep.edom.gorgeous.gorgeousDiagram diagram = diagrams[0] as global::isep.edom.gorgeous.gorgeousDiagram;
                if (diagram != null)
                {
                    string diagramFileName = fileName + this.DiagramExtension;
                    try
                    {
                        this.SuspendFileChangeNotification(diagramFileName);

                        global::isep.edom.gorgeous.gorgeousSerializationHelper.Instance.SaveModelAndDiagram(serializationResult, modelRoot, fileName, diagram, diagramFileName, this.Encoding, false);
                    }
                    finally
                    {
                        this.ResumeFileChangeNotification(diagramFileName);
                    }
                }
            }
            else
            {
                global::isep.edom.gorgeous.gorgeousSerializationHelper.Instance.SaveModel(serializationResult, modelRoot, fileName, this.Encoding, false);
            }
            // Report serialization messages.
            this.SuspendErrorListRefresh();
            try
            {
                foreach (DslModeling::SerializationMessage serializationMessage in serializationResult)
                {
                    this.AddErrorListItem(new DslShell::SerializationErrorListItem(this.ServiceProvider, serializationMessage));
                }
            }
            finally
            {
                this.ResumeErrorListRefresh();
            }

            if (serializationResult.Failed)
            {                   // Save failed.
                throw new global::System.InvalidOperationException(global::isep.edom.gorgeous.gorgeousDomainModel.SingletonResourceManager.GetString("CannotSaveDocument"));
            }
        }
        public virtual unsafe void ConfigureTlsExtensions(global::Javax.Net.Ssl.SSLSocket sslSocket, string hostname, global::System.Collections.Generic.IList <global::Okhttp3.Protocol> protocols)
        {
            const string __id             = "configureTlsExtensions.(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V";
            IntPtr       native_hostname  = JNIEnv.NewString(hostname);
            IntPtr       native_protocols = global::Android.Runtime.JavaList <global::Okhttp3.Protocol> .ToLocalJniHandle(protocols);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue((sslSocket == null) ? IntPtr.Zero : ((global::Java.Lang.Object)sslSocket).Handle);
                __args [1] = new JniArgumentValue(native_hostname);
                __args [2] = new JniArgumentValue(native_protocols);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_hostname);
                JNIEnv.DeleteLocalRef(native_protocols);
            }
        }
Esempio n. 17
0
        /// <summary>
        /// Save the given document that is subordinate to this document.
        /// </summary>
        /// <param name="subordinateDocument"></param>
        /// <param name="fileName"></param>
        protected override void SaveSubordinateFile(DslShell::DocData subordinateDocument, string fileName)
        {
            // In this case, the only subordinate is the diagram.
            DslModeling::SerializationResult serializationResult = new DslModeling::SerializationResult();

            global::System.Collections.Generic.IList <DslDiagrams::PresentationElement> diagrams = DslDiagrams::PresentationViewsSubject.GetPresentation(this.RootElement);
            if (diagrams.Count > 0)
            {
                global::isep.edom.gorgeous.gorgeousDiagram diagram = diagrams[0] as global::isep.edom.gorgeous.gorgeousDiagram;
                if (diagram != null)
                {
                    try
                    {
                        this.SuspendFileChangeNotification(fileName);

                        global::isep.edom.gorgeous.gorgeousSerializationHelper.Instance.SaveDiagram(serializationResult, diagram, fileName, this.Encoding, false);
                    }
                    finally
                    {
                        this.ResumeFileChangeNotification(fileName);
                    }
                }
            }
            // Report serialization messages.
            this.SuspendErrorListRefresh();
            try
            {
                foreach (DslModeling::SerializationMessage serializationMessage in serializationResult)
                {
                    this.AddErrorListItem(new DslShell::SerializationErrorListItem(this.ServiceProvider, serializationMessage));
                }
            }
            finally
            {
                this.ResumeErrorListRefresh();
            }

            if (!serializationResult.Failed)
            {
                this.NotifySubordinateDocumentSaved(subordinateDocument.FileName, fileName);
            }
            else
            {
                // Save failed.
                throw new global::System.InvalidOperationException(global::isep.edom.gorgeous.gorgeousDomainModel.SingletonResourceManager.GetString("CannotSaveDocument"));
            }
        }
Esempio n. 18
0
        public override unsafe global::System.Collections.Generic.IList <global::Java.Security.Cert.Certificate> Clean(global::System.Collections.Generic.IList <global::Java.Security.Cert.Certificate> p0, string p1)
        {
            const string __id      = "clean.(Ljava/util/List;Ljava/lang/String;)Ljava/util/List;";
            IntPtr       native_p0 = global::Android.Runtime.JavaList <global::Java.Security.Cert.Certificate> .ToLocalJniHandle(p0);

            IntPtr native_p1 = JNIEnv.NewString(p1);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [2];
                __args [0] = new JniArgumentValue(native_p0);
                __args [1] = new JniArgumentValue(native_p1);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Android.Runtime.JavaList <global::Java.Security.Cert.Certificate> .FromJniHandle(__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
                JNIEnv.DeleteLocalRef(native_p0);
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Esempio n. 19
0
 public static global::Fabrikam.Dsl.TestValidation.FamilyHasPeople GetLinkToFamily(global::Fabrikam.Dsl.TestValidation.Person peopleInstance)
 {
     global::System.Collections.Generic.IList <global::Fabrikam.Dsl.TestValidation.FamilyHasPeople> links = DslModeling::DomainRoleInfo.GetElementLinks <global::Fabrikam.Dsl.TestValidation.FamilyHasPeople>(peopleInstance, global::Fabrikam.Dsl.TestValidation.FamilyHasPeople.PeopleDomainRoleId);
     global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of People not obeyed.");
     if (links.Count == 0)
     {
         return(null);
     }
     else
     {
         return(links[0]);
     }
 }
Esempio n. 20
0
 public abstract global::System.Collections.Generic.IList <global::Java.Security.Cert.Certificate> Clean(global::System.Collections.Generic.IList <global::Java.Security.Cert.Certificate> p0, string p1);
Esempio n. 21
0
 public static global::System.Collections.ObjectModel.ReadOnlyCollection <global::Fabrikam.Dsl.TestValidation.ParentRelation> GetLinks(global::Fabrikam.Dsl.TestValidation.Person source, global::Fabrikam.Dsl.TestValidation.Person target)
 {
     global::System.Collections.Generic.List <global::Fabrikam.Dsl.TestValidation.ParentRelation>  outLinks = new global::System.Collections.Generic.List <global::Fabrikam.Dsl.TestValidation.ParentRelation>();
     global::System.Collections.Generic.IList <global::Fabrikam.Dsl.TestValidation.ParentRelation> links    = DslModeling::DomainRoleInfo.GetElementLinks <global::Fabrikam.Dsl.TestValidation.ParentRelation>(source, global::Fabrikam.Dsl.TestValidation.ParentRelation.ChildDomainRoleId);
     foreach (global::Fabrikam.Dsl.TestValidation.ParentRelation link in links)
     {
         if (target.Equals(link.Parent))
         {
             outLinks.Add(link);
         }
     }
     return(outLinks.AsReadOnly());
 }
Esempio n. 22
0
 /// <summary>
 /// Initialize shape decorator mappings.  This is done here rather than in individual shapes because decorator maps
 /// are defined per diagram type rather than per shape type.
 /// </summary>
 protected override void InitializeShapeFields(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields)
 {
     base.InitializeShapeFields(shapeFields);
     global::Company.DoubleClickOnShape.ExampleShape.DecoratorsInitialized += ExampleShapeDecoratorMap.OnDecoratorsInitialized;
 }
Esempio n. 23
0
        public override sealed unsafe void 櫯(global::Android.Bluetooth.BluetoothGatt p0, global::Java.Util.UUID p1, byte[] p2, int p3, int p4, global::System.Collections.Generic.IList <global::Android.Bluetooth.BluetoothGattDescriptor> p5, int p6)
        {
            if (id_櫯_Landroid_bluetooth_BluetoothGatt_Ljava_util_UUID_arrayBIILjava_util_List_I == IntPtr.Zero)
            {
                id_櫯_Landroid_bluetooth_BluetoothGatt_Ljava_util_UUID_arrayBIILjava_util_List_I = JNIEnv.GetMethodID(class_ref, "櫯", "(Landroid/bluetooth/BluetoothGatt;Ljava/util/UUID;[BIILjava/util/List;I)V");
            }
            IntPtr native_p2 = JNIEnv.NewArray(p2);
            IntPtr native_p5 = global::Android.Runtime.JavaList <global::Android.Bluetooth.BluetoothGattDescriptor> .ToLocalJniHandle(p5);

            try {
                JValue *__args = stackalloc JValue [7];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(native_p2);
                __args [3] = new JValue(p3);
                __args [4] = new JValue(p4);
                __args [5] = new JValue(native_p5);
                __args [6] = new JValue(p6);
                JNIEnv.CallVoidMethod(Handle, id_櫯_Landroid_bluetooth_BluetoothGatt_Ljava_util_UUID_arrayBIILjava_util_List_I, __args);
            } finally {
                if (p2 != null)
                {
                    JNIEnv.CopyArray(native_p2, p2);
                    JNIEnv.DeleteLocalRef(native_p2);
                }
                JNIEnv.DeleteLocalRef(native_p5);
            }
        }
Esempio n. 24
0
        public static unsafe global::System.Collections.Generic.IList <global::Com.Mikepenz.Fastadapter.IItem> GetAllItems(global::Com.Mikepenz.Fastadapter.FastAdapter p0)
        {
            if (id_getAllItems_Lcom_mikepenz_fastadapter_FastAdapter_ == IntPtr.Zero)
            {
                id_getAllItems_Lcom_mikepenz_fastadapter_FastAdapter_ = JNIEnv.GetStaticMethodID(class_ref, "getAllItems", "(Lcom/mikepenz/fastadapter/FastAdapter;)Ljava/util/List;");
            }
            try {
                JValue *__args = stackalloc JValue [1];
                __args [0] = new JValue(p0);
                global::System.Collections.Generic.IList <global::Com.Mikepenz.Fastadapter.IItem> __ret = global::Android.Runtime.JavaList <global::Com.Mikepenz.Fastadapter.IItem> .FromJniHandle(JNIEnv.CallStaticObjectMethod(class_ref, id_getAllItems_Lcom_mikepenz_fastadapter_FastAdapter_, __args), JniHandleOwnership.TransferLocalRef);

                return(__ret);
            } finally {
            }
        }
Esempio n. 25
0
 // void Append(T value)
 public static void Append <T>(
     global::System.Collections.Generic.IList <T> _this,
     T value)
 {
     _this.Add(value);
 }
Esempio n. 26
0
        public static unsafe void AddAllSubItems(global::Com.Mikepenz.Fastadapter.IItem p0, global::System.Collections.Generic.IList <global::Com.Mikepenz.Fastadapter.IItem> p1)
        {
            if (id_addAllSubItems_Lcom_mikepenz_fastadapter_IItem_Ljava_util_List_ == IntPtr.Zero)
            {
                id_addAllSubItems_Lcom_mikepenz_fastadapter_IItem_Ljava_util_List_ = JNIEnv.GetStaticMethodID(class_ref, "addAllSubItems", "(Lcom/mikepenz/fastadapter/IItem;Ljava/util/List;)V");
            }
            IntPtr native_p1 = global::Android.Runtime.JavaList <global::Com.Mikepenz.Fastadapter.IItem> .ToLocalJniHandle(p1);

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(native_p1);
                JNIEnv.CallStaticVoidMethod(class_ref, id_addAllSubItems_Lcom_mikepenz_fastadapter_IItem_Ljava_util_List_, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_p1);
            }
        }
Esempio n. 27
0
 public static global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana GetLinkToPrototools(global::ce.GEB_NGN_PCR_Practica1.Ventana ventanaInstance)
 {
     global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana>(ventanaInstance, global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana.VentanaDomainRoleId);
     global::System.Diagnostics.Debug.Assert(links.Count <= 1, "Multiplicity of Ventana not obeyed.");
     if (links.Count == 0)
     {
         return(null);
     }
     else
     {
         return(links[0]);
     }
 }
        public unsafe global::System.Collections.Generic.IList <global::Com.Qcl.VH.Content.ˮ͈> 鷭(global::Android.Bluetooth.BluetoothSocket p0, bool p1, bool p2)
        {
            if (id_鷭_Landroid_bluetooth_BluetoothSocket_ZZ == IntPtr.Zero)
            {
                id_鷭_Landroid_bluetooth_BluetoothSocket_ZZ = JNIEnv.GetMethodID(class_ref, "鷭", "(Landroid/bluetooth/BluetoothSocket;ZZ)Ljava/util/List;");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);
                global::System.Collections.Generic.IList <global::Com.Qcl.VH.Content.ˮ͈> __ret = global::Android.Runtime.JavaList <global::Com.Qcl.VH.Content.ˮ͈> .FromJniHandle(JNIEnv.CallObjectMethod(Handle, id_鷭_Landroid_bluetooth_BluetoothSocket_ZZ, __args), JniHandleOwnership.TransferLocalRef);

                return(__ret);
            } finally {
            }
        }
Esempio n. 29
0
 public static global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana GetLink(global::ce.GEB_NGN_PCR_Practica1.Prototools source, global::ce.GEB_NGN_PCR_Practica1.Ventana target)
 {
     global::System.Collections.Generic.IList <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana> links = DslModeling::DomainRoleInfo.GetElementLinks <global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana>(source, global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana.PrototoolsDomainRoleId);
     foreach (global::ce.GEB_NGN_PCR_Practica1.PrototoolsHasVentana link in links)
     {
         if (target.Equals(link.Ventana))
         {
             return(link);
         }
     }
     return(null);
 }
Esempio n. 30
0
        /// <summary>
        /// Initialize the collection of decorators associated with this shape type.  This method also
        /// creates shape fields for outer decorators, because these are not part of the shape fields collection
        /// associated with the shape, so they must be created here rather than in InitializeShapeFields.
        /// </summary>
        protected override void InitializeDecorators(global::System.Collections.Generic.IList <DslDiagrams::ShapeField> shapeFields, global::System.Collections.Generic.IList <DslDiagrams::Decorator> decorators)
        {
            base.InitializeDecorators(shapeFields, decorators);

            DslDiagrams::TextField field1 = new DslDiagrams::TextField("ReturnType");

            field1.DefaultText      = global::Sawczyn.Sequencer.SequencerDomainModel.SingletonResourceManager.GetString("ResultConnectorReturnTypeDefaultText");
            field1.DefaultFocusable = true;
            field1.DefaultAutoSize  = true;
            field1.AnchoringBehavior.MinimumHeightInLines     = 1;
            field1.AnchoringBehavior.MinimumWidthInCharacters = 1;
            field1.DefaultAccessibleState = global::System.Windows.Forms.AccessibleStates.Invisible;
            DslDiagrams::Decorator decorator1 = new DslDiagrams::ConnectorDecorator(field1, DslDiagrams::ConnectorDecoratorPosition.SourceBottom, DslDiagrams::PointD.Empty);

            decorators.Add(decorator1);
        }