コード例 #1
0
        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);
        }
コード例 #2
0
        private void CmbRace_VisibleChanged(object sender, EventArgs e)
        {
            WizComboBox w = (WizComboBox)sender;

            if (w.SelectedIndex >= 0)
            {
                WIZRACE r = (WIZRACE)w.SelectedIndex;
                if (m_Race != r)
                {
                    m_Race = r;
                    SetInfo();
                    this.Invalidate();
                }
            }
            WizComboBox.MeDelete(this.Parent.Controls, w);
        }
コード例 #3
0
ファイル: WizStatus.cs プロジェクト: bryful/Wiz
        private void Cmb_VisibleChanged(object sender, EventArgs e)
        {
            if (m_state == null)
            {
                return;
            }
            WizComboBox w = (WizComboBox)sender;

            if (w.SelectedIndex >= 0)
            {
                WIZSTATUS o = m_state.CharStatus;
                WIZSTATUS r = (WIZSTATUS)w.SelectedIndex;

                if (o != r)
                {
                    m_state.CharStatus = r;
                    this.Invalidate();
                }
            }
            WizComboBox.MeDelete(this.Parent.Controls, w);
        }