Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            log_ = new Form3();
            log_.Show();

            try
            {
                conn_ = new Connection("127.0.0.1", 10000);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Can't connect to remote port.\r\n\r\n" + ex.ToString());
                Close();
                return;
            }

            basicIdeCtl1.Synchronized = true;
            timer1.Enabled = true;
        }
Exemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Form2 form2 = new Form2();
            form2.ShowDialog();
            string server = form2.textBox1.Text;
            int.TryParse(form2.textBox2.Text, out target_);
            if (string.IsNullOrEmpty(server) || target_ == 0)
            {
                Close();
                return;
            }

            url_ = "http://" + server + "/DebugPortal.ashx";

            log_ = new Form3();
            log_.Show();

            // start synchronizing with the remote
            sync_id_ = (new Random()).Next(int.MaxValue);
            basicIdeCtl1.Synchronized = true;
            timer1.Enabled = true;
        }