private void Button_Click_3(object sender, RoutedEventArgs e) { PageAddKlNoTail winAddKl1 = new PageAddKlNoTail(); if (winAddKl1.ShowDialog() == true) { Bak.AddKl(winAddKl1.Name2, winAddKl1.IP, winAddKl1.NameB, true); var BakGroups2 = from user in Bak._DataColec1 where user.BAAK12NoT == true orderby user.KLIP select user; listNoTail.ItemsSource = BakGroups2.ToList(); } else { } }
private void Button_Click_1(object sender, RoutedEventArgs e) { AddKl winAddKl = new AddKl(); if (winAddKl.ShowDialog() == true) { Bak.AddKl(winAddKl.Name2, winAddKl.IP, winAddKl.NameB, winAddKl.BAAK12NoTail); var BakGroups1 = from user in Bak._DataColec1 where user.BAAK12NoT == false orderby user.KLIP select user; list1.ItemsSource = BakGroups1.ToList(); } else { } }