public OpenRemoteServer() : base(Catalog.GetString("Open remote DAAP server"), null)
        {
            VBox.Spacing = 6;
            VBox.PackStart(new Label()
            {
                Xalign = 0.0f,
                Text   = Catalog.GetString("Enter server IP address and port:")
            }, true, true, 0);

            HBox box = new HBox();

            box.Spacing = 12;
            VBox.PackStart(box, false, false, 0);

            address_entry = ComboBoxEntry.NewText();
            address_entry.Entry.Activated += OnEntryActivated;
            address_entry.Entry.WidthChars = 30;
            address_entry.Show();

            port_entry       = new SpinButton(1d, 65535d, 1d);
            port_entry.Value = 3689;
            port_entry.Show();

            box.PackStart(address_entry, true, true, 0);
            box.PackEnd(port_entry, false, false, 0);

            address_entry.HasFocus = true;

            VBox.ShowAll();

            AddStockButton(Stock.Cancel, ResponseType.Cancel);
            AddStockButton(Stock.Add, ResponseType.Ok, true);

            LoadHistory();
        }
Exemplo n.º 2
0
 //Purpose: To remove the Question_Box that currently has the
 //Spin instructions
 //Requires:Nothing
 //Returns:Nothing
 private void Begin_Spin_Round_Click(object sender, EventArgs e)
 {
     Question_Box.Hide();
     SpinButton.Show();
     Begin_Spin_Round.Hide();
     Boarder_Box.Show();
     Quit_Button.Show();
     checkSpin(); //checks to see who goes first
 }
 public ToolBarSpinButton(int width, double min, double max, double step)
 {
     SpinButton = new SpinButton(min, max, 1);
     SpinButton.AddEvents((int)Gdk.EventMask.ButtonPressMask);
     SpinButton.WidthRequest = width;
     SpinButton.Show();
     Add(SpinButton);
     Show();
 }
Exemplo n.º 4
0
            public PreferenceSpinButton(PreferenceBase preference, int min_value, int max_value)
            {
                var spin_button = new SpinButton(min_value, max_value, 1);

                spin_button.ValueChanged += delegate {
                    if (sync)
                    {
                        this.preference.BoxedValue = (int)spin_button.Value;
                    }
                };
                spin_button.Show();
                PackEnd(spin_button, false, false, 0);
                this.preference   = preference;
                spin_button.Value = (int)preference.BoxedValue;
                sync = true;
            }