![]() ![]() If you keep track of the Dialogs outside of the scope of the methods you use to open them, you can call which ever methods on those Dialogs you wish from anywhere within the Class. LatAndLongDialog laldor = new LatAndLongDialog() TimeCitiesDialog tcdor = new TimeCitiesDialog() Private void CloseOff(Object Sender, EventArgs E) LatAndLongDialog ObjectReference = new LatAndLongDialog() Private void OpenLatAndLongDialog(Object Sender, EventArgs E) ![]() TimeCitiesDialog ObjectReference = new TimeCitiesDialog() Private void OpenTimeCitiesDialog(Object Sender, EventArgs E) "on the upper-right corner of the window to view everything you\n" "Select a TimeCity or enter the latitude and longitude in \n" / Interaction logic for MainWindow.xaml ![]() I want all the other windows to close when the `Closed()` event is called on `MainWindow`. `LatAndLongDialog` and `TimeCitiesDialog` are opened from MainWindow (with the click of a button). You see, there are three windows, MainWindow, LatAndLongDialog, TimeCitiesDialog. I'm creating a little WPF app in VS2013Express and I've come across a little problem. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |