Esempio n. 1
0
 public void AddCommand(JobCommand command)
 {
     m_rootCommand.m_commands.Add(command);
     command.m_job = this;
     if (m_title == null)
     {
         m_title = command.ToString();
     }
 }
Esempio n. 2
0
 private void RenderCommand(HtmlGenerator hg, string jobfn, JobCommand cmd)
 {
     if (cmd is JobPolyCommand)
     {
         RenderPolyCommandItems(hg, jobfn, (JobPolyCommand)cmd);
     }
     else
     {
         hg.Write(cmd.ToString());
         hg.Write(" - ");
         hg.Write("<a href=\"callback://runcmd?job:{1}&cmd:{2}\">{0}</a>", Texts.Get("s_run"), HttpUtility.UrlEncode(jobfn), HttpUtility.UrlEncode(cmd.GroupId));
         hg.Write(" | <a href=\"callback://editcmd?job:{1}&cmd:{2}\">{0}</a>", Texts.Get("s_edit"), HttpUtility.UrlEncode(jobfn), HttpUtility.UrlEncode(cmd.GroupId));
     }
 }