private void SetColor(UISettingEntity data) { DialogResult DialogResult1 = this.colorDialog1.ShowDialog(); if (DialogResult1 != DialogResult.OK) { return; } Program.accountDataSet.参数.SetParaValue(data.SettingName, this.colorDialog1.Color.ToArgb().ToString()); }
private void SetFont(UISettingEntity data) { DialogResult DialogResult1 = this.fontDialog1.ShowDialog(); if (DialogResult1 != DialogResult.OK) { return; } using (System.IO.MemoryStream MemoryStream1 = new System.IO.MemoryStream()) { this.binaryFormatter.Serialize(MemoryStream1, this.fontDialog1.Font); Program.accountDataSet.参数.SetParaValue(data.SettingName, Convert.ToBase64String(MemoryStream1.ToArray())); } }