/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing) { if (components != null) { components.Dispose(); } if (autoCompleteMenu != null) { autoCompleteMenu.Dispose(); autoCompleteMenu = null; } if (ParentTabPage != null) { ParentTabPage.Dispose(); ParentTabPage = null; } if (font != null) { font.Dispose(); font = null; } } base.Dispose(disposing); }
/// <summary> /// Removes the tab when the remove button is clicked. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void removeButton_Click(object sender, EventArgs e) { if (MessageBox.Show("Are you sure you want to remove \"" + ParentTabPage.Name + "\"?", "Dangerous operation.", MessageBoxButtons.YesNo) == DialogResult.Yes) { ParentTabPage.Remove(); } }
/// <summary> /// Allows for changing the name of the PhysicsGroup. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void changeNameButton_Click(object sender, EventArgs e) { ParentTabPage.ChangeName(); }