Beispiel #1
0
        public SettingsScreen(Client master)
            : base(master.CurrentSkin)
        {
            _Master = master;

              _ConnectionScreen = new ConnectionScreen(Skin);

              _ChooseConnection = new BigButton(Skin);
              _ChooseConnection.Bounds = new Rectangle(10, 10, ClientSize.Width-20, 32);
              _ChooseConnection.FitText("Server: ", Master.CurrentConnection.ToString());
              _ChooseConnection.Click += new EventHandler(OnChooseConnection);
              _ChooseConnection.Parent = this;

              _ChooseDevice = new BigButton(Skin);
              _ChooseDevice.Bounds = new Rectangle(10, 50, ClientSize.Width-20, 32);
              _ChooseDevice.FitText("Device: ", Master.CurrentDevice.ToString());
              _ChooseDevice.Click += new EventHandler(OnChooseDevice);
              _ChooseDevice.Parent = this;

              _ChooseSkin = new BigButton(Skin);
              _ChooseSkin.Bounds = new Rectangle(10, 90, ClientSize.Width-20, 32);
              _ChooseSkin.FitText("Skin: ", Master.CurrentSkin.Name);
              _ChooseSkin.Click += new EventHandler(OnChooseSkin);
              _ChooseSkin.Parent = this;

              _ChooseLayout = new BigButton(Skin);
              _ChooseLayout.Bounds = new Rectangle(10, 130, ClientSize.Width-20, 32);
              _ChooseLayout.FitText("Layout: ", Master.CurrentLayout);
              _ChooseLayout.Click += new EventHandler(OnChooseLayout);
              _ChooseLayout.Parent = this;

              _Cancel = new BigButton(Skin);
              _Cancel.BackColor = Color.DarkRed;
              _Cancel.Bounds = new Rectangle(10, 290, ClientSize.Width-20, 32);
              _Cancel.Text = "Close";
              _Cancel.Click += new EventHandler(OnCancel);
              _Cancel.Parent = this;
        }
Beispiel #2
0
        public ConnectionScreen(Skin skin)
            : base(skin)
        {
            _Connection = new ConnectionDetails();

              _UseActiveSync = new BigButton(Skin);
              _UseActiveSync.Bounds = new Rectangle(10, 10, ClientSize.Width-20, 32);
              _UseActiveSync.Text = "Use ActiveSync";
              _UseActiveSync.Click += new EventHandler(SelectActiveSync);
              _UseActiveSync.Parent = this;

              _Host = new BigButton(Skin);
              _Host.Bounds = new Rectangle(10, 50, ClientSize.Width-20, 32);
              _Host.FitText("Use WLAN: ", _Connection.Host);
              _Host.Click += new EventHandler(EditHost);
              _Host.Parent = this;

              _Cancel = new BigButton(Skin);
              _Cancel.BackColor = Color.DarkRed;
              _Cancel.Bounds = new Rectangle(10, 290, ClientSize.Width-20, 32);
              _Cancel.Text = "Close";
              _Cancel.Click += new EventHandler(OnCancel);
              _Cancel.Parent = this;
        }