private void closeAllItem_Click(object sender, EventArgs e) { inputMovie = null; maker = null; UpdateMenuBar(); Invalidate(); }
/// <summary> /// Pulls drawing area for the movie maker, and initalizes if needed. /// </summary> private void SetupMaker() { if (maker == null) { maker = new MovieMaker(this); } Rectangle r = ClientRectangle; r.Y = menuStrip1.Height; maker.DrawArea = r; }
/// <summary> /// Clean up files on close /// </summary> /// <param name="e"></param> protected override void OnClosed(EventArgs e) { maker = null; inputMovie = null; }