|
using System;
using System.Windows;
using GG.GameAttackCombos.Logic;
namespace GG.GameAttackCombos.Client {
/// <summary>
/// Interaction logic for AboutWindow.xaml
/// </summary>
public partial class AboutWindow : BaseWindow {
// Holds a reference to the current package for binding purposes.
// * This must be disposed of when the window is closed.
ComboPackage _currentPackage;
public AboutWindow() {
InitializeComponent();
}
private void winAbout_Loaded(object sender, RoutedEventArgs e) {
// Set the form's data context to the assembly attributes of the application.
AssemblyAttributes Attributes = new AssemblyAttributes();
DataContext = Attributes;
// Attempt to open any current combo package and set the expander's data context.
_currentPackage = App.Current.OpenCurrentComboPackage();
if (_currentPackage != null) {
grpCurrentSkinInfo.DataContext = _currentPackage;
} else {
grpCurrentSkinInfo.Visibility = Visibility.Collapsed;
}
}
private void winAbout_Closed(object sender, EventArgs e) {
// Dispose of any current package.
if (_currentPackage != null) {
_currentPackage.Dispose();
}
}
private void btnOk_Click(object sender, RoutedEventArgs e) {
Close();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I began programming on my Commodore 64 at around the age of 12. After migrating to DOS and then Windows, I decided to take on the Web. Several languages and platforms later, I have settled in with .NET nicely. I am currently the owner of a software consulting company and lead application developer for a learning-based technology consultation company.
The love of a finished application is usually at war with the desire to improve it as soon as it's released (they're never really finished).