Esempio n. 1
0
        static void Main(string[] args)
        {
            var panel = new Panel();
            panel.Name = "MyPanel";
            var btn1 = new Button();
            btn1.Name = "MyBtn";
            btn1.Caption = "OK";
            panel.Children.Add(btn1);

            //var tb1 = new TextBox();
            //tb1.Name = "MyTb";
            //tb1.Text = "MyTextBox";
            //panel.Children.Add(tb1);

            //var cb1 = new CircleButton();
            //cb1.Name = "MyCB";
            //cb1.Caption = "Circle";
            //panel.Children.Add(cb1);

            panel.Render();

            Console.WriteLine("value: " + btn1);

            var btn2 = new Button("MySecond", 64, 64, "hi");
            var btn3 = new Button(btn2);

            var btn4 = btn2 + btn3;

            var ue = new UIElement();
        }
Esempio n. 2
0
 public Button(Button source)
     : base(source.Name, source.Width, source.Height)
 {
     this.Caption = source.Caption;
 }