private void Add_Timer_Click(object sender, RoutedEventArgs e) { AddTimerWnd add_timer = new AddTimerWnd(); if (add_timer.ShowDialog() == true) { date = add_timer.current; name = add_timer.nm; list.Add(name, date); stack.Items.Add(name); } else { } }
private void Redact_Click(object sender, RoutedEventArgs e) { AddTimerWnd add_timer = new AddTimerWnd(); if (add_timer.ShowDialog() == true) { date = add_timer.current; name = add_timer.nm; list.Remove(stack.SelectedValue.ToString()); stack.Items.Remove(stack.SelectedValue.ToString()); list.Add(name, date); stack.Items.Add(name); } else { } }