Exemplo n.º 1
0
        public void ReadXML(XmlTextReader xmltextreader, string endName)
        {
            bool done = false;
            string element = "";

            while (xmltextreader.Read() && !done)
            {
                if (xmltextreader.NodeType == XmlNodeType.Element)
                {
                    element = xmltextreader.Name;
                }
                else if (xmltextreader.NodeType == XmlNodeType.Text)
                {
                    switch (element)
                    {
                        case "fusionMode":
                            if (xmltextreader.Value == "merge")
                                fusionMode = FusionMode.Merge;
                            else if (xmltextreader.Value == "mark")
                                fusionMode = FusionMode.Mark;
                            break;
                    }
                }
                else if (xmltextreader.NodeType == XmlNodeType.EndElement)
                {
                    if (xmltextreader.Name == endName)
                    {
                        done = true;
                    }
                }
            }
        }
Exemplo n.º 2
0
 public virtual void SetFusionMode(FusionMode mode)
 {
     if (IsDirectBinding)
     {
         global::ApiDefinition.Messaging.void_objc_msgSend_UInt32(this.Handle, Selector.GetHandle("setFusionMode:"), (UInt32)mode);
     }
     else
     {
         global::ApiDefinition.Messaging.void_objc_msgSendSuper_UInt32(this.SuperHandle, Selector.GetHandle("setFusionMode:"), (UInt32)mode);
     }
 }
Exemplo n.º 3
0
        public void ReadXML(XmlTextReader xmltextreader, string endName)
        {
            bool   done    = false;
            string element = "";

            while (xmltextreader.Read() && !done)
            {
                if (xmltextreader.NodeType == XmlNodeType.Element)
                {
                    element = xmltextreader.Name;
                }
                else if (xmltextreader.NodeType == XmlNodeType.Text)
                {
                    switch (element)
                    {
                    case "fusionMode":
                        if (xmltextreader.Value == "merge")
                        {
                            fusionMode = FusionMode.Merge;
                        }
                        else if (xmltextreader.Value == "mark")
                        {
                            fusionMode = FusionMode.Mark;
                        }
                        break;
                    }
                }
                else if (xmltextreader.NodeType == XmlNodeType.EndElement)
                {
                    if (xmltextreader.Name == endName)
                    {
                        done = true;
                    }
                }
            }
        }
Exemplo n.º 4
0
 public FusionSettings()
 {
     fusionMode = FusionMode.Mark;
 }
Exemplo n.º 5
0
 public FusionSettings()
 {
     fusionMode = FusionMode.Mark;
 }