Пример #1
0
        public Connection()
        {
            string password = "";

            InitializeComponent();

            systemInfo.Text = IBMi.GetSystem().Replace(". ", ".\n");

            host.Text = IBMi.CurrentSystem.GetValue("system");
            user.Text = IBMi.CurrentSystem.GetValue("username");

            password  = IBMi.CurrentSystem.GetValue("password");
            password  = Password.Decode(password);
            pass.Text = password;

            fetchJobLog.Checked = (IBMi.CurrentSystem.GetValue("fetchJobLog") == "true");

            dataConnectionType.SelectedItem = IBMi.CurrentSystem.GetValue("transferMode");
            ftpes.Checked = (Program.Config.GetValue("useFTPES") == "true");

            homeDir.Text  = IBMi.CurrentSystem.GetValue("homeDir");
            buildLib.Text = IBMi.CurrentSystem.GetValue("buildLib");

            selectedFont.SelectedItem   = IBMi.CurrentSystem.GetValue("FONT");
            cur_size.Text               = IBMi.CurrentSystem.GetValue("ZOOM");
            indent_size.Value           = decimal.Parse(IBMi.CurrentSystem.GetValue("INDENT_SIZE"));
            show_spaces.SelectedItem    = IBMi.CurrentSystem.GetValue("SHOW_SPACES");
            highlight_line.SelectedItem = IBMi.CurrentSystem.GetValue("HIGHLIGHT_CURRENT_LINE");

            prntLib.Text = IBMi.CurrentSystem.GetValue("printerLib");
            prntObj.Text = IBMi.CurrentSystem.GetValue("printerObj");

            validACS.Checked = (Program.Config.GetValue("acspath") != "false");
            darkMode.Checked = (Program.Config.GetValue("darkmode") == "true");
        }