LabelPlus.PicView.SetLabels C# (CSharp) Method

SetLabels() public method

public SetLabels ( List items, string groupString, Color colors ) : void
items List
groupString string
colors Color
return void
        public void SetLabels(List<LabelItem> items, string[] groupString , Color[] colors)
        {
            this.labels = items;
            this.colorList = colors;
            this.groupString = groupString;
            MakeImageNow();
        }

Usage Example

Ejemplo n.º 1
0
 private void labelItemListChanged(object sender, EventArgs e)
 {
     try
     {
         if (wsp.Store.Filenames.Contains(fileName))
         {
             listviewapt.ReloadItems(wsp.Store[fileName]);
             picview.SetLabels(wsp.Store[fileName], wsp.GroupDefine.GetViewNames(), wsp.GroupDefine.GetColors());
             //listviewapt.SelectedIndex = 0;
         }
         else
         {
             listviewapt.ReloadItems(null);
             picview.SetLabels(null, null, null);
         }
     }
     catch { }
 }