/// <summary> /// Initializes the UI. /// </summary> private void InitUI() { // UI inits _TSL_Conn.Text = "No Connection"; _TSL_Conn.ForeColor = Color.Black; _TSL_ColorSwatch.ForeColor = drawColor; _TSL_Thickness.Text = $"Thickness: {Thickness}"; _TSL_Alpha.Text = $"Alpha: {Alpha}"; _TSL_RxFrames.Text = $"Frames Rx'd: {RxFrameCount}"; _TSL_Fragments.Text = $"Fragments: {FragmentsCount}"; _TSL_DestackAvg.Text = $"Destack Avg: {DestackAvg}"; _TSL_RxBytes.Text = $"Bytes Rx'd: {RxBytesTotal}"; // delegate inits Recycle = new delVoidVoid(CBDismantleSocket); UpdateUI = new delVoidVoid(UpdateStatus); }
public frmMain() { InitializeComponent(); //This is just some console demo stuff. //Should run as soon as form starts //UNICAST delVoidVoid bobSaysOne = SayOne; bobSaysOne(); //MULTICAST delVoidVoid bobSaysOneTwo = SayOne; bobSaysOneTwo += SayTwo; bobSaysOneTwo(); //Parameters! delIntIntInt larryScreamsNumbers = SayOnesandTwos; int x = larryScreamsNumbers(3, 4); Console.WriteLine("Larry screamed " + x + " numbers"); }