private void SetTiming(Animation.Timing timing)
{
this.numericUpDownFrame.Value = timing.frame.Clamp(1, 999);
this.numericUpDownDuration.Value = timing.flash_duration;
this.trackBarStrength.Value = (int)timing.flash_color.alpha;
this.panelColor.BackColor = Color.FromArgb(255, (int)timing.flash_color.red,
(int)timing.flash_color.green, (int)timing.flash_color.blue);
this.comboBoxCondition.SelectedIndex = timing.condition;
this.textBoxSE.Tag = timing.se;
this.textBoxSE.Text = timing.se.ToString();
switch (timing.flash_scope)
{
case 1: this.radioTarget.Checked = true; break;
case 2: this.radioScreen.Checked = true; break;
case 3: this.radioHide.Checked = true; break;
default: this.radioNone.Checked = true; break;
}
}