private void InitConfig(int tabIndex)
 {
     tabControlConfig.SelectedIndex = tabIndex;
     chkTruncatePath.Checked        = RegConfig.Get <bool>("TruncatePath");
     chkAppDataTempFolder.Checked   = RegConfig.Get <bool>("AppDataTempFolder");
     chkNewProfile.Checked          = RegConfig.Get <bool>("ExecuteNewProfile");
     chkEnableIncludeFile.Checked   = RegConfig.Get <bool>("EnableIncludeFile");
     chkAutoUnbind.Checked          = RegConfig.Get <bool>("AutoUnbind");
     chkAutoSaveProfile.Checked     = RegConfig.Get <bool>("AutoSaveProfile");
 }
        private void InitSettings()
        {
            FileHelper.CheckAssociation();
            _iconListManager = new IconListManager(imageList16, IconReader.IconSize.Small);
            _intialDirectory = RegConfig.Get <string>("InitialDirectory");

            toolStripUploader.Visible       = hideToolbarToolStripMenuItem.Checked = RegConfig.Get <bool>("Toolbar");
            statusStripUploader.Visible     = hideStatusbarToolStripMenuItem.Checked = RegConfig.Get <bool>("Statusbar");
            splitContainer2.Panel2Collapsed = !(logsToolStripMenuItem.Checked = RegConfig.Get <bool>("Logs&Details"));
            splitContainer1.Panel1Collapsed = !(profileExplorerToolStripMenuItem.Checked = RegConfig.Get <bool>("ProfileExplorer"));
        }
Esempio n. 3
0
        static void Main()
        {
            bool xpLook = RegConfig.Get <bool>("XPLook");

            if (!xpLook)
            {
                Application.EnableVisualStyles();
            }
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new PasswordForm());
        }
Esempio n. 4
0
        public static void CheckAssociation()
        {
            string ext    = "auudb";
            string logExt = RegConfig.Get <string>(ext);

            if (string.IsNullOrEmpty(logExt))
            {
                string logIcon = Path.Combine(Application.StartupPath, "Uploader.Database.ico");
                RegConfig.Set <string>(ext, logIcon);
                FileAssociation fa = new FileAssociation();
                fa.Extension   = ext;
                fa.ContentType = "";
                fa.Description = "App Updates Database ";
                fa.ProgramId   = Application.ProductName + "." + ext;
                fa.IconPath    = logIcon;

                fa.AddCommand("open", Application.ExecutablePath + " %1");
                fa.Create();
            }
        }
 private void InitializeSettings()
 {
     RegConfig.Set <bool>("Encrypt", _encryptContent);
     _hidePassword = RegConfig.Get <bool>("HidePassword");
     _showPanel    = RegConfig.Get <bool>("ShowPanel");
     splitContainerPwd.Panel2Collapsed = true;
     menuHidePwd.Checked    = _hidePassword;
     toolStripPwd.Visible   = menuToolbar.Checked = RegConfig.Get <bool>("Toolbar");
     statusStripPwd.Visible = menuStatus.Checked = RegConfig.Get <bool>("Statusbar");
     menuXPLook.Checked     = RegConfig.Get <bool>("XPLook");
     if (menuXPLook.Checked)
     {
         menuStrip1.RenderMode   = ToolStripRenderMode.System;
         toolStripPwd.RenderMode = ToolStripRenderMode.System;
     }
     else
     {
         menuStrip1.RenderMode   = ToolStripRenderMode.Professional;
         toolStripPwd.RenderMode = ToolStripRenderMode.Professional;
     }
 }
 private void InitOptions()
 {
     chkEncryptContent.Checked = RegConfig.Get <bool>("Encrypt");
     chkHidePassword.Checked   = RegConfig.Get <bool>("HidePassword");
     chkShowDetails.Checked    = RegConfig.Get <bool>("ShowPanel");
 }