Exemplo n.º 1
0
        public static void Load()
        {
            AppFolderName = Ext.GetConfigString("AppFolderName");
            AppExeName    = Ext.GetConfigString("AppExeName");

            UpdateUrl  = Ext.GetConfigString("UpdateUrl");
            UpdaterUrl = Ext.GetConfigString("UpdaterUrl");

            Proxy         = Ext.GetConfigBool("UseCurrentProxy");
            ProxyUrl      = Ext.GetConfigString("ProxyUrl");
            ProxyUserName = Ext.GetConfigString("ProxyUserName");
            ProxyPassword = Ext.GetConfigString("ProxyPassword");
        }
Exemplo n.º 2
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            txtDirectoryUpdate.Text      = Ext.GetConfigString("DirectoryUpdate");
            numDirectoryLevel.Value      = Ext.GetConfigInt32("DirectoryLevel");
            txtDirectoryDestination.Text = Ext.GetConfigString("DirectoryDestination");
            if (txtDirectoryUpdate.Text.Trim().Length > 0 && Directory.Exists(txtDirectoryUpdate.Text))
            {
                FillFiles();
            }
            cmbAppExeName.Text = Ext.GetConfigString("AppExeName");
            if (!string.IsNullOrWhiteSpace(Ext.GetConfigString("AppName")))
            {
                txtApplicationName.Text = Ext.GetConfigString("AppName");                                                            //This must be under cmbAppExeName.Text = ConfigurationManager.AppSettings["AppExeName"];
            }
            txtCompressFolderName.Text = Ext.GetConfigString("CompressFolderName");
            if (!string.IsNullOrWhiteSpace(Ext.GetConfigString("Compress")))
            {
                cmbCompress.Text = Ext.GetConfigString("Compress");
            }
            chkDeleteBin.Checked = Ext.GetConfigBool("DeleteBin");

            IsChanged = false;
        }