I have a very cute form1 with very good button and inside it I have a toggle button on-off. I have another class.cs and I have a condition in it, but will only execute if that button there on form1 is on. follows in Form1.cs:
private void metroToggle1_CheckedChanged(object sender, EventArgs e)
{
// caso ligado retorna true ou false algo do tipo
}
My other class.cs
if(form1.botao = true ou retorna 0 ou 1){
// faz alguma coisa
}
I hope you have understood my question I am a beginner in C # seems simple to those who have more experience for me ta bone = /. Thanks in advance for the help.