Esempio n. 1
0
 public Form1()
 {
     InitializeComponent();
     label3.Text = "From:";
     label2.Text = "To:";
     label1.Text = "Primes Calculator";
     button1.Text = "Calculate";
     _primeNumbers = new PrimeNumbers();
 }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     label3.Text = "From:";
     label2.Text = "To:";
     label1.Text = "Primes Calculator";
     button1.Text = "Calculate";
     button2.Text = "Cancel";
     _primeNumbers = new PrimeNumbers();
     _cancelTokenSource = new CancellationTokenSource();
 }
 public PrimesCounterForm()
 {
     InitializeComponent();
     _primeNumbers = new PrimeNumbers();
     _cancelTokenSource = new CancellationTokenSource();
 }