Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            regSettings = new RegSettings();
            cboColors.Items.Clear();
            cboColors.Items.Insert(0, "8 Bit 256 colors");
            cboColors.Items.Insert(1, "16 Bit HiColor");

            txtComputer.Text = regSettings._sComputer;
            txtUserName.Text = regSettings._sUserName;
            txtPassword.Text = regSettings._sPassword;

            chkSavePassword.Checked = regSettings._bSavePassword;
            txtDomain.Text          = regSettings._sDomain;

            if (regSettings._iColorDepth == 1)
            {
                cboColors.SelectedIndex = 0;
            }
            else
            {
                cboColors.SelectedIndex = 1;
            }

            chkFullScreen.Checked       = regSettings._bFullScreen;
            chkFitRemoteDesktop.Checked = regSettings._bFitToScreen;

            txtStartOnExit.Text = regSettings._sStartOnExit;
            txtArguments.Text   = regSettings._sExecArgs;

            cboEmulationMode.Items.Clear();
            cboEmulationMode.Items.Insert(0, "Use mouse click");
            cboEmulationMode.Items.Insert(1, "Use keyboard");

            if (regSettings._bUseMouseClick)
            {
                cboEmulationMode.SelectedIndex = 0;
            }
            else
            {
                cboEmulationMode.SelectedIndex = 1;
            }

            int iSett = (int)regSettings._eAudioRedirectionMode;

            cbo_RemoteDesktopSound.Items.Clear();
            cbo_RemoteDesktopSound.Items.Insert(0, "Mute");
            cbo_RemoteDesktopSound.Items.Insert(1, "Play on remote computer");
            cbo_RemoteDesktopSound.Items.Insert(2, "Play on this device");

            cbo_RemoteDesktopSound.SelectedIndex = iSett;

            iSett = (int)regSettings._eDeviceStorage;
            cbo_DeviceStorage.Items.Clear();
            cbo_DeviceStorage.Items.Insert(0, "Do not map to remote machine");
            cbo_DeviceStorage.Items.Insert(1, "Map to remote machine");

            cbo_DeviceStorage.SelectedIndex = iSett;

            rdmSett               = new RDMKeepBusySettings();
            numericX.Value        = rdmSett._lineX;
            numericY.Value        = rdmSett._lineY;
            numericLen.Value      = rdmSett._lineLen;
            numericWidth.Value    = rdmSett._lineWidth;
            numericInterval.Value = rdmSett._sleepTime;
            if (rdmSett._useKey == 1)
            {
                chkKey.Checked = true;
            }
            else
            {
                chkKey.Checked = false;
            }
            if (rdmSett._useMouse == 1)
            {
                chkMouse.Checked = true;
            }
            else
            {
                chkMouse.Checked = false;
            }

            enableChangeEvent();
        }
Exemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();

            regSettings = new RegSettings();
            cboColors.Items.Clear();
            cboColors.Items.Insert(0, "8 Bit 256 colors");
            cboColors.Items.Insert(1, "16 Bit HiColor");

            txtComputer.Text = regSettings._sComputer;
            txtUserName.Text = regSettings._sUserName;
            txtPassword.Text = regSettings._sPassword;

            chkSavePassword.Checked = regSettings._bSavePassword;
            txtDomain.Text = regSettings._sDomain;

            if (regSettings._iColorDepth == 1)
                cboColors.SelectedIndex = 0;
            else
                cboColors.SelectedIndex = 1;

            chkFullScreen.Checked = regSettings._bFullScreen;
            chkFitRemoteDesktop.Checked = regSettings._bFitToScreen;

            txtStartOnExit.Text = regSettings._sStartOnExit;
            txtArguments.Text = regSettings._sExecArgs;

            cboEmulationMode.Items.Clear();
            cboEmulationMode.Items.Insert(0, "Use mouse click");
            cboEmulationMode.Items.Insert(1, "Use keyboard");

            if (regSettings._bUseMouseClick)
                cboEmulationMode.SelectedIndex = 0;
            else
                cboEmulationMode.SelectedIndex = 1;

            int iSett = (int)regSettings._eAudioRedirectionMode;
            cbo_RemoteDesktopSound.Items.Clear();
            cbo_RemoteDesktopSound.Items.Insert(0, "Mute");
            cbo_RemoteDesktopSound.Items.Insert(1, "Play on remote computer");
            cbo_RemoteDesktopSound.Items.Insert(2, "Play on this device");

            cbo_RemoteDesktopSound.SelectedIndex = iSett;

            iSett = (int)regSettings._eDeviceStorage;
            cbo_DeviceStorage.Items.Clear();
            cbo_DeviceStorage.Items.Insert(0, "Do not map to remote machine");
            cbo_DeviceStorage.Items.Insert(1, "Map to remote machine");

            cbo_DeviceStorage.SelectedIndex = iSett;

            rdmSett = new RDMKeepBusySettings();
            numericX.Value = rdmSett._lineX;
            numericY.Value = rdmSett._lineY;
            numericLen.Value = rdmSett._lineLen;
            numericWidth.Value = rdmSett._lineWidth;
            numericInterval.Value = rdmSett._sleepTime;
            if (rdmSett._useKey==1)
                chkKey.Checked = true;
            else
                chkKey.Checked = false;
            if (rdmSett._useMouse == 1)
                chkMouse.Checked = true;
            else
                chkMouse.Checked = false;

            enableChangeEvent();
        }