public void AddSoft(string name, Image img) { Soft st = new Soft(); st.Kii += St_Kii; st.Devicename = label_DeviceName.Text; st.SetSoftName(name); st.SetSoftImage(img); flowLayoutPanel1.Controls.Add(st); }
public void AddSoft(string name, Image img, Soft stl) { if (!IsInclueSoft(name, stl)) { Soft st = new Soft(); st.Kii += St_Kii; st.Hint += St_Hint; st.Devicename = stl.Devicename; st.SetSoftName(name); st.SetSoftImage(img); st.GroupNumb = GroupNumb; flowLayoutPanel1.Controls.Add(st); } }