buttonConnect.BackColor = Check.IsConnected ? Color.Red : Color.Green;
x ? x : x ;
if (Check.IsConnected) buttonConnect.BackColor = Color.Red; else buttonConnect.BackColor = Color.Green;
var result = x ? y : z; // x is the condition which should return a boolean value // y will be assigned to result, if x is true // z will be assigned to result, if x is false
if
if (Check.Isconnected) { buttonConnect.BackColor = Color.Red; } else { buttonConnect.BackColor = Color.Green; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)