To #1:
I do like this now:
public partial class Choosen<T1, T2> : Window
where T1 : UserControl, new()
where T2 : Entities, new()
{
public Choosen(T1 usercontrol, List<T2> list, bool canChooseAll)
{
InitializeComponent();
}
}
to do like this ,I have to edit the Choosen.g.i.cs to change the class's name "Choosen" to "Choosen<T1, T2>",but when i compile it ,the Choosen.g.i.cs file will be set to default,and raise an error:"Can't find
InitializeComponent
"