Beispiel #1
0
        private void DisplaySettings(Properties.Settings settings)
        {
            vssDirTextBox.Text        = settings.VssDirectory;
            vssProjectTextBox.Text    = settings.VssProject;
            excludeTextBox.Text       = settings.VssExcludePaths;
            outDirTextBox.Text        = settings.OutDirectory;
            domainTextBox.Text        = settings.DefaultEmailDomain;
            commentTextBox.Text       = settings.DefaultComment;
            logTextBox.Text           = settings.LogFile;
            transcodeCheckBox.Checked = settings.TranscodeComments;
            resetRepoCheckBox.Checked = settings.ResetRepo || settings.ContinueSync;
            tryGenerateCommitMessageCheckBox.Checked = settings.TryGenerateCommitMessage;
            forceAnnotatedCheckBox.Checked           = settings.ForceAnnotatedTags;
            anyCommentUpDown.Value     = settings.AnyCommentSeconds;
            sameCommentUpDown.Value    = settings.SameCommentSeconds;
            svnRepoTextBox.Text        = settings.SvnRepo;
            svnProjectPathTextBox.Text = settings.SvnProjectPath;
            svnUserTextBox.Text        = String.IsNullOrEmpty(settings.SvnUser) ?
                                         System.Environment.UserName : settings.SvnUser;
            svnPasswordTextBox.Text           = settings.SvnPassword;
            svnStandardLayoutCheckBox.Checked = settings.SvnStandardLayout;
            svnTrunkTextBox.Text      = settings.SvnTrunk;
            svnTagsTextBox.Text       = settings.SvnTags;
            svnBranchesTextBox.Text   = settings.SvnBranches;
            ignoreFile.Text           = settings.GitFirstCommitIgnoreFile;
            ProjectsFileLocation.Text = settings.ProjectsFileLocation;
            attributesFile.Text       = settings.GitFirstCommitAttributesFile;
            userName.Text             = settings.GitFirstCommitUserName;
            userEmail.Text            = settings.GitFirstCommitUserMail;
            initialComment.Text       = settings.GitFirstCommitComment;
            RemovePathTextBox.Text    = settings.RemovePath;
            FolderBeforeLabel.Checked = settings.FolderBeforeLabel;
            UseProjectsFile.Checked   = settings.UseProjectsFile;
            int index = 0;
            int count = vcsSetttingsTabs.TabPages.Count;

            for (int i = 0; i < count; i++)
            {
                if (vcsSetttingsTabs.TabPages[i].Text.Equals(settings.VcsType))
                {
                    index = i;
                    break;
                }
            }
            vcsSetttingsTabs.SelectTab(index);
        }
Beispiel #2
0
        private void DisplaySettings(Properties.Settings settings)
        {
            vssDirTextBox.Text             = settings.VssDirectory;
            vssProjectTextBox.Text         = settings.VssProject;
            excludeTextBox.Text            = settings.VssExcludePaths;
            outDirTextBox.Text             = settings.OutDirectory;
            domainTextBox.Text             = settings.DefaultEmailDomain;
            logTextBox.Text                = settings.LogFile;
            transcodeCheckBox.Checked      = settings.TranscodeComments;
            resetRepoCheckBox.Checked      = settings.ResetRepo || settings.ContinueSync;
            forceAnnotatedCheckBox.Checked = settings.ForceAnnotatedTags;
            anyCommentUpDown.Value         = settings.AnyCommentSeconds;
            sameCommentUpDown.Value        = settings.SameCommentSeconds;
            svnRepoTextBox.Text            = settings.SvnRepo;
            svnProjectPathTextBox.Text     = settings.SvnProjectPath;
            svnUserTextBox.Text            = String.IsNullOrEmpty(settings.SvnUser) ?
                                             System.Environment.UserName : settings.SvnUser;
            svnPasswordTextBox.Text           = settings.SvnPassword;
            svnStandardLayoutCheckBox.Checked = settings.SvnStandardLayout;
            svnTrunkTextBox.Text    = settings.SvnTrunk;
            svnTagsTextBox.Text     = settings.SvnTags;
            svnBranchesTextBox.Text = settings.SvnBranches;

            int index = 0;
            int count = vcsSetttingsTabs.TabPages.Count;

            for (int i = 0; i < count; i++)
            {
                if (vcsSetttingsTabs.TabPages[i].Text.Equals(settings.VcsType))
                {
                    index = i;
                    break;
                }
            }
            vcsSetttingsTabs.SelectTab(index);
        }
Beispiel #3
0
 private void UpdateSettings(Properties.Settings settings)
 {
     settings.VssDirectory             = vssDirTextBox.Text;
     settings.VssProject               = vssProjectTextBox.Text;
     settings.VssExcludePaths          = excludeTextBox.Text;
     settings.OutDirectory             = outDirTextBox.Text;
     settings.DefaultEmailDomain       = domainTextBox.Text;
     settings.DefaultComment           = commentTextBox.Text;
     settings.LogFile                  = logTextBox.Text;
     settings.TranscodeComments        = transcodeCheckBox.Checked;
     settings.ResetRepo                = resetRepoCheckBox.Checked;
     settings.TryGenerateCommitMessage = tryGenerateCommitMessageCheckBox.Checked;
     settings.ContinueSync             = continueSyncCheckBox.Checked;
     settings.ForceAnnotatedTags       = forceAnnotatedCheckBox.Checked;
     settings.AnyCommentSeconds        = (int)anyCommentUpDown.Value;
     settings.SameCommentSeconds       = (int)sameCommentUpDown.Value;
     settings.VcsType                  = vcsSetttingsTabs.SelectedTab.Text;
     settings.SvnRepo                  = svnRepoTextBox.Text;
     settings.SvnProjectPath           = svnProjectPathTextBox.Text;
     settings.SvnUser                  = System.Environment.UserName.Equals(svnUserTextBox.Text) ?
                                         "" : svnUserTextBox.Text;
     settings.SvnPassword                  = svnPasswordTextBox.Text;
     settings.SvnStandardLayout            = svnStandardLayoutCheckBox.Checked;
     settings.SvnTrunk                     = svnTrunkTextBox.Text;
     settings.SvnTags                      = svnTagsTextBox.Text;
     settings.SvnBranches                  = svnBranchesTextBox.Text;
     settings.GitFirstCommitIgnoreFile     = ignoreFile.Text;
     settings.GitFirstCommitAttributesFile = attributesFile.Text;
     settings.GitFirstCommitUserName       = userName.Text;
     settings.GitFirstCommitUserMail       = userEmail.Text;
     settings.GitFirstCommitComment        = initialComment.Text;
     settings.RemovePath                   = RemovePathTextBox.Text;
     settings.FolderBeforeLabel            = FolderBeforeLabel.Checked;
     settings.ProjectsFileLocation         = ProjectsFileLocation.Text;
     settings.UseProjectsFile              = UseProjectsFile.Checked;
 }