Esempio n. 1
0
        private static void SaveUIOptions()
        {
            XmlItem xi = Root.FindItem("UIOptions");

            xi.SetProp("DisableHotkeys", Converter.ToString(DisableHotkeys));
            xi.SetProp("DisableBacklight", Converter.ToString(DisableBacklight));
        }
Esempio n. 2
0
        private static void SaveCompilerSettings()
        {
            XmlItem xi = Root.FindItem("CompilerSettings");

            xi.SetProp("Placeholder", CompilerSettings.Placeholder);
            xi.SetProp("ExceptionBehaviour", Converter.ToString(CompilerSettings.ExceptionBehaviour));
        }
Esempio n. 3
0
 /// <summary>
 /// Writes an enumeration property.
 /// </summary>
 /// <param name="name">Property name.</param>
 /// <param name="value">Property value.</param>
 public void WriteValue(string name, object value)
 {
     curRoot.SetProp(PropName(name), value != null ? Converter.ToString(value) : "null");
     //FText.Append(PropName(name));
     //FText.Append("=\"");
     //FText.Append(value != null ? Converter.ToXml(value) : "null");
     //FText.Append("\" ");
 }
Esempio n. 4
0
        /// <summary>
        /// Determines if two objects are equal.
        /// </summary>
        /// <param name="obj1">The first object.</param>
        /// <param name="obj2">The second object.</param>
        /// <returns><b>true</b> if objects will be serialized to the same value.</returns>
        public bool AreEqual(object obj1, object obj2)
        {
            if (obj1 == obj2)
            {
                return(true);
            }
            if (obj1 == null || obj2 == null)
            {
                return(false);
            }
            string s1 = Converter.ToString(obj1);
            string s2 = Converter.ToString(obj2);

            return(s1 == s2);
        }
Esempio n. 5
0
        private static void SaveUIStyle()
        {
            XmlItem xi = Root.FindItem("UIStyle");

            xi.SetProp("Style", Converter.ToString(UIStyle));
        }