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()); } }
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()); } }