/*public void AppendTextBox(string value) { if(InvokeRequired) { this.in } }*/ private async void InitialSetup(object sender, EventArgs e) { //dict.Add("tBox", new messageDelegate(); if (init) { init = false; ClientServerDialog dialogBox = new ClientServerDialog(); Nullable<bool> dialogResult = dialogBox.ShowDialog(); if (Application.Current.Properties["IsServer"].Equals(false)) { this.Title = "Client"; IPAddressDialog ipDialog = new IPAddressDialog(); Nullable<bool> ipDialogResult = ipDialog.ShowDialog(); } await Task.Run(()=> netSetUp()); } }
/*public void AppendTextBox(string value) * { * if(InvokeRequired) * { * this.in * } * }*/ private async void InitialSetup(object sender, EventArgs e) { //dict.Add("tBox", new messageDelegate(); if (init) { init = false; ClientServerDialog dialogBox = new ClientServerDialog(); Nullable <bool> dialogResult = dialogBox.ShowDialog(); if (Application.Current.Properties["IsServer"].Equals(false)) { this.Title = "Client"; IPAddressDialog ipDialog = new IPAddressDialog(); Nullable <bool> ipDialogResult = ipDialog.ShowDialog(); } await Task.Run(() => netSetUp()); } }