private void LoadSetting()
        {
            var project = JiraProjectsStoreUtil.ReadProjects();

            if (project != null)
            {
                SelectedProjects          = project.JiraProjects;
                CurrentAssignProject      = project.CurrentAssignProject;
                IsCreateJiraCaseAfterSent = project.CreateJiraCaseAfterSent;
                CurrentSelectedIssueType  = project.CurrentIssueType;
                BaseJiraUrl = project.BaseJiraUrl;
                ProjectIssueRequiredFieldsMaps = project.ProjectIssueRequiredFieldsMaps;
            }
            if (ProjectIssueRequiredFieldsMaps == null)
            {
                ProjectIssueRequiredFieldsMaps = new ProjectIssueRequiredFieldsMapCollection();
            }
            if (String.IsNullOrWhiteSpace(BaseJiraUrl))
            {
                BaseJiraUrl = JIRA_BASE_URL_NEWEGG;
            }
            if (JiraOperator != null)
            {
                JiraOperator.BaseJiraUrl = BaseJiraUrl;
            }
        }
        public bool OnGetSendWithCreateJiraCasePressed(Office.IRibbonControl control)
        {
            var proj = JiraProjectsStoreUtil.ReadProjects();

            if (proj != null)
            {
                return(proj.CreateJiraCaseAfterSent);
            }
            return(false);
        }
 private void Application_Quit()
 {
     JiraProjectsStoreUtil.WriteProjects(new JiraProjectCollection()
     {
         CreateJiraCaseAfterSent        = IsCreateJiraCaseAfterSent,
         CurrentAssignProject           = CurrentAssignProject,
         JiraProjects                   = SelectedProjects,
         CurrentIssueType               = CurrentSelectedIssueType,
         BaseJiraUrl                    = BaseJiraUrl,
         ProjectIssueRequiredFieldsMaps = ProjectIssueRequiredFieldsMaps
     });
 }
 private void CreateRelatedFiles()
 {
     m_UserHaveFileAccessPermisson = JiraUserAuthUtil.CreateJiraUserAuthFile();
     m_UserHaveFileAccessPermisson = JiraProjectsStoreUtil.CreateFile();
 }