コード例 #1
0
 public LoginPage()
 {
     InitializeComponent();
     colorful_login = new ChangeColor(this);
     InitColors();
     InputInfo();
 }
コード例 #2
0
 public RegisterPage()
 {
     InitializeComponent();
     colorful_register = new ChangeColor(this);
     InitColors();
     InputInfo();
 }
コード例 #3
0
        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
        }
コード例 #4
0
 public MainPage()
 {
     InitializeComponent();
     colorful = new ChangeColor(this);
     InitColors();
 }