/// <summary> /// Media button press action. /// Creates MediaTab object. /// Connects send handler. /// Shows module window. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void pressButton2_Click(object sender, EventArgs e) { MediaTab t = new MediaTab(); t.send = new sendFunction(send); showModuleWindow(t); }