/// <summary> /// Populates the gallery listbox with the available galleries and selects the first gallery available /// </summary> /// <param name="galleries"></param> internal void SetListBoxSub(PlusPlayLib.List.GalleryListB galleries) { ListBoxSub_Populate(galleries); if (galleries.Count > 0) ListBoxSub.SelectedIndex = 0; }
/// <summary> /// Sets the gallery for the UIPicture Panel. This method generates it's own UIPictureBox controls /// using a background worker. OVERLOAD: THIS OVERLOAD IS POST-PROCESSED FILES. /// </summary> /// <param name="Gallery"></param> /// <param name="SelectionMode"></param> public void SetGallery(PlusPlayLib.Bus.Gallery gallery, bool selectionMode) { try { Initialize(false); foreach (UIPictureBox children in WrapPanelMain.Children) children.UIPictureBox_OverrideSelectionEvent(Key.None, children); WrapPanelMain.Children.Clear(); for (int i = 0; i < gallery.Files.Count; i++) { UIControls.UIPictureBox pb = new UIPictureBox(); pb.OverrideSelectionEvent += pb_OverrideSelectionEvent; _pictures.Add(gallery.Files[i].FullName); Array.Resize(ref _boxes, _boxes.Length + 1); _boxes[i] = pb; WrapPanelMain.Children.Add(pb); } _imageLoaderBackgroundWorker.RunWorkerAsync(); } catch (Exception) { } }
public PlusPlayLib.List.GalleryList ListBoxModelGallerySelection_ListBoxSub_Set(PlusPlayLib.Bus.Model Model) { TextBoxModel.Text = Model.ModelName; TextBoxGallery.Clear(); return _processor.GetGalleryList(Model); }
/// <summary> /// Populates the gallery listbox with the available galleries and selects specified gallery if available /// </summary> /// <param name="galleries"></param> /// <param name="galleryName"></param> internal void SetListBoxSub(PlusPlayLib.List.GalleryListB galleries, string galleryName) { ListBoxSub_Populate(galleries); foreach (PlusPlayLib.Bus.Gallery gallery in galleries) if (gallery.GalleryName == galleryName) ListBoxSub.SelectedItem = gallery; }
/// <summary> /// Populates the model listbox with the available models and selects the first model available /// </summary> /// <param name="models"></param> internal void SetListBoxMain(PlusPlayLib.List.ModelListB models) { ListBoxMain_Populate(models); // #FUTURE //if (_currentlyDisplayed == CurrentlyDisplayed.Sub) // ListBoxSub_Populate(model }
public void SetGallery(PlusPlayLib.Bus.Gallery gallery) { FlowLayoutPanelMain.Controls.Clear(); foreach (FileInfo picture in gallery.Files) { UIPictureBox pb = new UIPictureBox(); pb.SetData(picture); FlowLayoutPanelMain.Controls.Add(pb); } }
void SetListBoxSub(PlusPlayLib.List.GalleryList items) { //if (items.Count > 0) //{ // ListBoxSub.Items.Clear(); // foreach (string item in items) // ListBoxSub.Items.Add(item); // ListBoxSub.SelectedIndex = 0; //} galleryListBindingSource.DataSource = items; }
public void SetListBoxMain(PlusPlayLib.List.ModelList items) { //if (items.Count > 0) //{ // ListBoxMain.Items.Clear(); // foreach (PlusPlayLib.Bus.Model item in items) // ListBoxMain.Items.Add(item); // ListBoxMain.SelectedIndex = 0; //} modelListBindingSource.DataSource = items; }
public void SetGallery(PlusPlayLib.Bus.Gallery gallery, bool selectionMode) { try { Initialize(); WrapPanelMain.Children.Clear(); for (int i = 0; i < gallery.Files.Count; i++) { WUIControls.WUIPictureBox pb = new WUIPictureBox(); pb.OverrideSelectionEvent += pb_OverrideSelectionEvent; _pictures.Add(gallery.Files[i]); Array.Resize(ref _boxes, _boxes.Length + 1); _boxes[i] = pb; WrapPanelMain.Children.Add(pb); } _backgroundWorker.RunWorkerAsync(); } catch (Exception) { } }
private void ListBoxModelGallerySelection_MainListBox_SelectedValueChanged(PlusPlayLib.Bus.ModelB ModelB) { _selectedModel = ModelB; }
private void ListBoxModelGallerySelection_SubListBox_SelectedValueChanged(PlusPlayLib.Bus.Gallery Gallery) { try { _selectedGallery = Gallery; PicturePanelMain.SetGallery(Gallery, false); InfoDisplayControl.SetDisplay(_selectedModel.ModelName, _selectedGallery.GalleryName); //SetAvailabilityButton_PostingFunctions(false); #FFU } catch (Exception) { } }
public PlusPlayLib.List.GalleryListB ListBoxModelGallerySelection_ListBoxSub_Set(PlusPlayLib.Bus.ModelB Model) { PlusPlayLib.List.GalleryListB galleryList = _processor.GetGalleryList(Model.ModelName); SetAvailabilityButton_PostingFunctions(true); if (galleryList.Count > 0) SetAvailabilityButton_SelectFunctions(true); return galleryList; }
void ListBoxSub_Populate(PlusPlayLib.List.GalleryListB galleries) { ListBoxSub.DataContext = galleries; ListBoxSub.DisplayMemberPath = "GalleryName"; DataContext = this; ShowListBoxSub(true); }
void ListBoxMain_Populate(PlusPlayLib.List.ModelListB models) { ListBoxMain.DataContext = models; ListBoxMain.DisplayMemberPath = "ModelName"; DataContext = this; //ShowListBoxSub(false); }
private void ListBoxModelGallerySelection_SubListBox_SelectedValueChanged(PlusPlayLib.Bus.Gallery Gallery) { TextBoxGallery.Text = Gallery.GalleryName; try { PicturePanelMain.SetGallery(Gallery, false); } catch (Exception) { } }