/*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());
               
            }
            




          
           
                           

        }
示例#2
0
        /*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());
            }
        }