Exemplo n.º 1
0
        private void BtnStartApp1_Click(object sender, EventArgs e)
        {
            Wr("exeApp1.Start = ");
            AppExtControl aec = new AppExtControl("", AppExtOperation.Connect, 10000, 2000);

            Wr(PackApp1.Start(txbApp1.Text, "", aec).ToString(), false);
        }
Exemplo n.º 2
0
        private void BtnTest1_Click(object sender, EventArgs e)
        {
            Random rnd   = new Random();
            int    delta = 0;
            int    t;

            StopFlag = false;

            while (!StopFlag)
            {
                delta = rnd.Next(20000, 300000);
                Wr(DateTime.Now.ToString() + " (" + delta.ToString() + ") PackApp1.Start = ");
                AppExtControl aec = new AppExtControl("EthDcrMiner64.exe", AppExtOperation.Kill, 10000, 2000);
                Wr(PackApp1.Start(txbPack1.Text, "", aec).ToString(), false);

                t = Environment.TickCount;
                while (((Environment.TickCount - t) < delta) && (!StopFlag))
                {
                    Application.DoEvents();
                }

                delta = rnd.Next(50000, 100000);
                Wr(DateTime.Now.ToString() + " (" + delta.ToString() + ") PackApp1.Close(2000) = ");
                Wr(PackApp1.Close(2000).ToString(), false);

                t = Environment.TickCount;
                while (((Environment.TickCount - t) < delta) && (!StopFlag))
                {
                    Application.DoEvents();
                }
            }
        }
Exemplo n.º 3
0
        private void BtnStartPack1_Click(object sender, EventArgs e)
        {
            Wr("PackApp1.Start = ");
            AppExtControl aec = new AppExtControl("EthDcrMiner64.exe", AppExtOperation.Kill, 10000, 2000);

            Wr(PackApp1.Start(txbPack1.Text, "", aec).ToString(), false);
        }
Exemplo n.º 4
0
 private void BtnStopPack1_Click(object sender, EventArgs e)
 {
     Wr("PackApp1.Close(2000) = ");
     Wr(PackApp1.Close(2000).ToString(), false);
 }