/// <summary> /// Event for when the add button is clicked, sends different forms for timers /// and commands, respectively. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Add_Click(object sender, RoutedEventArgs e) { if (this.Name == "timers") { AddTimer addt = new AddTimer(this); addt.Show(); } else { AddCommand add = new AddCommand(this); add.Show(); } }