C# Class wpf_player.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Mostra file Open project: zencoders/sambatyon

Public Methods

Method Description
MainWindow ( ) : System

Default constructor. This constructor starts the splash in a different thread and the try to run the Peer. If the peer port is already in use a Peer Configuration dialog will be shown. If everything goes well the the model will be instantiated and the data context will be set. The splash screen will disappear when all GUI element have been loaded.

Protected Methods

Method Description
OnClosing ( System e ) : void

Method called on closing of the windows. This methods disposes the peer.

Private Methods

Method Description
Window_ContentRendered ( object sender, EventArgs e ) : void

Method called when all the GUI elements have been loaded. This methods close the splash screen.

about_item_Click ( object sender, RoutedEventArgs e ) : void

Handler for about menu item. This method shows the dialog.

exit_item_Click ( object sender, System e ) : void

Handler for the exit menu item. This methods close the windows

local_store_Click ( object sender, RoutedEventArgs e ) : void

Handler for local store menu item click. This methods show the local store dialog.

peer_config_item_Click ( object sender, RoutedEventArgs e ) : void

Handler for the peer configuration menu item. This method shows the Peer configuration dialog.

Method Details

MainWindow() public method

Default constructor. This constructor starts the splash in a different thread and the try to run the Peer. If the peer port is already in use a Peer Configuration dialog will be shown. If everything goes well the the model will be instantiated and the data context will be set. The splash screen will disappear when all GUI element have been loaded.
public MainWindow ( ) : System
return System

OnClosing() protected method

Method called on closing of the windows. This methods disposes the peer.
protected OnClosing ( System e ) : void
e System
return void