Exemplo n.º 1
0
 private void LoadIcons(object Params)
 {
     Invoke(new MethodInvoker(
                delegate
     {
         lvIcons.BeginUpdate();
         lvIcons.Items.Clear();
         IconReader ir = new IconReader();
         icons         = ir.ReadIcons(Params.ToString(), new Size(48, 48));
         foreach (IconFile icon in icons)
         {
             ListViewItem lvi = new ListViewItem("#" + icon.Index.ToString());
             lvi.Tag          = icon.Index;
             lvIcons.Items.Add(lvi);
         }
         lvIcons.EndUpdate();
     }));
 }
Exemplo n.º 2
0
        void bw_DoWork(object sender, DoWorkEventArgs e)
        {
            IconReader ir = new IconReader();

            icons = ir.ReadIcons(tbLibrary.Text, new Size(48, 48));
        }