Exemplo n.º 1
0
 public void LoadTfs()
 {
     int h = 1;
     //foreach (string c in d)
     {
         OpenProjectShort s = new OpenProjectShort();
         s.Location = new Point(0, h);
         s.Width    = pa.Width;
         s.Height   = 27;
         s.SetMainText("Visual Studio Team Services");
         s.SetLink("https://www.visualstudio.com/tfs/");
         ptfs.Controls.Add(s);
         h += 27;
     }
 }
Exemplo n.º 2
0
        public void LoadProjectTemplate()
        {
            List <string> tmps = NewProjectForm.GetProjectTemplates();

            int h = 5;

            foreach (string c in tmps)
            {
                OpenProjectShort s = new OpenProjectShort();
                s.Location = new Point(0, h);
                s.Width    = pa.Width;
                s.Height   = 27;
                s.SetLink(c);
                s.SetMainText(Path.GetFileName(c));
                s.GetAndClearLink().Click += StartPageForm_Click1;
                pb.Controls.Add(s);
                h += 27;
            }
        }