Ejemplo n.º 1
0
        public ConfigurationComboBox()
        {
            align = new Gtk.Alignment(0.5f, 0.5f, 1.0f, 0f);
            Add(align);

            align.LeftPadding  = 3;
            align.RightPadding = 3;

            combo = new DropDownBox();
            combo.AddItemSet(configs);
            combo.AddItemSet(runtimes);

            align.Add(combo);
            ShowAll();

            Combo.Changed += OnChanged;
            IdeApp.Workspace.ConfigurationsChanged      += OnConfigurationsChanged;
            IdeApp.Workspace.RuntimesChanged            += OnConfigurationsChanged;
            IdeApp.Workspace.ActiveRuntimeChanged       += OnActiveRuntimeChanged;
            IdeApp.Workspace.ActiveConfigurationChanged += OnActiveConfigurationChanged;
            Reset();
        }