SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
LostTimeLog.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 using System.ComponentModel;
15 
16 namespace SeciUserInterface.Controls
17 {
21  public partial class LostTimeLog : UserControl
22  {
23  BackgroundWorker _webpageLauncher = new BackgroundWorker();
24 
25  public LostTimeLog()
26  {
27  InitializeComponent();
28  _webpageLauncher.DoWork += new DoWorkEventHandler(_webpageLauncher_DoWork);
29  }
30 
31  void _webpageLauncher_DoWork(object sender, DoWorkEventArgs e)
32  {
33  //Launch default web browser
34  try
35  {
36  System.Diagnostics.Process.Start(e.Argument.ToString());
37  }
38  catch
39  {
40  }
41  }
42 
43  private void lnkMaintenance_Click(object sender, RoutedEventArgs e)
44  {
45  if (!_webpageLauncher.IsBusy)
46  {
47  _webpageLauncher.RunWorkerAsync(Seci.Definitions.Status.MaintenanceWebpage);
48  }
49  }
50 
51  private void lnkLTR_Click(object sender, RoutedEventArgs e)
52  {
53  if (!_webpageLauncher.IsBusy)
54  {
55  _webpageLauncher.RunWorkerAsync(Seci.Definitions.Status.LTRWebpage);
56  }
57  }
58 
59  private void lnkInstMon_Click(object sender, RoutedEventArgs e)
60  {
61  if (!_webpageLauncher.IsBusy)
62  {
63  _webpageLauncher.RunWorkerAsync(Seci.Definitions.Status.InstMonWebpage);
64  }
65  }
66  }
67 }
void lnkInstMon_Click(object sender, RoutedEventArgs e)
void lnkLTR_Click(object sender, RoutedEventArgs e)
void _webpageLauncher_DoWork(object sender, DoWorkEventArgs e)
void lnkMaintenance_Click(object sender, RoutedEventArgs e)
Interaction logic for LostTimeMaintenance.xaml