Ejemplo n.º 1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (keepList.SelectedItem != null)
     {
         KeepLogsOfUsers.Remove(keepList.SelectedItem as string);
     }
 }
Ejemplo n.º 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);
                }
            }
        }