예제 #1
0
파일: Form1.cs 프로젝트: revothuang/cppgm
        public Form1()
        {
            InitializeComponent();

            //--- initialize GUI
            this.button1.Enabled = false;
            this.button6.Enabled = false;
            this.checkBox1.Enabled = false;
            this.myScanner = null;

            this.myConfig = new XmlDocument();
            this.myConfigName = "vncscanner.xml";

            this.initialize_config();
        }
예제 #2
0
파일: Form1.cs 프로젝트: revothuang/cppgm
        private void button6_Click(object sender, EventArgs e)
        {
            this.comboBox1.Enabled = false;
            this.textBox1.Enabled = false;
            this.checkBox1.Enabled = false;
            this.button1.Enabled = false;
            this.button6.Enabled = false;

            myScanner = new Scanner(getTargetWindow(), Tuple.Create(cx1, cx2), Tuple.Create(cy1, cy2), mySavePath);
            myScanner.DebugEnable = this.checkBox1.Checked;
            int scanDelay = Int32.Parse(this.textBox1.Text);
            if (scanDelay < 1000)
            {
                scanDelay = 1000;
            }
            myScanner.ScanDelay = scanDelay;

            backgroundWorker1.RunWorkerAsync();
        }