namespace Blah { static class Program { [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } } public partial class Form1 : Form { public Form1() { InitializeComponent(); bool result = doStuff(); if (result) success(); else fail(); } private void success() { lblStatus.Text = "Process was successful."; pbxStatus.Image = global::IACRenew2.Properties.Resources.check; btnOK.Visible = true; } private void fail() { lblStatus.Text = "An error occurred. Please contact support."; pbxStatus.Image = global::IACRenew2.Properties.Resources.error; btnOK.Visible = true; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)