public LoginPage() { InitializeComponent(); colorful_login = new ChangeColor(this); InitColors(); InputInfo(); }
public RegisterPage() { InitializeComponent(); colorful_register = new ChangeColor(this); InitColors(); InputInfo(); }
static void Main(string[] args) { Box b = new Box(); Console.WriteLine(b.isCheap() + " " + b.isExpensive()); IExpensive <Box> ie = new Box(); //notice that I cannot add items to the box b.Add(1000); Console.WriteLine("b value : " + b.Value); IExpensive <Box> cb = (IExpensive <Box>)b; Console.WriteLine("cb value : " + cb.Value); //notice that cb is a reference to c it just has less properties IColorful <Box> cc = (IColorful <Box>)b; //now this only has the IColor pieces //Now I have essentially removed the add field }
public MainPage() { InitializeComponent(); colorful = new ChangeColor(this); InitColors(); }