Пример #1
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(0, 0);
                this.SetSize(300, 500);
                this.Anchors = Anchors.None;

                download_url.SetPosition(583, 19);
                download_url.SetSize(360, 56);
                download_url.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                download_url.Visible = true;

                DownloadBtn.SetPosition(690, 16);
                DownloadBtn.SetSize(214, 56);
                DownloadBtn.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                DownloadBtn.Visible = true;

                EditableText_1.SetPosition(-99, 108);
                EditableText_1.SetSize(360, 56);
                EditableText_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_1.Visible = true;

                EditableText_2.SetPosition(118, 124);
                EditableText_2.SetSize(360, 56);
                EditableText_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_2.Visible = true;

                break;

            default:
                this.SetPosition(0, 0);
                this.SetSize(500, 300);
                this.Anchors = Anchors.None;

                download_url.SetPosition(49, 30);
                download_url.SetSize(419, 56);
                download_url.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                download_url.Visible = true;

                DownloadBtn.SetPosition(190, 216);
                DownloadBtn.SetSize(126, 56);
                DownloadBtn.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                DownloadBtn.Visible = true;

                EditableText_1.SetPosition(49, 124);
                EditableText_1.SetSize(188, 56);
                EditableText_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_1.Visible = true;

                EditableText_2.SetPosition(287, 124);
                EditableText_2.SetSize(181, 56);
                EditableText_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                EditableText_2.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
Пример #2
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(1, 1);
                this.SetSize(400, 640);
                this.Anchors = Anchors.None;

                Button_OK.SetPosition(144, 310);
                Button_OK.SetSize(214, 56);
                Button_OK.Anchors = Anchors.None;
                Button_OK.Visible = true;

                Label_1.SetPosition(23, 36);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                Text_IP.SetPosition(250, 28);
                Text_IP.SetSize(360, 56);
                Text_IP.Anchors = Anchors.None;
                Text_IP.Visible = true;

                break;

            default:
                this.SetPosition(1, 1);
                this.SetSize(960, 544);
                this.Anchors = Anchors.None;

                Button_OK.SetPosition(766, 397);
                Button_OK.SetSize(193, 146);
                Button_OK.Anchors = Anchors.None;
                Button_OK.Visible = true;

                Label_1.SetPosition(23, 36);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.None;
                Label_1.Visible = true;

                Text_IP.SetPosition(268, 27);
                Text_IP.SetSize(209, 54);
                Text_IP.Anchors = Anchors.None;
                Text_IP.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
Пример #3
0
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.SetPosition(0, 0);
                this.SetSize(544, 960);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(139, 67);
                Label_1.SetSize(214, 36);
                Label_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_1.Visible = true;

                txtIp.SetPosition(128, 119);
                txtIp.SetSize(360, 56);
                txtIp.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                txtIp.Visible = true;

                txtPort.SetPosition(128, 119);
                txtPort.SetSize(360, 56);
                txtPort.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                txtPort.Visible = true;

                Label_2.SetPosition(139, 67);
                Label_2.SetSize(214, 36);
                Label_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_2.Visible = true;

                btn_Connect.SetPosition(31, 180);
                btn_Connect.SetSize(214, 56);
                btn_Connect.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                btn_Connect.Visible = true;

                btn_Cancel.SetPosition(31, 180);
                btn_Cancel.SetSize(214, 56);
                btn_Cancel.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                btn_Cancel.Visible = true;

                break;

            default:
                this.SetPosition(0, 0);
                this.SetSize(500, 240);
                this.Anchors = Anchors.None;

                Label_1.SetPosition(31, 35);
                Label_1.SetSize(333, 36);
                Label_1.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_1.Visible = true;

                txtIp.SetPosition(31, 81);
                txtIp.SetSize(333, 56);
                txtIp.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                txtIp.Visible = true;

                txtPort.SetPosition(377, 81);
                txtPort.SetSize(95, 56);
                txtPort.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                txtPort.Visible = true;

                Label_2.SetPosition(377, 35);
                Label_2.SetSize(95, 36);
                Label_2.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                Label_2.Visible = true;

                btn_Connect.SetPosition(56, 149);
                btn_Connect.SetSize(180, 56);
                btn_Connect.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                btn_Connect.Visible = true;

                btn_Cancel.SetPosition(258, 149);
                btn_Cancel.SetSize(180, 56);
                btn_Cancel.Anchors = Anchors.Top | Anchors.Height | Anchors.Left | Anchors.Width;
                btn_Cancel.Visible = true;

                break;
            }
            _currentLayoutOrientation = orientation;
        }
        public void SetWidgetLayout(LayoutOrientation orientation)
        {
            switch (orientation)
            {
            case LayoutOrientation.Vertical:
                this.DesignWidth  = 544;
                this.DesignHeight = 960;

                sceneBackgroundPanel.SetPosition(0, 0);
                sceneBackgroundPanel.SetSize(544, 960);
                sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                sceneBackgroundPanel.Visible = true;

                CMD_LINE.SetPosition(-52, 394);
                CMD_LINE.SetSize(360, 56);
                CMD_LINE.Anchors = Anchors.None;
                CMD_LINE.Visible = true;

                bg.SetPosition(635, 259);
                bg.SetSize(100, 100);
                bg.Anchors = Anchors.None;
                bg.Visible = true;

                cmd.SetPosition(336, 47);
                cmd.SetSize(214, 36);
                cmd.Anchors = Anchors.None;
                cmd.Visible = true;

                Enter.SetPosition(793, 488);
                Enter.SetSize(214, 56);
                Enter.Anchors = Anchors.None;
                Enter.Visible = true;

                Hack.SetPosition(793, 488);
                Hack.SetSize(214, 56);
                Hack.Anchors = Anchors.None;
                Hack.Visible = false;

                Free.SetPosition(793, 488);
                Free.SetSize(214, 56);
                Free.Anchors = Anchors.None;
                Free.Visible = false;

                break;

            default:
                this.DesignWidth  = 960;
                this.DesignHeight = 544;

                sceneBackgroundPanel.SetPosition(0, 0);
                sceneBackgroundPanel.SetSize(960, 544);
                sceneBackgroundPanel.Anchors = Anchors.Top | Anchors.Bottom | Anchors.Left | Anchors.Right;
                sceneBackgroundPanel.Visible = true;

                CMD_LINE.SetPosition(0, 490);
                CMD_LINE.SetSize(837, 54);
                CMD_LINE.Anchors = Anchors.None;
                CMD_LINE.Visible = true;

                bg.SetPosition(0, 0);
                bg.SetSize(960, 490);
                bg.Anchors = Anchors.None;
                bg.Visible = true;

                cmd.SetPosition(0, 0);
                cmd.SetSize(950, 480);
                cmd.Anchors = Anchors.None;
                cmd.Visible = true;

                Enter.SetPosition(837, 488);
                Enter.SetSize(123, 56);
                Enter.Anchors = Anchors.None;
                Enter.Visible = true;

                Hack.SetPosition(837, 488);
                Hack.SetSize(123, 56);
                Hack.Anchors = Anchors.None;
                Hack.Visible = false;

                Free.SetPosition(837, 488);
                Free.SetSize(123, 56);
                Free.Anchors = Anchors.None;
                Free.Visible = false;

                break;
            }
            _currentLayoutOrientation = orientation;
        }