Esempio n. 1
0
        public void LoadProject()
        {
            int h = 5;
            int i = 0;

            foreach (string c in d)
            {
                OpenProjectShort s = new OpenProjectShort();
                s.Location = new Point(0, h);
                s.Width    = pa.Width;
                s.Height   = 27;
                s.SetMainText(c);
                s.LoadBitmap(bmps[i++]);
                if (i == 1)
                {
                    s.GetAndClearLink().Click += StartPageForm_Click;
                }
                else if (i == 2)
                {
                    s.GetAndClearLink().Click += StartPageForm_FolderClick;
                }
                s.SetTipInfoText(c);
                pp.Controls.Add(s);
                h += 27;
            }
        }
Esempio n. 2
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;
     }
 }
Esempio n. 3
0
        private void StartPageForm_Click1(object sender, EventArgs e)
        {
            LabelEx lb = sender as LabelEx;

            if (lb == null)
            {
                return;
            }
            OpenProjectShort s = lb.Parent as OpenProjectShort;

            if (s == null)
            {
                return;
            }
            string filename = s.urls;

            ExplorerForms.ef.Command_AddNewProject(filename);
        }
Esempio n. 4
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;
            }
        }