private void SaveConfiguration() { ConfigTool.CreateConfig(Global.ConfigFile); SortedList <string, object> conf = new SortedList <string, object>(); conf.Add(Global.FieldOpacity, this.Opacity); conf.Add(Global.FieldGridWidth, this.s); conf.Add(Global.FieldOrder, this.is1248 ? Global.Order1248 : Global.Order8421); ConfigTool.ExportConfig(Global.ConfigFile, conf, Global.CatagoryAppearance); conf.Clear(); conf.Add(Global.FieldLocation, this.Left + "," + this.Top); conf.Add(Global.FieldAlwaysOnTop, this.onTop); ConfigTool.ExportConfig(Global.ConfigFile, conf, Global.CatagoryLocation); conf.Clear(); conf.Add(Global.FieldBoxType, this.drawType); conf.Add(Global.FieldBoxSize, this.w); conf.Add(Global.FieldBoxColor, ToRGB(Global.ClockColor)); conf.Add(Global.FieldShadowColor, ToRGB(Global.ShadowColor)); ConfigTool.ExportConfig(Global.ConfigFile, conf, Global.CatagoryBox); }