Exemplo n.º 1
0
        private string GetDataFromForm()
        {
            string temp = string.Empty;

            if (this.InvokeRequired)
            {
                GetUrlOrData setpos = new GetUrlOrData(GetDataFromForm);
                return(this.Invoke(setpos).ToString());
            }
            else
            {
                return(this.rtb_Data.Text);
            }
        }
Exemplo n.º 2
0
        private string GetDataFromMain()
        {
            string temp = string.Empty;

            if (this.InvokeRequired)
            {
                GetUrlOrData guod = new GetUrlOrData(GetDataFromMain);
                return(this.Invoke(guod).ToString());
            }
            else
            {
                return(this.rtb_Data.Text);
            }
        }