예제 #1
0
        /// <summary>
        /// Initialize pertinent settings
        /// </summary>
        /// <param name="options">All git global settings</param>
        public void Init(string[] options)
        {
            textBoxUserName.Text  = ClassConfig.GetGlobal("user.name");
            textBoxUserEmail.Text = ClassConfig.GetGlobal("user.email");

            // Add the dirty (modified) value changed helper
            textBoxUserName.TextChanged  += ControlDirtyHelper.ControlDirty;
            textBoxUserEmail.TextChanged += ControlDirtyHelper.ControlDirty;
        }
예제 #2
0
 /// <summary>
 /// Initialize pertinent settings
 /// </summary>
 /// <param name="options">All git global settings</param>
 public void Init(string[] options)
 {
     // Initialize the line endings radio buttons
     crlf = ClassConfig.GetGlobal("core.autocrlf");
     if (crlf == "true")
     {
         radio1.Checked = true;
     }
     if (crlf == "input")
     {
         radio2.Checked = true;
     }
     if (crlf == "false")
     {
         radio3.Checked = true;
     }
 }
예제 #3
0
        /// <summary>
        /// Initialize pertinent settings
        /// </summary>
        /// <param name="options">All git global settings</param>
        public void Init(string[] options)
        {
            string value = ClassConfig.GetGlobal("core.ignorecase");

            checkBoxIgnoreCase.Checked      = (value.ToLower() == "true") ? true : false;
            checkBoxShowDotGit.Checked      = Properties.Settings.Default.ShowDotGitFolders;
            checkBoxDeepScan.Checked        = Properties.Settings.Default.RepoDeepScan;
            checkBoxRefreshOnChange.Checked = Properties.Settings.Default.RefreshOnChange;
            checkBoxReaddOnChange.Checked   = Properties.Settings.Default.ReaddOnChange;
            checkBoxScanTabs.Checked        = Properties.Settings.Default.WarnOnTabs;
            textBoxScanExt.Text             = Properties.Settings.Default.WarnOnTabsExt;

            // Add the dirty (modified) value changed helper
            checkBoxIgnoreCase.CheckStateChanged      += ControlDirtyHelper.ControlDirty;
            checkBoxRefreshOnChange.CheckStateChanged += ControlDirtyHelper.ControlDirty;
            checkBoxReaddOnChange.CheckStateChanged   += ControlDirtyHelper.ControlDirty;
            checkBoxScanTabs.CheckStateChanged        += ControlDirtyHelper.ControlDirty;
            textBoxScanExt.TextChanged += ControlDirtyHelper.ControlDirty;
        }
예제 #4
0
 /// <summary>
 /// Copy global user name and email address settings
 /// </summary>
 private void CopyGlobal(object sender, System.EventArgs e)
 {
     textBoxUserName.Text  = ClassConfig.GetGlobal("user.name");
     textBoxUserEmail.Text = ClassConfig.GetGlobal("user.email");
 }