Example #1
0
        private void readAll()
        {
            bFullScreen  = readBoolFromString("FullScreen");
            bFitToScreen = readBoolFromString("FitToScreen");

            sComputer = (string)rk.GetValue("Computer", "192.168.128.5");
            sUserName = (string)rk.GetValue("UserName", "rdesktop");
            sPassword = (string)rk.GetValue("Password", "rdesktop");
            sDomain   = (string)rk.GetValue("Domain", "");

            iDesktopHeight = (uint)readIntFromString("DesktopHeight");
            iDesktopWidth  = (uint)readIntFromString("DesktopWidth");

            sStartOnExit = (string)rk.GetValue("StartOnExit", "");
            sExecArgs    = (string)rk.GetValue("ExecArgs", "");

            bSavePassword  = readBoolFromString("SavePassword");
            sUseMouseClick = (string)rk.GetValue("UseMouseClick", "0");

            object o = rk.GetValue("ColorDepth", 1);

            iColorDepth = (uint)(int)o;

            int uiVal = (int)rk.GetValue("DeviceStorage", 0);

            eDeviceStorage = (enuDeviceStorage)uiVal;// Enum.Parse(typeof(enuDeviceStorage), uiVal.ToString(), true);

            uiVal = (int)rk.GetValue("AudioRedirectionMode", 0);
            eAudioRedirectionMode = (enuAudioRedirectionMode)uiVal;// Enum.Parse(typeof(enuAudioRedirectionMode), (string)o, true);
        }
        private void readAll()
        {
            bFullScreen = readBoolFromString("FullScreen");
            bFitToScreen = readBoolFromString("FitToScreen");

            sComputer = (string)rk.GetValue("Computer", "192.168.128.5");
            sUserName = (string)rk.GetValue("UserName", "rdesktop");
            sPassword = (string)rk.GetValue("Password", "rdesktop");
            sDomain = (string)rk.GetValue("Domain", "");

            iDesktopHeight = (uint)readIntFromString("DesktopHeight");
            iDesktopWidth = (uint)readIntFromString("DesktopWidth");

            sStartOnExit = (string)rk.GetValue("StartOnExit", "");
            sExecArgs = (string)rk.GetValue("ExecArgs", "");

            bSavePassword = readBoolFromString("SavePassword");
            sUseMouseClick = (string)rk.GetValue("UseMouseClick", "0");

            object o = rk.GetValue("ColorDepth", 1);
            iColorDepth = (uint)(int)o;

            int uiVal = (int)rk.GetValue("DeviceStorage", 0);
            eDeviceStorage = (enuDeviceStorage)uiVal;// Enum.Parse(typeof(enuDeviceStorage), uiVal.ToString(), true);

            uiVal = (int)rk.GetValue("AudioRedirectionMode", 0);
            eAudioRedirectionMode = (enuAudioRedirectionMode)uiVal;// Enum.Parse(typeof(enuAudioRedirectionMode), (string)o, true);
        }