Exemple #1
0
 /// <summary>
 /// Displays the New Watch dialog and adds a new watch using the user
 /// specified data.
 /// </summary>
 public void AddNewWatch()
 {
     using (var f = new NewWatchForm())
     {
         f.SetTypes(Types);
         if (f.ShowDialog() == DialogResult.OK)
         {
             AddNewWatch(f.WatchName, f.WatchType);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Displays the New Watch dialog and adds a new watch using the user
 /// specified data.
 /// </summary>
 public void AddNewWatch()
 {
     using (var f = new NewWatchForm())
     {
         f.SetTypes(Types);
         if (f.ShowDialog() == DialogResult.OK)
         {
             AddNewWatch(f.WatchName, f.WatchType);
         }
     }
 }