2013-02-18 03:49:21 +04:00
|
|
|
/*
|
|
|
|
NAPS2 (Not Another PDF Scanner 2)
|
|
|
|
http://sourceforge.net/projects/naps2/
|
|
|
|
|
2013-03-03 02:44:54 +04:00
|
|
|
Copyright (C) 2009 Pavel Sorejs
|
|
|
|
Copyright (C) 2012 Michael Adams
|
2013-04-28 23:48:24 +04:00
|
|
|
Copyright (C) 2013 Peter De Leeuw
|
2014-11-14 00:45:36 +03:00
|
|
|
Copyright (C) 2012-2014 Ben Olden-Cooligan
|
2013-02-18 03:49:21 +04:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
*/
|
2013-07-07 21:23:20 +04:00
|
|
|
|
2013-02-15 05:18:20 +04:00
|
|
|
using System;
|
2013-03-04 02:36:32 +04:00
|
|
|
using System.Collections.Generic;
|
2013-02-15 05:18:20 +04:00
|
|
|
using System.Drawing;
|
2013-03-04 02:36:32 +04:00
|
|
|
using System.Linq;
|
2013-02-15 05:18:20 +04:00
|
|
|
|
2013-07-10 02:20:27 +04:00
|
|
|
namespace NAPS2.WinForms
|
2013-02-15 05:18:20 +04:00
|
|
|
{
|
2013-08-28 01:44:25 +04:00
|
|
|
public partial class FChooseIcon : FormBase
|
2013-02-15 05:18:20 +04:00
|
|
|
{
|
|
|
|
private int iconID;
|
|
|
|
|
2013-08-30 03:07:39 +04:00
|
|
|
public FChooseIcon()
|
2013-02-15 05:18:20 +04:00
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
iconID = -1;
|
|
|
|
}
|
|
|
|
|
2013-03-04 02:02:19 +04:00
|
|
|
public int IconID
|
|
|
|
{
|
|
|
|
get { return iconID; }
|
|
|
|
set { iconID = value; }
|
|
|
|
}
|
|
|
|
|
2013-02-15 05:18:20 +04:00
|
|
|
private void listView1_ItemActivate(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
iconID = iconList.SelectedItems[0].Index;
|
2013-03-04 02:02:19 +04:00
|
|
|
Close();
|
2013-02-15 05:18:20 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
private void FChooseIcon_Load(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
iconList.LargeImageList = ilProfileIcons.IconsList;
|
2013-08-28 01:44:25 +04:00
|
|
|
int i = 0;
|
2013-02-15 05:18:20 +04:00
|
|
|
foreach (Image icon in ilProfileIcons.IconsList.Images)
|
|
|
|
{
|
|
|
|
iconList.Items.Add("", i);
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-02-18 03:49:21 +04:00
|
|
|
}
|