private void FormControl_Load(object sender, EventArgs e) { //以下、ウィンドウの設定 this.Location = ClsSystem.mSetting.mWindowControl.mLocation; this.Size = ClsSystem.mSetting.mWindowControl.mSize; //以下、初期化処理 ClsDatMotion clMotion = ClsSystem.GetSelectMotion(); if (clMotion != null) { int inFrameNum = (int)this.numericUpDown_MaxFrame.Value; clMotion.SetMaxFrameNum(inFrameNum); } this.mFont = new Font("MS ゴシック", 10.5f); this.panel_Time.Width = CELL_WIDTH * (int)numericUpDown_MaxFrame.Value; this.panel_Time.Height = HEAD_HEIGHT * 5; this.ToolStripMenuItem_AddRotation.Tag = EnmTypeOption.ROTATION; this.ToolStripMenuItem_AddScale.Tag = EnmTypeOption.SCALE; this.ToolStripMenuItem_AddOffset.Tag = EnmTypeOption.OFFSET; this.ToolStripMenuItem_AddFlip.Tag = EnmTypeOption.FLIP; this.ToolStripMenuItem_AddTransparency.Tag = EnmTypeOption.TRANSPARENCY; this.ToolStripMenuItem_AddColor.Tag = EnmTypeOption.COLOR; this.ToolStripMenuItem_AddUserDataText.Tag = EnmTypeOption.USER_DATA; }
private void MaxFrame_ValueChanged(object sender, EventArgs e) { int inFrameNum = (int)this.numericUpDown_MaxFrame.Value; ClsDatMotion clMotion = ClsSystem.GetSelectMotion(); if (clMotion != null) { clMotion.SetMaxFrameNum(inFrameNum); } int inWidth = inFrameNum * FormControl.CELL_WIDTH + 1; this.panel_Time.Width = inWidth; this.panel_Time.Refresh(); }