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); }
public void LoadFromStream(Stream stm) { DataContractSerializer serializer = new DataContractSerializer(typeof(TIMELINEbase)); TIMELINEbase tl = (TIMELINEbase)serializer.ReadObject(stm); }