public void Initialize() {
if (!(DataContext is ViewModel)) return;
InitializeComponent();
InputBindings.AddRange(new[] {
new InputBinding(new DelegateCommand(() => Model.AcObject.SelectedEvent?.GoCommand.Execute()), new KeyGesture(Key.G, ModifierKeys.Control))
});
var acObject = Model.AcObject;
if (acObject.LastSelectedTimestamp != 0) return;
if (File.Exists(acObject.StartVideo)) {
if (VideoViewer.IsSupported()) {
new VideoViewer(acObject.StartVideo, acObject.Name).ShowDialog();
}
new KunosCareerIntro(acObject).ShowDialog();
}
acObject.LastSelectedTimestamp = DateTime.Now.ToMillisecondsTimestamp();
}