public Form1() { InitializeComponent(); dt1 = new SampleTable1(); dt2 = new SampleTable2(); dt1.AddGroup(groupid); dt2.AddUser(groupid, userid++); dt2.AddUser(groupid, userid++); dt1.AddGroup(++groupid); dt2.AddUser(groupid, userid++); dt2.AddUser(groupid, userid++); dt2.AddUser(groupid, userid++); }
public void UpdateData(string groupname) { dt1.AddGroup(++groupid, groupname); dt2.AddUser(groupid, userid++); dt2.AddUser(groupid, userid++); settingsWindow.FillTree(dt1, dt2); }