protected void WriteClientScripts()
        {
            WriteProjectResources();

            if (Page is GanttChart)
            {
                Master.AddBodyScripts(ResolveUrl, "~/js/third-party/jquery/jquery.autosize.js");
                Master.AddBodyScripts(PathProvider.GetFileStaticRelativePath,
                                      "jq_projects_extensions.js",
                                      "common.js",
                                      "taskaction.js",
                                      "milestoneaction.js",
                                      "ganttchart_min.js",
                                      "ganttchartpage.js");
                return;
            }

            Master.AddStyles(PathProvider.GetFileStaticRelativePath,
                             "common.css",
                             "allprojects.less",
                             "projectaction.css",
                             "milestones.less",
                             "tasks.css",
                             "alltasks.less",
                             "discussions.css",
                             "timetracking.css",
                             "projectteam.less",
                             "projecttemplates.css",
                             "import.css",
                             "reports.css");

            Master.AddBodyScripts(PathProvider.GetFileStaticRelativePath,
                                  "jq_projects_extensions.js",
                                  "common.js",
                                  "base.js",
                                  "navsidepanel.js",
                                  "taskaction.js",
                                  "milestoneaction.js",
                                  "projectnavpanel.js",
                                  "common_filter_projects.js",
                                  "subtasks.js",
                                  "tasks.js",
                                  "taskdescription.js",
                                  "projects.js",
                                  "projecttemplates.js",
                                  "projectteam.js",
                                  "milestones.js",
                                  "discussions.js",
                                  "timetracking.js",
                                  "apitimetraking.js");

            Master.AddBodyScripts(ResolveUrl, "~/js/third-party/jquery/jquery.autosize.js", "~/js/uploader/ajaxupload.js");
        }