namespace Project { public partial class MainForm : Form { public MainForm() { InitializeComponent(); } public void TempCommand() { StartTemp(); } } }
private TempCalib _tempCalib = new TempCalib(); private void calibBtn_Click(object sender, EventArgs e) { _tempCalib.Show(); }
namespace Project { public partial class TempCalib : Form { public TempCalib() { InitializeComponent(); } private void OkButton_Click(object sender, EventArgs e) { // I need to call the mainfrom "TempCommand" method here. this.Hide(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)