コード例 #1
0
ファイル: ObjectChooser.cs プロジェクト: dd-dk/sims3tools
 private ObjectChooser()
 {
     InitializeComponent();
     lvwColumnSorter = new ListViewColumnSorter();
     ObjectChooser_LoadListViewSettings();
     this.Load += new EventHandler(ObjectChooser_Load);
 }
コード例 #2
0
ファイル: Form25.cs プロジェクト: kstawiski/neurexam
        public Form25()
        {
            InitializeComponent();
            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;
            comboBox1.Text = "parametry (wyniki)";
            foreach (Control c in this.Controls)
            {

                if (c is TextBox)
                {

                    string identyfikacja = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\p\\auto\\" + this.Name + c.Name;

                    if (File.Exists(identyfikacja))
                    {
                        string pre = ""; TextBox t = c as TextBox;
                        t.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
                        t.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource;
                        StreamReader r = new StreamReader(identyfikacja); pre = r.ReadToEnd(); r.Close();
                        string[] preuz = pre.Split('|');
                        t.AutoCompleteCustomSource.AddRange(preuz);
                    }
                }
            }
        }
コード例 #3
0
        public LogSelectionView()
        {
            InitializeComponent();

            TxDictionaryBinding.AddTextBindings(this);
            LogBasePathHeader.Text = Tx.T("log selection view.list.log base path");
            LastUpdateHeader.Text = Tx.T("log selection view.list.last update");
            SizeHeader.Text = Tx.T("log selection view.list.size");

            Dock = DockStyle.Fill;

            // Set up and initialise column sorting
            logDirsColumnSorter = new ListViewColumnSorter(LogDirsListView);
            logDirsColumnSorter.SortColumn = 0;
            logDirsColumnSorter.Order = SortOrder.Ascending;
            logDirsColumnSorter.Update();
            LogDirsListView.ListViewItemSorter = logDirsColumnSorter;

            // Force-enable double buffering in the ListView to prevent flickering
            var prop = LogDirsListView.GetType().GetProperty(
                "DoubleBuffered",
                System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
            if (prop != null)
            {
                prop.SetValue(LogDirsListView, true, null);
            }
        }
コード例 #4
0
ファイル: frmMain.cs プロジェクト: 8bitavenue/LZW-Compression
        public frmMain()
        {
            InitializeComponent();

            m_new_compaction_dialog = new NewDlg();

            m_compact_file_names = new ArrayList();

            m_compact_file_orgsizes = new ArrayList();

            m_compact_file_sizes = new ArrayList();

            m_compact_file_contents = new ArrayList();

            m_encoder_list_view_item = new ListViewItem();

            m_extract_items = new ArrayList();

            m_folder_browser_dialog = new FolderBrowserDialog();

            m_list_view_column_sorter = new ListViewColumnSorter();

            this.lvFiles.ListViewItemSorter = m_list_view_column_sorter;

            Thread th = new Thread(new ThreadStart(DoSplash));

            th.Start();

            Thread.Sleep(3000);

            th.Abort();
        }
コード例 #5
0
 public MatchSimulator()
 {
     InitializeComponent();
     lvwColumnSorter = new ListViewColumnSorter();
     this.teamAScoreboard.ListViewItemSorter = lvwColumnSorter;
     this.teamBScoreboard.ListViewItemSorter = lvwColumnSorter;
 }
コード例 #6
0
ファイル: ucListView.cs プロジェクト: SpivEgin/hmailserver
        public ucListView()
        {
            _columnSorter = new ListViewColumnSorter();

             this.ListViewItemSorter = _columnSorter;

             this.FullRowSelect = true;
        }
コード例 #7
0
        /// <summary>Initializes a new instance of the <see cref="AccessDatabaseMessages"/> class.</summary>
        /// <param name="filePath">The file path.</param>
        public AccessDatabaseMessages(string filePath)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            lvwColumnSorter = new ListViewColumnSorter();
            listView1.ListViewItemSorter = lvwColumnSorter;

            //create the database connection
            OleDbConnection connection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+filePath);//C:\Documents and Settings\Bhavesh Patel\Nokia\MPDB\SmsDB.mdb

            //create the command object and store the sql query
            OleDbCommand command = new OleDbCommand(
                "select FOLDERS.Name, SMS.SenderNumber, SMS.ReceiverNumber, SMS.MessageData, SMS.SCTimeStamp from FOLDERS, SMS "
                + "WHERE FOLDERS.FolderKey = SMS.FolderKey "
                + "ORDER BY FOLDERS.Name ASC, SMS.SCTimeStamp ASC, SMS.MessageID DESC"
                , connection);
            try
            {
                connection.Open();

                //create the datareader object to connect to table
                OleDbDataReader reader = command.ExecuteReader();
                ListViewItem item;
                //iterate through the dataset
                while (reader.Read())
                {
                    item = new ListViewItem(reader.GetString(0)); // Folder Location
                    item.SubItems.Add(reader.GetString(1));// sender
                    string message = reader.GetString(3);
                    item.SubItems.Add(message);// message
                    DateTime dt = DateTime.Parse(reader.GetDateTime(4).ToString());
                    //concatenate linked messages - doesn't work yet, be smarter!
            //					if (listView1.Items.Count>0 && DateTime.Parse(listView1.Items[listView1.Items.Count-1].SubItems[3].Text+" " +listView1.Items[listView1.Items.Count-1].SubItems[4].Text)==dt)
            //					{
            //						item = listView1.Items[listView1.Items.Count -1];
            //						item.SubItems[2].Text = message + item.SubItems[2].Text;
            //					}
            //					else
            //					{
                        item.SubItems.Add(dt.Date.ToShortDateString());//date
                        item.SubItems.Add(dt.TimeOfDay.ToString());// time
                        item.SubItems.Add(reader.GetString(2));// reciever
                        listView1.Items.Add(item);
            //					}
                }

                //close reader
                reader.Close();

            }
            catch (OleDbException ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #8
0
        public MainForm()
        {
            InitializeComponent();

            columnSorter = new ListViewColumnSorter();
            ladderView.ListViewItemSorter = columnSorter;

            SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
        }
コード例 #9
0
 public MainUI()
 {
     InitializeComponent();
     lvColumnSorter = new ListViewColumnSorter();
     lv2ColumnSorter = new ListViewColumnSorter();
     lv3ColumnSorter = new ListViewColumnSorter();
     this.listView1.ListViewItemSorter = lvColumnSorter;
     this.listView3.ListViewItemSorter = lv3ColumnSorter;
 }
コード例 #10
0
ファイル: frmMain2.cs プロジェクト: cbinding/stellar
        public frmMain()
        {
            InitializeComponent();

            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            lvwProcesses.ListViewItemSorter = lvwColumnSorter;
        }
コード例 #11
0
ファイル: Main.cs プロジェクト: relrix/rtmpGUI
        public Main()
        {
            InitializeComponent();
            this.Font = SystemFonts.MessageBoxFont;
            wbApp.IsWebBrowserContextMenuEnabled = false;

            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;
        }
コード例 #12
0
ファイル: KeyList.cs プロジェクト: jasonlu/CloudKeys
 public KeyList()
 {
     InitializeComponent();
     Application.Idle += Application_Idle;
     _mgr = new KeyChainMgr();
     _sorter = new ListViewColumnSorter();
     _listview.ListViewItemSorter = _sorter;
     _listview.LostFocus += OnListviewLostFocus;
 }
コード例 #13
0
ファイル: BrowserWidget.cs プロジェクト: falerin/Sims4Tools
        const int tock = 250;//ms to update progress bar

        public BrowserWidget()
        {
            InitializeComponent();
            BrowserWidget_LoadListSettings();

            lvwColumnSorter = new ListViewColumnSorter();
            lookup = new Dictionary<IResourceIndexEntry, ListViewItem>();
            OnListUpdated(this, new EventArgs());
        }
コード例 #14
0
 public MainForm()
 {
     InitializeComponent();
     ScanTimer = new System.Timers.Timer(60000);
     ScanTimer.Elapsed += TimerUp;
     ScanTimer.AutoReset = true;
     ScanTimer.Enabled = true;
     lvwColumnSorter = new ListViewColumnSorter();
     lvwColumnSorter.Order = SortOrder.Ascending;
 }
コード例 #15
0
        public MainForm()
        {
            InitializeComponent();

            // Create an instance of a ListView column sorter and assign it to the ListView control.
            columnSorter = new ListViewColumnSorter();
            listView1.ListViewItemSorter = columnSorter;

            SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
        }
コード例 #16
0
ファイル: SoldiersForm.cs プロジェクト: kwhershey/SoldierDB
        public SoldiersForm()
        {
            InitializeComponent();
            menuStripViewSoldierList_Click(null, null);

            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            this.listViewSoldiers.ListViewItemSorter = lvwColumnSorter;
        }
コード例 #17
0
ファイル: ListForm.cs プロジェクト: umby24/CSLauncher
        public ListForm(ClassicubeServer[] servers, ClassicubeService classicube)
        {
            InitializeComponent();
            _servers = servers;
            _filtered = servers;
            _service = classicube;

            _lvwColumnSorter = new ListViewColumnSorter();
            listView1.ListViewItemSorter = _lvwColumnSorter;
        }
コード例 #18
0
ファイル: IssuesBrowser.cs プロジェクト: orellabac/turtletfs
        public IssuesBrowser(string parameters, string comment)
        {
            InitializeComponent();
            Comment = comment;
            options = TfsOptionsSerializer.Deserialize(parameters);

            ColumnHeader idColumnHeader = listViewIssues.Columns.Cast<ColumnHeader>().FirstOrDefault(header => header.Name == "ID");
            int idColumnIndex = idColumnHeader == null ? 2 : idColumnHeader.Index;
            listViewColumnSorter = new ListViewColumnSorter(idColumnIndex);
            listViewIssues.ListViewItemSorter = listViewColumnSorter;
        }
コード例 #19
0
 public fEnTerima()
 {
     Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
     Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");
     InitializeComponent();
     koneksi = konek.KonekDb();
     dtTanggal.CustomFormat = "dd/MM/yyyy";
     dtTanggal.Format = DateTimePickerFormat.Custom;
     lvwColumnSorter = new ListViewColumnSorter();
     this.lvTampil.ListViewItemSorter = lvwColumnSorter;
 }
コード例 #20
0
        public SoundPackControl()
        {
            InitializeComponent();

            lvwColumnSorter            = new ListViewColumnSorter();
            lstSets.ListViewItemSorter = lvwColumnSorter;

            backgroundWorker1 = new BackgroundWorker();
            backgroundWorker1.WorkerReportsProgress      = false;
            backgroundWorker1.WorkerSupportsCancellation = false;
            backgroundWorker1.DoWork += backgroundWorker1_DoWork;
        }
コード例 #21
0
ファイル: SoldiersForm.cs プロジェクト: kwhershey/SoldierDB
        //handles calling on a custom database
        public SoldiersForm(String db, SoldiersForm pf)
        {
            databaseFile = db;
            parentForm = pf;
            InitializeComponent();
            menuStripViewSoldierList_Click(null, null);

            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            this.listViewSoldiers.ListViewItemSorter = lvwColumnSorter;
        }
コード例 #22
0
        List<string> steamIdList = new List<string>(); // Stores Player Steam IDs

        #endregion Fields

        #region Constructors

        public TrackSteamPlayers()
        {
            InitializeComponent();
            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            playerTable.ListViewItemSorter = lvwColumnSorter;
            lvwColumnSorter.SortColumn = 0;
            lvwColumnSorter.Order = SortOrder.Ascending;
            playerTable.Sort();
            ColumnHeader header = playerTable.Columns[0];
            header.Text = "\u25B2 " + header.Text;
        }
コード例 #23
0
ファイル: FormAdmin.cs プロジェクト: wanbok/kiwi
        public FormAdmin()
        {
            InitializeComponent();
            adminDC = new CAdminDataController();
            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;

            txt기존업계평균 = new TextBox[26] {
                txtOut1, txtOut2, txtOut6, txtOut7, txtOut8, txtOut9, txtOut10,
                txtOut11, txtOut12, txtOut13, txtOut14, txtOut15, txtOut16, txtOut17, txtOut18, txtOut19, txtOut20,
                txtOut21, txtOut22, txtOut23, txtOut24, txtOut25, txtOut26, txtOut27, txtOut28,
                txtOut31
            };

            txt업계평균 = new TextBox[26] {
                txtOut32, txtOut33, txtOut37, txtOut38, txtOut39, txtOut40,
                txtOut41, txtOut42, txtOut43, txtOut44, txtOut45, txtOut46, txtOut47, txtOut48, txtOut49, txtOut50,
                txtOut51, txtOut52, txtOut53, txtOut54, txtOut55, txtOut56, txtOut57, txtOut58, txtOut59,
                txtOut62
            };

            txtInput = new TextBox[26] {
                    txtInput1, txtInput2, txtInput6, txtInput7, txtInput8, txtInput9, txtInput10,
                    txtInput11, txtInput12, txtInput13, txtInput14, txtInput15, txtInput16, txtInput17, txtInput18, txtInput19, txtInput20,
                    txtInput21, txtInput22, txtInput23, txtInput24, txtInput25, txtInput26, txtInput27, txtInput28,
                    txtInput31,
            };

            txtAOut = new TextBox[26] {
                txtAOut1, txtAOut2, txtAOut6, txtAOut7, txtAOut8, txtAOut9, txtAOut10,
                txtAOut11, txtAOut12, txtAOut13, txtAOut14, txtAOut15, txtAOut16, txtAOut17, txtAOut18, txtAOut19, txtAOut20,
                txtAOut21, txtAOut22, txtAOut23, txtAOut24, txtAOut25, txtAOut26, txtAOut27, txtAOut28,
                txtAOut31
            };

            txtExistedAsp = new TextBox[8] { textBox1, textBox2, textBox3, textBox4, textBox5, textBox6, textBox7, textBox8 };

            txtInputAsp = new TextBox[8] { 유통모델_LG, 유통모델_SS, 유통모델_소계, 사업자모델_LG, 사업자모델_SS, 사업자모델_소계, ASP_전체계, 리베이트 };
            txtAInputAsp = new TextBox[8] { out유통모델_LG, out유통모델_SS, out유통모델_소계, out사업자모델_LG, out사업자모델_SS, out사업자모델_소계, outASP_전체계, out리베이트 };

            기존업계평균 = new Double[26];
            업계평균 = new Double[26];
            nInput = new Double[26];
            nAOut = new Double[26];

            readFileOfExistedAverage();

            refreshList();

            applyFileNameLabel();
        }
コード例 #24
0
        private DropboxHistory()
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            // Init sorting
            columnSorter = new ListViewColumnSorter();
            this.listview_Dropbox_uploads.ListViewItemSorter = columnSorter;
            columnSorter.SortColumn = 2; //sort by date
            columnSorter.Order = SortOrder.Descending;
            redraw();
            if (listview_Dropbox_uploads.Items.Count > 0) {
                listview_Dropbox_uploads.Items[0].Selected = true;
            }
        }
