Exemplo n.º 1
0
        /// <summary>
        /// Creates the user interface control and connects all event handlers.
        /// </summary>
        /// <returns></returns>
        public Control CreateControl()
        {
            Control = new AmigaOSProperties();
            this.Control.KickstartVersionList.DataSource =
                platform.MapKickstartToListOfLibraries
                .Select(kv => new ListOption
            {
                Text  = string.Format("Kickstart {0}", kv.Key),
                Value = kv.Value
            })
                .ToList();
            this.Control.KickstartVersionList.SelectedIndex = 0;
            PopulateLoadedLibraryList();

            this.Control.KickstartVersionList.SelectedIndexChanged += KickstartVersionList_SelectedIndexChanged;

            return(Control);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Creates the user interface control and connects all event handlers.
        /// </summary>
        /// <returns></returns>
        public Control CreateControl()
        {
            Control = new AmigaOSProperties();
            this.Control.KickstartVersionList.DataSource =
                platform.MapKickstartToListOfLibraries
                .Select(kv => new ListOption
                {
                    Text = string.Format("Kickstart {0}", kv.Key),
                    Value = kv.Value
                })
                .ToList();
            this.Control.KickstartVersionList.SelectedIndex = 0;
            PopulateLoadedLibraryList();

            this.Control.KickstartVersionList.SelectedIndexChanged += KickstartVersionList_SelectedIndexChanged;

            return Control;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Creates the user interface control and connects all event handlers.
        /// </summary>
        /// <returns></returns>
        public object CreateControl()
        {
            Control = new AmigaOSProperties();
            var mapKickstartToListOfLibraries = platform.MapKickstartToListOfLibraries;

            if (mapKickstartToListOfLibraries is not null)
            {
                this.Control.KickstartVersionList.DataSource =
                    mapKickstartToListOfLibraries
                    .Select(kv => new ListOption($"Kickstart {kv.Key}", kv))
                    .ToList();
                this.Control.KickstartVersionList.SelectedIndex = 0;
            }
            PopulateLoadedLibraryList();

            this.Control.KickstartVersionList.SelectedIndexChanged += KickstartVersionList_SelectedIndexChanged;
            this.Control.ImportButton.Click += ImportButton_Click;
            return(Control);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Creates the user interface control and connects all event handlers.
        /// </summary>
        /// <returns></returns>
        public object CreateControl()
        {
            Control = new AmigaOSProperties();
            var mapKickstartToListOfLibraries = platform.MapKickstartToListOfLibraries;

            if (mapKickstartToListOfLibraries != null)
            {
                this.Control.KickstartVersionList.DataSource =
                    mapKickstartToListOfLibraries
                    .Select(kv => new ListOption(
                                string.Format("Kickstart {0}", kv.Key),
                                kv.Value))
                    .ToList();
                this.Control.KickstartVersionList.SelectedIndex = 0;
            }
            PopulateLoadedLibraryList();

            this.Control.KickstartVersionList.SelectedIndexChanged += KickstartVersionList_SelectedIndexChanged;

            return(Control);
        }
Exemplo n.º 5
0
 public Control CreateControl()
 {
     Control = new AmigaOSProperties();
     return(Control);
 }
 public Control CreateControl()
 {
     Control = new AmigaOSProperties();
     return Control;
 }