// 툴 저장 버튼 클릭 [4/20/2012 ditto1] private void button1_Click(object sender, EventArgs e) { // 파씽 시작 m_AllItemProgress.Value = 0; m_AllItemProgress.Maximum = GetSelectItemCount(); m_AllItemProgress.Step = 1; for (int i = 0; i < m_checkedListBox.Items.Count-1; ++i) { if(m_checkedListBox.GetItemChecked(i)) { switch (i) { case (int)eCheckBox.eCheckBox_Character: CCharacterDB CharDB = new CCharacterDB(); CharDB.LoadExcel(); CharDB.Save(); // CharDB.Load(); break; case (int)eCheckBox.eCheckBox_Map: break; case (int)eCheckBox.eCheckBox_Skill: CSkillDB SkillDB = new CSkillDB(); SkillDB.LoadExcel(); SkillDB.Save(); break; case (int)eCheckBox.eCheckBox_Item: CItemDB ItemDB = new CItemDB(); ItemDB.LoadExcel(); ItemDB.Save(); break; case (int)eCheckBox.eCheckBox_Stage: CStageDB kStateDB = new CStageDB(); kStateDB.LoadExcel(); kStateDB.Save(); break; } m_AllItemProgress.Value += m_AllItemProgress.Step; } } }
// 테이블 로드 void loadTable() { // 캐릭터 kCharDB = new CCharacterDB(); kCharDB.Load(kTaCharDB); // 스테이지 kStageDB = new CStageDB(); kStageDB.Load(kTaStageDB); m_nMaxStage = kStageDB.m_tmStage.Count; // 스킬 kSkillDB = new CSkillDB(); kSkillDB.Load(kTaSkillDB); }