コード例 #1
0
ファイル: Form1.cs プロジェクト: Maxakipust/HomeworkHelp
 private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     settingsForm = new SettingsForm();
     settings     = new Settings();
     cc.del();
     cc = new classContainer(buttonShowClick, actTutorClick, getTutorClick, classChatClick);
     for (int i = 0; i < settings.GetSetting("class").Split(',').Length; i++)
     {
         cc.add(settings.GetSetting("class").Split(',')[i], panel1);
     }
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Maxakipust/HomeworkHelp
 private void HHForm_Load(object sender, EventArgs e)
 {
     settings                 = new Settings();
     settingsForm             = new SettingsForm();
     settingsForm.FormClosed += SettingsForm_FormClosed;
     cc = new classContainer(buttonShowClick, actTutorClick, getTutorClick, classChatClick);
     for (int i = 0; i < settings.GetSetting("class").Split(',').Length; i++)
     {
         cc.add(settings.GetSetting("class").Split(',')[i], panel1);
     }
     ss = new ChatClient(10, newData, settings.GetSetting("name"));
 }