public FormUpdateClasse(SearchComponent searchs, string paths, bool whatLevel) { this.path = paths; this.whatLevel = whatLevel; this.search = searchs; InitializeComponent(); this.titleFormUpdate.Text = this.whatLevel ? "Ajouter une classe" : "Ajouter un niveau"; if (!this.whatLevel) { this.attributeText(); } }
public static FormUpdateClasse Instance(SearchComponent search, string paths, bool whatLevel) { componentSearch = new FormUpdateClasse(search, paths, whatLevel); return(componentSearch); }