private void ListEdit_Click(object sender, RoutedEventArgs e) { var val = ((Button)sender).Tag; AddListWindow addListWindow = new AddListWindow("Edit", (int)val); addListWindow.Show(); }
private void AddList_Click(object sender, RoutedEventArgs e) { AddListWindow addListWindow = new AddListWindow("Add", 0); addListWindow.Show(); }