Exemplo n.º 1
0
        /// <summary>
        /// Create AVD
        /// </summary>
        private void OnOkClick(object sender, EventArgs e)
        {
            var address = tbAddress.Text;
            UserPreferences.Preferences.DeviceConnectionAddress = address;
            UserPreferences.SaveNow();

            var control = new ConnectingTcpipControl(address, tbPort.Value.ToString());
            control.Close += (s, x) => {
                modalPanelContainer.CloseModalPanel(control);
                DialogResult = DialogResult.OK;
            };
            control.Cancel += OnCancelClick;
            ClientSize = control.Size;
            modalPanelContainer.ShowModalPanel(control);
            control.Start();
            cmdOK.Enabled = false;
            cmdCancel.Enabled = false;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create AVD
        /// </summary>
        private void OnOkClick(object sender, EventArgs e)
        {
            var address = tbAddress.Text;

            UserPreferences.Preferences.DeviceConnectionAddress = address;
            UserPreferences.SaveNow();

            var control = new ConnectingTcpipControl(address, tbPort.Value.ToString());

            control.Close += (s, x) => {
                modalPanelContainer.CloseModalPanel(control);
                DialogResult = DialogResult.OK;
            };
            control.Cancel += OnCancelClick;
            ClientSize      = control.Size;
            modalPanelContainer.ShowModalPanel(control);
            control.Start();
            cmdOK.Enabled     = false;
            cmdCancel.Enabled = false;
        }