Esempio n. 1
0
 private void lvCodes_DoubleClick(object sender, EventArgs e)
 {
     TabPage t = new TabPage();
     CodeEditor ce = new CodeEditor(lvCodes.SelectedItems[0].SubItems[1].Text);
     ce.Dock = DockStyle.Fill;
     ce.FormBorderStyle = FormBorderStyle.None;
     ce.TopLevel = false;
     ce.Parent = t;
     t.Text = ce.Text;
     tcCodes.TabPages.Add(t);
     ce.Show();
 }
Esempio n. 2
0
 private void AddCode(Code c)
 {
     ListViewItem item = new ListViewItem(c.FileName());
     item.SubItems.Add(c.Directory);
     this.lvCodes.Items.Add(item);
     TabPage t = new TabPage();
     CodeEditor ce = new CodeEditor(c.Directory);
     ce.Dock = DockStyle.Fill;
     ce.FormBorderStyle = FormBorderStyle.None;
     ce.TopLevel = false;
     ce.Parent = t;
     t.Text = ce.Text;
     tcCodes.TabPages.Add(t);
     ce.Show();
 }