private void timerMain_Tick(object sender, EventArgs e) { if (this.mFormImageList != null) { if (this.mFormImageList.IsDisposed) { this.mFormImageList.Dispose(); this.mFormImageList = null; } } if (this.mFormControl != null) { if (this.mFormControl.IsDisposed) { this.mFormControl.Dispose(); this.mFormControl = null; } } if (this.mFormAttribute != null) { if (this.mFormAttribute.IsDisposed) { this.mFormAttribute.Dispose(); this.mFormAttribute = null; } } this.ToolStripMenuItem_ImageList.Checked = (this.mFormImageList != null); this.ToolStripMenuItem_Control.Checked = (this.mFormControl != null); this.ToolStripMenuItem_Attribute.Checked = (this.mFormAttribute != null); }
private void FormMain_Load(object sender, EventArgs e) { //以下、初期化処理 ClsTool.Init(); PreViewCenter = new Point(0, 0); mScreenScroll = new Point(0, 0); ImageMan = new ImageManagerBase(); TimeLine = new TIMELINEbase(); this.mFormImageList = new FormImageList(); this.mFormImageList.Show(); this.mFormControl = new FormControl(this); this.mFormControl.mTimeLine = TimeLine; this.mFormControl.Show(); this.mFormAttribute = new FormAttribute(this); this.mFormAttribute.Show(); mFormControl.mTimeLine = TimeLine;//ControlFormに通達 //Ver2 mFormCell = new FormCell(this); mFormCell.IM = ImageMan; mFormCell.Show(); AlingForms(); //背景の再描画をキャンセル(ちらつき抑制) //効果いまいち this.SetStyle(ControlStyles.Opaque, true); }
private void TSMenu_ImageList_Click(object sender, EventArgs e) { if (this.mFormImageList == null) { this.mFormImageList = new FormImageList(); this.mFormImageList.Show(); } else { this.mFormImageList.Close(); this.mFormImageList.Dispose(); this.mFormImageList = null; } }