| | |
| | | } |
| | | } |
| | | |
| | | public List<double> FontSizeSource { get; set; } = new List<double> { |
| | | 10,11,12,13,14,15,16,17,18,19,20 |
| | | }; |
| | | |
| | | private Pie pie; |
| | | private string CountIniPath; |
| | | private bool IsOptRequirePassword; |
| | |
| | | { |
| | | pass = Convert.ToInt32(IniFileHelper.ReadIniData("Count", "Pass", "0", CountIniPath)); |
| | | fail = Convert.ToInt32(IniFileHelper.ReadIniData("Count", "Fail", "0", CountIniPath)); |
| | | var fontSize = Convert.ToDouble(IniFileHelper.ReadIniData("Config", "TableFontSize", "12", CountIniPath)); |
| | | this.Resources["tableFontSize"] = fontSize; |
| | | CbFontSize.SelectedItem = fontSize; |
| | | } |
| | | |
| | | private string csvDir; |
| | |
| | | { |
| | | |
| | | } |
| | | |
| | | private void CbFontSize_SelectionChanged(object sender, SelectionChangedEventArgs e) |
| | | { |
| | | try |
| | | { |
| | | if (e.AddedItems != null && e.AddedItems.Count > 0) |
| | | { |
| | | var fontSize = (double)e.AddedItems[0]; |
| | | this.Resources["tableFontSize"] = fontSize; |
| | | IniFileHelper.WriteIniData("Config", "TableFontSize", fontSize.ToString(), CountIniPath); |
| | | } |
| | | } |
| | | catch |
| | | { |
| | | } |
| | | } |
| | | } |
| | | } |