public JobUC(AccountUC Account, Job j , List<TreeNode> nodes = null) { InitializeComponent(); account = Account; job = j; TV = new TreeView() { Dock = DockStyle.Fill }; Load(nodes); InitTree(); sadikTabControl1.TabPages[0].Controls.Add(g); sadikTabControl1.TabPages[1].Controls.Add(gg); sadikTabControl1.TabPages[2].Controls.Add(TV); //sadikTabControl1.TabPages[2].Controls.Add(GatherPie); this.Dock = DockStyle.Fill; g.Columns.Add("SkillName", "Skills"); g.Columns.Add("RessourceName", "Ressources"); g.Columns.Add("RessourceId", "Id"); g.Columns.Add(new DataGridViewCheckBoxColumn() { Name = "Select", HeaderText = "A récolter"}); g.Columns[1].Width = 200; g.MultiSelect = false; gg.Columns.Add("SkillName", "Skills"); gg.Columns.Add("RecipeName", "Recettes"); gg.Columns[1].Width = 200; gg.Columns.Add("RecipeId", "Id"); gg.ReadOnly = true; BlueSheep.Engine.Constants.Translate.TranslateUC(this); }
public JobUC(AccountUC Account, Job j) { InitializeComponent(); account = Account; job = j; sadikTabControl1.TabPages[0].Controls.Add(g); sadikTabControl1.TabPages[1].Controls.Add(gg); sadikTabControl1.TabPages[2].Controls.Add(GatherPie); this.Dock = DockStyle.Fill; g.Columns.Add("SkillName", "Skills"); g.Columns.Add("RessourceName", "Ressources"); g.Columns.Add("RessourceId", "Id"); g.ReadOnly = true; gg.Columns.Add("SkillName", "Skills"); gg.Columns.Add("RecipeName", "Recettes"); gg.Columns[1].Width = 200; gg.Columns.Add("RecipeId", "Id"); gg.ReadOnly = true; }