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 538 B

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