47 lines
900 B
C#
47 lines
900 B
C#
|
|
namespace RND
|
|
{
|
|
|
|
public abstract class ParameterlessWindow : Window
|
|
{
|
|
public new void Show()
|
|
{
|
|
base.Show();
|
|
}
|
|
}
|
|
|
|
public abstract class ParameterWindow<A1> : Window
|
|
{
|
|
public void Show(A1 a)
|
|
{
|
|
base.Show();
|
|
|
|
OnShow(a);
|
|
}
|
|
|
|
protected new abstract void OnShow(A1 argument);
|
|
}
|
|
|
|
public abstract class ParameterWindow<A1, A2> : Window
|
|
{
|
|
public void Show(A1 a1, A2 a2)
|
|
{
|
|
base.Show();
|
|
|
|
OnShow(a1, a2);
|
|
}
|
|
|
|
protected new abstract void OnShow(A1 a1, A2 a2);
|
|
}
|
|
|
|
public abstract class ParameterWindow<A1, A2, A3> : Window
|
|
{
|
|
public void Show(A1 a1, A2 a2, A3 a3)
|
|
{
|
|
base.Show();
|
|
OnShow(a1, a2, a3);
|
|
}
|
|
|
|
protected new abstract void OnShow(A1 a1, A2 a2, A3 a3);
|
|
}
|
|
} |