|
-
April 27th, 2011, 12:10 PM
#1
Working with multiple .cs documents, passing data back and forth
[.Net 4.0]
Hello,
I have multiple .cs documents in the same project. The first project I was able to pass data back and forth by creating a public string function. But for some reason in my new one I am missing something. I using the same namespace name for all .cs documents.
In MainWindow.xaml.cs I have this function:
public string whatis_SQL()
{
return SQLServerName.Text;
}
In Backup.xaml.cs when I try to run the following it does not recognize whatis_SQL.
string selectedSQLServer = whatis_SQL();
Thanks!
Last edited by DeepThought; April 27th, 2011 at 12:17 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|