/// <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); }
/// <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; }
/// <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); }
/// <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); }
public Control CreateControl() { Control = new AmigaOSProperties(); return(Control); }
public Control CreateControl() { Control = new AmigaOSProperties(); return Control; }