コード例 #25
0
ファイル: Attendance.cs プロジェクト: uwcbc/uwcbc-marimba
        private void Attendance_Load(object sender, EventArgs e)
        {
            // add columns to listview
            // to improve performance, we are fixing the number of headers rather than make it dynamic
            // assume no more than eleven rehearsals
            // the first one is to count a member's attendance
            lvAttendance.SmallImageList = Program.home.instrumentSmall;
            setLvColumns(13);
            // this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            cbTerm.Items.AddRange(ClsStorage.currentClub.GetTermNames());
            lvmColumnSorter = new ListViewColumnSorter();
            this.lvAttendance.ListViewItemSorter = lvmColumnSorter;

            // if we default to selecting current term, do so!
            if (Properties.Settings.Default.selectCurrentTerm)
                cbTerm.SelectedIndex = ClsStorage.currentClub.listTerms.Count - 1;
        }
コード例 #26
0
 public ProcessList()
 {
     InitializeComponent();
     lvwColumnSorter = new ListViewColumnSorter();
     this.listView1.ListViewItemSorter = lvwColumnSorter;
     Process[] processlist = Process.GetProcesses();
     foreach (Process p in processlist) {
         ListViewItem i3 = new ListViewItem(p.ProcessName);
         i3.Tag = p;
         ListViewItem.ListViewSubItem sub_i3 = new ListViewItem.ListViewSubItem();
         sub_i3.Text = p.Id + "";
         i3.SubItems.Add(sub_i3);
         sub_i3 = new ListViewItem.ListViewSubItem();
         sub_i3.Text = p.MainWindowTitle + "";
         i3.SubItems.Add(sub_i3);
         listView1.Items.Add(i3);
     }
 }
