Пример #1
0
        public void Save()
        {
            Properties.Settings.Default.JiraBaseUrl = this.JiraBaseUrl;

            Properties.Settings.Default.TimerEditable    = this.TimerEditable;
            Properties.Settings.Default.AlwaysOnTop      = this.AlwaysOnTop;
            Properties.Settings.Default.MinimizeToTray   = this.MinimizeToTray;
            Properties.Settings.Default.PauseActiveTimer = this.PauseActiveTimer;
            Properties.Settings.Default.IssueCount       = this.IssueCount;
            Properties.Settings.Default.Username         = this.Username;
            if (this.Password != "")
            {
                Properties.Settings.Default.Password = DPAPI.Encrypt(this.Password);
            }
            else
            {
                Properties.Settings.Default.Password = "";
            }
            Properties.Settings.Default.RememberCredentials = this.RememberCredentials;
            Properties.Settings.Default.FirstRun            = this.FirstRun;
            Properties.Settings.Default.SaveTimerState      = (int)this.SaveTimerState;

            Properties.Settings.Default.CurrentFilter = this.CurrentFilter;

            Properties.Settings.Default.PersistedIssues = WriteIssues(this.PersistedIssues);

            Properties.Settings.Default.Save();
        }
Пример #2
0
        public void Save()
        {
            lock (_writeLock)
            {
                Properties.Settings.Default.JiraBaseUrl = this.JiraBaseUrl;

                Properties.Settings.Default.AlwaysOnTop        = this.AlwaysOnTop;
                Properties.Settings.Default.MinimizeToTray     = this.MinimizeToTray;
                Properties.Settings.Default.IssueCount         = this.IssueCount;
                Properties.Settings.Default.IncludeProjectName = this.IncludeProjectName;

                Properties.Settings.Default.Username = this.Username;
                if (this.Password != "")
                {
                    Properties.Settings.Default.Password = DPAPI.Encrypt(this.Password);
                }
                else
                {
                    Properties.Settings.Default.Password = "";
                }

                Properties.Settings.Default.FirstRun           = this.FirstRun;
                Properties.Settings.Default.SaveTimerState     = (int)this.SaveTimerState;
                Properties.Settings.Default.PauseOnSessionLock = (int)this.PauseOnSessionLock;
                Properties.Settings.Default.PostWorklogComment = (int)this.PostWorklogComment;

                Properties.Settings.Default.CurrentFilter = this.CurrentFilter;

                Properties.Settings.Default.PersistedIssues = WriteIssues(this.PersistedIssues);

                Properties.Settings.Default.AllowMultipleTimers = this.AllowMultipleTimers;

                Properties.Settings.Default.StartTransitions = this.StartTransitions;

                Properties.Settings.Default.LoggingEnabled = this.LoggingEnabled;

                Properties.Settings.Default.CheckForUpdate = CheckForUpdate;

                Properties.Settings.Default.ComPort = this.SelectedComPort;

                Properties.Settings.Default.TcpPort = this.SelectedTcpPort;

                Properties.Settings.Default.Save();
            }
        }
Пример #3
0
        public void Save()
        {
            Properties.Settings.Default.JiraBaseUrl = this.JiraBaseUrl;

            Properties.Settings.Default.AlwaysOnTop    = this.AlwaysOnTop;
            Properties.Settings.Default.MinimizeToTray = this.MinimizeToTray;
            Properties.Settings.Default.IssueCount     = this.IssueCount;

            Properties.Settings.Default.RememberCredentials = this.RememberCredentials;
            if (this.RememberCredentials)
            {
                Properties.Settings.Default.Username = this.Username;
                if (this.Password != "")
                {
                    Properties.Settings.Default.Password = DPAPI.Encrypt(this.Password);
                }
                else
                {
                    Properties.Settings.Default.Password = "";
                }
            }
            else
            {
                Properties.Settings.Default.Username = "";
                Properties.Settings.Default.Password = "";
            }

            Properties.Settings.Default.FirstRun           = this.FirstRun;
            Properties.Settings.Default.SaveTimerState     = (int)this.SaveTimerState;
            Properties.Settings.Default.PauseOnSessionLock = (int)this.PauseOnSessionLock;
            Properties.Settings.Default.PostWorklogComment = (int)this.PostWorklogComment;

            Properties.Settings.Default.CurrentFilter = this.CurrentFilter;

            Properties.Settings.Default.PersistedIssues = WriteIssues(this.PersistedIssues);

            Properties.Settings.Default.AllowMultipleTimers = this.AllowMultipleTimers;

            Properties.Settings.Default.Save();
        }
Пример #4
0
        public void Save()
        {
            lock (_writeLock)
            {
                Properties.Settings.Default.JiraBaseUrl = this.JiraBaseUrl;

                Properties.Settings.Default.AlwaysOnTop        = this.AlwaysOnTop;
                Properties.Settings.Default.MinimizeToTray     = this.MinimizeToTray;
                Properties.Settings.Default.IssueCounts        = WriteIssueCounts(this.IssueCounts);
                Properties.Settings.Default.TabNames           = WriteTabNames(this.TabNames);
                Properties.Settings.Default.IncludeProjectName = this.IncludeProjectName;

                Properties.Settings.Default.Username        = this.Username;
                Properties.Settings.Default.PrivateApiToken = this.PrivateApiToken != "" ? DPAPI.Encrypt(this.PrivateApiToken) : "";

                Properties.Settings.Default.FirstRun           = this.FirstRun;
                Properties.Settings.Default.SaveTimerState     = (int)this.SaveTimerState;
                Properties.Settings.Default.PauseOnSessionLock = (int)this.PauseOnSessionLock;
                Properties.Settings.Default.PostWorklogComment = (int)this.PostWorklogComment;

                Properties.Settings.Default.CurrentFilter = this.CurrentFilter;

                Properties.Settings.Default.PersistedIssues = WriteIssues(this.PersistedIssues);

                Properties.Settings.Default.TotalTimeLogged = this.TotalTimeLogged.ToString();

                Properties.Settings.Default.WorkingDate = DateTime.Now.ToString("d");

                Properties.Settings.Default.AllowMultipleTimers = this.AllowMultipleTimers;

                Properties.Settings.Default.StartTransitions = this.StartTransitions;

                Properties.Settings.Default.LoggingEnabled = this.LoggingEnabled;

                Properties.Settings.Default.JiraAvatarUrl = this.JiraAvatarUrl;

                Properties.Settings.Default.CheckForUpdate = CheckForUpdate;

                Properties.Settings.Default.Save();
            }
        }