private void btn_openStickEditor_Click(object sender, EventArgs e) { StickEditorForm f = new StickEditorForm(); if (f.ShowDialog() == DialogResult.OK) { txt_customFigPath.Text = "Custom figure created with Editor"; CustomFigure = f.CreatedFigure; CustomFigureState = f.CreatedFigureState; } }
private void btn_stickOpenInEditor_Click(object sender, EventArgs e) { StickEditorForm ed = new StickEditorForm(((StickFigure)Program.MainTimeline.SelectedLayer.Data).Copy(), (StickFigure.State)Program.MainTimeline.SelectedKeyframe.State.Copy()); if (ed.ShowDialog() == DialogResult.OK) { Program.MainTimeline.SelectedLayer.Data = ed.CreatedFigure; Program.MainTimeline.SelectedKeyframe.State = ed.CreatedFigureState; } Program.MainTimeline.GLContext.Invalidate(); }
private void btn_openStickEditor_Click(object sender, EventArgs e) { StickEditorForm f = new StickEditorForm(); if(f.ShowDialog() == DialogResult.OK) { txt_customFigPath.Text = "Custom figure created with Editor"; CustomFigure = f.CreatedFigure; CustomFigureState = f.CreatedFigureState; } }