コード例 #27
0
        public CondorSubmitGUI()
        {
            InitializeComponent();
            AppDomain currentDomain = AppDomain.CurrentDomain;
            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(GlobalExceptionHandler);

            PriorityCombo.SelectedIndex = 2;
            ProcessCombo.SelectedIndex = 0;
            RectifySpacingComboBox.SelectedIndex = 7;
            ProgVersionLabel.Text = String.Format("CondorSubmit GUI v{0}.{1}", Assembly.GetExecutingAssembly().GetName().Version.Major.ToString(), Assembly.GetExecutingAssembly().GetName().Version.Minor.ToString());
            CurrentPanel = ATPanel;
            CurrentPanel.Visible = true;
            CurrentPanel.Enabled = true;
            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            ATBlockListView.ListViewItemSorter = lvwColumnSorter;
        }
コード例 #28
0
ファイル: Form1.cs プロジェクト: Mantus667/MyMovie
        /// <summary>
        /// Basiskonstruktor. Zusätzlich zur initialisierung der Formelemente, wird der ColumnSorter
        /// für das ListView, das Icon für das Suchfeld und verschiedene EventHandler gesetzt
        /// </summary>
        public Form1()
        {
            InitializeComponent();

            controller = new clXMLController();

               // Assign a text box customiser to show an
               // icon in the near margin of textBox1:
               textBox1Icon = new TextBoxMarginCustomise();
               textBox1Icon.ImageList = ilsIcons;
               textBox1Icon.Icon = 0;
               textBox1Icon.Attach(textBox1);
               textBox1.TextChanged += new EventHandler(textBox1_TextChanged);

            //ListView Sorter
            // Create an instance of a ListView column sorter and assign it
            // to the ListView control. Set the first Column to be sorted
            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;
            listView1.ColumnClick += new ColumnClickEventHandler(lv1_columnclick);
            lvwColumnSorter.SortColumn = 0;
            lvwColumnSorter.Order = SortOrder.Ascending;

            //ListView
            listView1.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(showMovie);

            //Plot RTB
            rtbDesc.AutoSize = true;
            rtbDesc.ContentsResized += new ContentsResizedEventHandler(rtb_ContentsResized);

            //Screenshots Container
            flpScreenshots.ControlAdded += new ControlEventHandler(flpScreenshots_ControlAdded);

            //LinkLabel
            lblTrailer.LinkClicked += new LinkLabelLinkClickedEventHandler(lblTrailer_LinkClicked);
            lblHP.LinkClicked += new LinkLabelLinkClickedEventHandler(lblTrailer_LinkClicked);

            //ActiveGenre
            ActiveGenre = new Dictionary<string, bool>();
            for (int i = 0; i < listView1.Groups.Count;i++ )
            {
                ActiveGenre.Add(listView1.Groups[i].Name, true);
            }
        }
