private void GetInfo() { if (m_state == null) { return; } m_Alg = m_state.CharAlg; m_Class = m_state.CharClass; m_Race = m_state.CharRace; }
private void CmbClass_VisibleChanged(object sender, EventArgs e) { WizComboBox w = (WizComboBox)sender; if (w.SelectedIndex >= 0) { WIZCLASS r = (WIZCLASS)w.SelectedIndex; if (m_Class != r) { m_Class = r; SetInfo(); this.Invalidate(); } } WizComboBox.MeDelete(this.Parent.Controls, w); }
//---------------------------------------------------- public int FindName(string nm, WIZCLASS cls) { int ret = -1; if (m_PicDatas.Count <= 0) { return(-1); } if ((nm == "-- NONE --") || (nm == "")) { nm = "_None"; } ret = FindNameSub(nm); if (ret == -1) { switch (cls) { case WIZCLASS.FIG: nm = "FIG"; break; case WIZCLASS.MAG: nm = "MAG"; break; case WIZCLASS.PRI: nm = "PRI"; break; case WIZCLASS.THI: nm = "THI"; break; case WIZCLASS.BIS: nm = "BIS"; break; case WIZCLASS.SAM: nm = "SAM"; break; case WIZCLASS.LOR: nm = "LOR"; break; case WIZCLASS.NIN: nm = "NIN"; break; } ret = FindNameSub(nm); if (ret == -1) { nm = "_None"; ret = FindNameSub(nm); } } return(ret); }