Beispiel #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (keepList.SelectedItem != null)
     {
         KeepLogsOfUsers.Remove(keepList.SelectedItem as string);
     }
 }
Beispiel #2
0
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
            string s = (newKeepLogsOfUser.Text ?? "").Trim().ToLower();

            if (s.Length > 0)
            {
                if (!KeepLogsOfUsers.Contains(s))
                {
                    KeepLogsOfUsers.Add(s);
                }
            }
        }