コード例 #29
0
ファイル: TGISearch.cs プロジェクト: dd-dk/sims3tools
        public TGISearch()
        {
            InitializeComponent();
            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;

            cbResourceType.Value = 0;
            tbResourceGroup.Text = "0x00000000";
            tbInstance.Text = "0x0000000000000000";






            ckbUseEA.Enabled = ckbUseCC.Enabled = ObjectCloner.Properties.Settings.Default.CCEnabled;
            ckbUseEA.Checked = true;
            ckbUseCC.Checked = ckbUseCC.Enabled && FileTable.CustomContentEnabled;
        }
コード例 #30
0
ファイル: Form23.cs プロジェクト: kstawiski/neurexam
        public Form23()
        {
            InitializeComponent();
            var tabc = tabControl1.TabPages;
            foreach (TabPage t in tabc)
            {
                //HideTabPage(t);
            }
            // Create an instance of a ListView column sorter and assign it
            // to the ListView control.
            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;
            ColumnHeader columnheader;		// Used for creating column headers.
            ListViewItem listviewitem;		// Used for creating listview items.

            // Ensure that the view is set to show details.
            listView1.View = View.Details;
            if (kreator == "kgorna") { listView2.Size = new Size(listView2.Size.Width, 163); groupBox1.Visible = true; groupBox2.Visible = false; ruchykgornej(); odruchykgornej(); HideTabPage(tabPage5); }
            if (kreator == "kdolna") { listView2.Size = new Size(listView2.Size.Width, 264); groupBox1.Visible = false; groupBox2.Visible = true; ruchykdolnej(); odruchykdolnej(); HideTabPage(tabPage4); }
        }
