Game Development Reference
In-Depth Information
case “2”:
{
Console.Write(logic.GetSecondAlertObjectName());
break;
}
case “3”:
{
Console.Write(logic.GetThirdAlertObjectName());
break;
}
}
}
}
Alert Object Windows—Direct
The first method for a WinForms -based entry point is the direct approach, where
you reference and call the specific tool logic in the same way you would do in the
console entry point.
Here is the code for the WinForms entry point using the direct approach:
using AlertObjectTool;
private void FirstTestDirectButtonClick(object sender, System.EventArgs e)
{
AlertObjectToolLogic logic = new AlertObjectToolLogic();
MessageBox.Show(logic.GetFirstAlertObjectName());
}
private void SecondTestDirectButtonClick(object sender, System.EventArgs e)
{
AlertObjectToolLogic logic = new AlertObjectToolLogic();
MessageBox.Show(logic.GetSecondAlertObjectName());
}
private void ThirdTestDirectButtonClick(object sender, System.EventArgs e)
{
AlertObjectToolLogic logic = new AlertObjectToolLogic();
MessageBox.Show(logic.GetThirdAlertObjectName());
}
Search Nedrilad ::




Custom Search