private void UpdateEditor() { if (mEditorItem != null) { pnlContainer.Show(); cmbFolder.Text = mEditorItem.Folder; txtName.Text = mEditorItem.Name; cmbSound.SelectedIndex = cmbSound.FindString(TextUtils.NullToNone(mEditorItem.Sound)); chkCompleteSoundPlayback.Checked = mEditorItem.CompleteSound; cmbLowerGraphic.SelectedIndex = cmbLowerGraphic.FindString(TextUtils.NullToNone(mEditorItem.Lower.Sprite)); nudLowerHorizontalFrames.Value = mEditorItem.Lower.XFrames; nudLowerVerticalFrames.Value = mEditorItem.Lower.YFrames; nudLowerFrameCount.Value = mEditorItem.Lower.FrameCount; UpdateLowerFrames(); nudLowerFrameDuration.Value = mEditorItem.Lower.FrameSpeed; tmrLowerAnimation.Interval = (int)nudLowerFrameDuration.Value; nudLowerLoopCount.Value = mEditorItem.Lower.LoopCount; cmbUpperGraphic.SelectedIndex = cmbUpperGraphic.FindString(TextUtils.NullToNone(mEditorItem.Upper.Sprite)); nudUpperHorizontalFrames.Value = mEditorItem.Upper.XFrames; nudUpperVerticalFrames.Value = mEditorItem.Upper.YFrames; nudUpperFrameCount.Value = mEditorItem.Upper.FrameCount; UpdateUpperFrames(); nudUpperFrameDuration.Value = mEditorItem.Upper.FrameSpeed; tmrUpperAnimation.Interval = (int)nudUpperFrameDuration.Value; nudUpperLoopCount.Value = mEditorItem.Upper.LoopCount; chkDisableLowerRotations.Checked = mEditorItem.Lower.DisableRotations; chkDisableUpperRotations.Checked = mEditorItem.Upper.DisableRotations; chkRenderAbovePlayer.Checked = mEditorItem.Lower.AlternateRenderLayer; chkRenderBelowFringe.Checked = mEditorItem.Upper.AlternateRenderLayer; LoadLowerLight(); DrawLowerFrame(); LoadUpperLight(); DrawUpperFrame(); if (mChanged.IndexOf(mEditorItem) == -1) { mChanged.Add(mEditorItem); mEditorItem.MakeBackup(); } } else { pnlContainer.Hide(); } UpdateToolStripItems(); }