コード例 #31
0
ファイル: Search.cs プロジェクト: dd-dk/sims3tools
 public Search()
 {
     InitializeComponent();
     lvwColumnSorter = new ListViewColumnSorter();
     this.listView1.ListViewItemSorter = lvwColumnSorter;
     Search_LoadListViewSettings();
     cbCatalogType.Items.AddRange(new string[] {
         "Any",
         "CAS Part",
         "Fence", "Stairs", "Proxy Product", "Terrain Geometry Brush",
         "Railing", "Terrain Paint Brush", "Fireplace", "Terrain Water Brush",
         "Fountain / Pool",
         "Foundation", "Normal Object", "Wall/Floor Pattern", "Wall Style",
         "Roof Style", "Modular Resource", "Roof Pattern",
     });
     cbCatalogType.SelectedIndex = 0;
     ckbUseEA.Enabled = ckbUseCC.Enabled = ObjectCloner.Properties.Settings.Default.CCEnabled;
     ckbUseEA.Checked = true;
     ckbUseCC.Checked = ckbUseCC.Enabled && FileTable.CustomContentEnabled;
 }
コード例 #32
0
        private void Form1_Load(object sender, EventArgs e)
        {
            lvwColumnSorter = new ListViewColumnSorter();
            this.listView1.ListViewItemSorter = lvwColumnSorter;

            //LoadData(listView1, workpath);
            Win32API.DragAcceptFiles(this.Handle, true);


            #region VIEW
            largeIcon1.Checked = ini.ReadBool("附件", "largeIcon1", false);
            smallIcon1.Checked = ini.ReadBool("附件", "smallIcon1", false);
            list1.Checked      = ini.ReadBool("附件", "list1", false);
            tile1.Checked      = ini.ReadBool("附件", "tile1", false);
            details1.Checked   = ini.ReadBool("附件", "details1", true);
            if (largeIcon1.Checked)
            {
                listView1.View = View.LargeIcon;
            }
            if (smallIcon1.Checked)
            {
                listView1.View = View.SmallIcon;
            }
            if (list1.Checked)
            {
                listView1.View = View.List;
            }
            if (tile1.Checked)
            {
                listView1.View = View.Tile;
            }
            if (details1.Checked)
            {
                listView1.View = View.Details;
            }
            #endregion
        }