private void cbAnimType_SelectedIndexChanged(object sender, EventArgs e) { if (internalchg) { return; } internalchg = true; try { if (this.cbAnimType.SelectedIndex >= 0) { GS.GlobalStr gs = (GS.GlobalStr)Enum.Parse(typeof(GS.GlobalStr), this.cbAnimType.SelectedItem.ToString()); tbValAnimType.Text = "0x" + ((ushort)gs).ToString("X"); } } finally { tbAnimType.Text = (this.cbAnimType.SelectedIndex >= 0) ? this.cbAnimType.SelectedItem.ToString() : "---"; } doStrValue(doidAnim.Value, tbAnim); tbValAnimType.Focus(); internalchg = false; }
private bool IsAnim(GS.GlobalStr g) { return(IsAnim(g.ToString())); }