コード例 #1
0
 private void Run()
 {
     if (MathPerm.isValidMN_giaDywnymo(this.m, this.n))
     {
         sw = System.Diagnostics.Stopwatch.StartNew();
         System.Func <int, int, int[][]> f = new Func <int, int, int[][]>(MathPerm.dywnymo);
         f.BeginInvoke(this.m, this.n, new AsyncCallback(this.telosYpologismos), f);
     }
     else
     {
         MessageBox.Show("invalid input");
     }
 }
コード例 #2
0
 public void checkValidMN(int m, int n)
 {
     this.btnGo.Enabled = MathPerm.isValidMN_giaDywnymo(m, n);
 }