You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CalculationControl.cs 620 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Globalization;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Windows.Forms;
  10. namespace Shadowsocks.View
  11. {
  12. public partial class CalculationControl : UserControl
  13. {
  14. public CalculationControl(string text, float value)
  15. {
  16. InitializeComponent();
  17. valueLabel.Text = text;
  18. factorNum.Value = (decimal) value;
  19. }
  20. public string Value => valueLabel.Text;
  21. public float Factor => (float) factorNum.Value;
  22. }
  23. }