Пример #1
0
        public static void LoadColorTable(string filename)
        {
            var ser = new JavaScriptSerializer();

            var content = File.ReadAllText(filename, Encoding.UTF8);

            try
            {
                _colorFile = ser.Deserialize <ColorFile>(content);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.ToString());
            }
        }
Пример #2
0
        public static void LoadColorTable(string filename)
        {
            var ser = new JavaScriptSerializer();

                 var content = File.ReadAllText(filename, Encoding.UTF8);

                 try
                 {
                     _colorFile = ser.Deserialize<ColorFile>(content);
                 }
                 catch (Exception e)
                 {
                     MessageBox.Show(e.ToString());
                 }
        }