SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
HelpLauncher.xaml.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.Windows;
6 using System.Windows.Controls;
7 using System.Windows.Data;
8 using System.Windows.Documents;
9 using System.Windows.Input;
10 using System.Windows.Media;
11 using System.Windows.Media.Imaging;
12 using System.Windows.Navigation;
13 using System.Windows.Shapes;
14 
15 namespace SeciControls
16 {
20  public partial class HelpLauncher : UserControl, IDisposable
21  {
22  private HelpBrowser _browser = new HelpBrowser();
23 
24  public HelpLauncher()
25  {
26  InitializeComponent();
27  }
28 
29  private void btnLaunch_Click(object sender, RoutedEventArgs e)
30  {
31  _browser.Show();
32  _browser.WindowState = WindowState.Normal;
33  }
34 
35  private void btnGenie_Click(object sender, RoutedEventArgs e)
36  {
37  //Launch default web browser
38  try
39  {
40  System.Diagnostics.Process.Start(Seci.Definitions.Status.GenieWebpage);
41  }
42  catch
43  {
44  }
45  }
46 
47  #region IDisposable Members
48 
49  public void Dispose()
50  {
51  //must close the browser
52  _browser.CloseForReal = true;
53  _browser.Close();
54  }
55 
56  #endregion
57  }
58 }
Interaction logic for HelpBrowser.xaml
void btnGenie_Click(object sender, RoutedEventArgs e)
void btnLaunch_Click(object sender, RoutedEventArgs e)
Interaction logic for HelpLauncher.xaml