Ejemplo n.º 1
0
        private void bw_DoWork(object sender, DoWorkEventArgs e)
        {
            var ie = new TsudaKageyu.IconExtractor(tbLibrary.Text);
            var i  = 0;

            this._Icons = ie.GetAllIcons().Select(s => new IconFile()
            {
                Icon = s, Index = i++
            }).ToList();
        }
Ejemplo n.º 2
0
 private void LoadIcons(object Params)
 {
     Invoke(new MethodInvoker(
                delegate {
         lvIcons.BeginUpdate();
         lvIcons.Items.Clear();
         var ie = new TsudaKageyu.IconExtractor(tbLibrary.Text);
         var i  = 0;
         _Icons = ie.GetAllIcons().Select(s => new IconFile()
         {
             Icon = s, Index = i++
         }).ToList();
         foreach (var icon in _Icons)
         {
             lvIcons.Items.Add(new ListViewItem("#" + icon.Index.ToString())
             {
                 Tag = icon.Index
             });
         }
         lvIcons.EndUpdate();
     }));
 }
Ejemplo n.º 3
0
		private void LoadIcons(object Params) {
			Invoke(new MethodInvoker(
							delegate {
								lvIcons.BeginUpdate();
								lvIcons.Items.Clear();
								var ie = new TsudaKageyu.IconExtractor(tbLibrary.Text);
								var i = 0;
								_Icons = ie.GetAllIcons().Select(s => new IconFile() { Icon = s, Index = i++ }).ToList();
								foreach (var icon in _Icons) {
									lvIcons.Items.Add(new ListViewItem("#" + icon.Index.ToString()) { Tag = icon.Index });
								}
								lvIcons.EndUpdate();
							}));
		}
Ejemplo n.º 4
0
		private void bw_DoWork(object sender, DoWorkEventArgs e) {
			var ie = new TsudaKageyu.IconExtractor(tbLibrary.Text);
			var i = 0;
			this._Icons = ie.GetAllIcons().Select(s => new IconFile() { Icon = s, Index = i++ }).ToList();
		}