亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? filelistbox.cs

?? 以前做NOKIA手機與PC通信時所參考的源代碼,里面包括兩個程序,一個是手機文件夾瀏覽源碼,另一個手機SIS安裝程序.
?? CS
字號:
//Filename    : FileListBox.cs
//Part of     : Phone Navigator C# example
//Description : Implementation of phone navigator's file list box
//Version     : 3.2
//
//This example is only to be used with PC Connectivity API version 3.2.
//Compability ("as is") with future versions is not quaranteed.
//
//Copyright (c) 2007 Nokia Corporation.
//
//This material, including but not limited to documentation and any related
//computer programs, is protected by intellectual property rights of Nokia
//Corporation and/or its licensors.
//All rights are reserved. Reproducing, modifying, translating, or
//distributing any or all of this material requires the prior written consent
//of Nokia Corporation. Nokia Corporation retains the right to make changes
//to this material at any time without notice. A copyright license is hereby
//granted to download and print a copy of this material for personal use only.
//No other license to any other intellectual property rights is granted. The
//material is provided "as is" without warranty of any kind, either express or
//implied, including without limitation, any warranty of non-infringement,
//merchantability and fitness for a particular purpose. In no event shall
//Nokia Corporation be liable for any direct, indirect, special, incidental,
//or consequential loss or damages, including but not limited to, lost profits
//or revenue,loss of use, cost of substitute program, or loss of data or
//equipment arising out of the use or inability to use the material, even if
//Nokia Corporation has been advised of the likelihood of such damages occurring.

using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
using System.Windows.Forms;
using System.IO;


namespace CSFileBrowser.NET
{
    //===================================================================
    // FileListBox
    public class FileListBox : System.Windows.Forms.ListBox
    {
        private string m_strCurrentPath;

        //===================================================================
        // Constructor
        //
        //===================================================================
        public FileListBox()
        {
            m_strCurrentPath = "";
        }

        //===================================================================
        // GetCurrentFolder
        //
        // Returns currently selected folder.
        // If no folder is selected, returns folder, the content of which is
        // currently shown.
        // 
        //===================================================================
        public string GetCurrentFolder()
        {
            return m_strCurrentPath;
        }

        //===================================================================
        // GetCurrentFile
        //
        // Returns currently selected file.
        // If no file is selected, returns empty string.
        // 
        //===================================================================
        public string GetCurrentFile()
        {
            string functionReturnValue = null;
            functionReturnValue = "";
            int index = SelectedIndex;
            if (index != -1)
            {
                // there is a selected item
                string strSelectedTxt;
                strSelectedTxt = Items[index].ToString();
                if (strSelectedTxt.Substring(0, 1) != "[")
                {
                    // selected item is a file
                    functionReturnValue = strSelectedTxt;
                }
            }
            return functionReturnValue;
        }

        //===================================================================
        // PopulateList
        //
        // Adds folders, files and drives of current folder to listbox
        // 
        //===================================================================
        public void PopulateList(string strNewDirectory)
	{
		this.Items.Clear();
		try {
			string strPath;

			if (m_strCurrentPath.Length == 0)
			{
				strPath = ("c:\\");
			}
            else if (strNewDirectory == "..") {
				// Parent folder
				strPath = m_strCurrentPath;
				int iLastSeparator = strPath.LastIndexOf("\\");
				strPath = strPath.Remove(iLastSeparator, strPath.Length - iLastSeparator);
				if (strPath.Length < 3 & !strPath.EndsWith("\\"))
				{
					strPath = strPath + "\\";
				}
			}
			else
			{
				if (m_strCurrentPath.EndsWith("\\"))
				{
					strPath = m_strCurrentPath + strNewDirectory;
				}
				else
				{
					strPath = m_strCurrentPath + "\\" + strNewDirectory;
				}
			}

			DirectoryInfo dirInfo = new DirectoryInfo(strPath);

			if (strPath.Length > 3) this.Items.Add("[..]"); 

			// List directories
			DirectoryInfo[] dirInfos = dirInfo.GetDirectories();
			//DirectoryInfo di;
			foreach (DirectoryInfo di in dirInfos) {
				string dirName = "[" + di.ToString() + "]";
				this.Items.Add(dirName);
			}

			// List files
			FileInfo[] fileInfos = dirInfo.GetFiles();
			//FileInfo fi;
			foreach (FileInfo fi in fileInfos) {
				this.Items.Add(fi.ToString());
			}

			// List drives if the current level is at the root
			if (strPath.Length >= 0 & strPath.Length <= 3)
			{
				string[] strArrDrives = System.IO.Directory.GetLogicalDrives();
				//string drive;
				foreach (string drive in strArrDrives) {
					string driveName = "[-" + drive.Substring(0, 1) + "-]";
					this.Items.Add(driveName);
				}
			}

			m_strCurrentPath = strPath;
		}

		catch {
			// If reading directory failed offer all logical drives
			string[] strArrDrives = System.IO.Directory.GetLogicalDrives();
			//string drive;
			foreach (string drive in strArrDrives) {
				string driveName = "[-" + drive.Substring(0, 1) + "-]";
				this.Items.Add(driveName);
			}
		}
	}

        //===================================================================
        // OnDoubleClick
        //
        // User has doubleclicked in the listbox.
        // 
        //===================================================================
        protected override void OnDoubleClick(EventArgs e)
        {
            int iItemIdx = this.SelectedIndex;
            if (iItemIdx >= 0)
            {
                string strItemText = this.Items[iItemIdx].ToString();
                if (strItemText.Substring(0, 1) == "[")
                {
                    if (strItemText.Substring(1, 1) == "-")
                    {
                        // drive selected
                        m_strCurrentPath = strItemText.Substring(2, 1) + ":\\";
                        PopulateList("");
                    }
                    else
                    {
                        string strNewDirectory = strItemText;
                        strNewDirectory = strNewDirectory.Remove(0, 1);
                        strNewDirectory = strNewDirectory.Remove(strNewDirectory.Length - 1, 1);
                        PopulateList(strNewDirectory);
                    }
                }
            }
            Common.MainForm.LBL_PCFiles.Text = m_strCurrentPath;
            base.OnDoubleClick(e);
        }
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区免费观看| 久久九九久精品国产免费直播| 国产精品视频一二| 成熟亚洲日本毛茸茸凸凹| 国产清纯白嫩初高生在线观看91| 国产成人午夜精品5599| 国产精品少妇自拍| 91女人视频在线观看| 一区二区三区四区蜜桃| 欧美一级日韩一级| 国产精品一区二区三区乱码| 国产精品久久久久婷婷 | 成人a区在线观看| 亚洲欧美日韩中文播放| 色婷婷亚洲一区二区三区| 午夜电影网一区| 精品电影一区二区三区 | 日韩免费看的电影| 久久精品国产成人一区二区三区| 久久久久97国产精华液好用吗| 成人美女视频在线观看18| 一区二区三区高清不卡| 91精品国模一区二区三区| 国产一二三精品| 亚洲日本丝袜连裤袜办公室| 国产精品三级久久久久三级| 在线免费一区三区| 精品伊人久久久久7777人| 亚洲素人一区二区| 欧美一卡在线观看| 粉嫩高潮美女一区二区三区| 亚洲国产精品久久久久婷婷884| 精品88久久久久88久久久| 成人av网站免费| 亚洲成人av电影| 日本一区二区三区四区在线视频| 欧美日韩亚洲国产综合| 国产精品一二三在| 亚洲成人av一区二区| 国产精品久线在线观看| 欧美大片日本大片免费观看| 日本精品一区二区三区高清| 国产乱国产乱300精品| 婷婷中文字幕综合| 国产精品高潮久久久久无| 欧美电影免费观看完整版| 色呦呦网站一区| 国产精品一区在线观看乱码| 亚洲 欧美综合在线网络| 中文字幕在线视频一区| 日韩视频在线永久播放| 日本精品一区二区三区四区的功能| 国产精品自拍在线| 日韩高清中文字幕一区| 亚洲欧美日韩在线不卡| 国产精品视频免费| 精品免费日韩av| 7777女厕盗摄久久久| 色吊一区二区三区| 成人网在线播放| 国精产品一区一区三区mba桃花| 亚洲成a人片在线不卡一二三区| 亚洲三级久久久| 欧美韩国日本综合| 久久青草欧美一区二区三区| 精品国产1区2区3区| 欧美一区二区三区免费视频| 欧美日韩国产综合一区二区| 色天使色偷偷av一区二区| av毛片久久久久**hd| 国产999精品久久久久久绿帽| 精品一区二区三区视频在线观看| 日韩黄色在线观看| 日韩成人免费看| 水蜜桃久久夜色精品一区的特点| 亚洲一线二线三线久久久| 一区二区日韩av| 亚洲国产一区二区a毛片| 亚洲激情欧美激情| 一区二区三区在线视频观看58| 亚洲女与黑人做爰| 一区二区三区在线影院| 亚洲丶国产丶欧美一区二区三区| 亚洲一区二区三区四区在线免费观看| 亚洲精品乱码久久久久久| 亚洲黄网站在线观看| 午夜亚洲福利老司机| 日本午夜精品视频在线观看| 秋霞午夜鲁丝一区二区老狼| 久久精品国产网站| 国产精品自在在线| hitomi一区二区三区精品| 色综合久久中文字幕综合网| 欧美中文字幕一二三区视频| 欧美日韩国产大片| 欧美videossexotv100| 久久久高清一区二区三区| 国产精品欧美一区喷水| 一区二区三区精品视频在线| 日韩精品免费专区| 国产乱妇无码大片在线观看| 成人av资源站| 4438成人网| 国产三级精品三级在线专区| 亚洲欧美偷拍卡通变态| 日韩在线一区二区三区| 国产乱人伦偷精品视频不卡| 色综合一区二区三区| 在线观看91av| 国产欧美日韩在线视频| 亚洲国产精品一区二区久久恐怖片 | 日本中文字幕不卡| 国产精品123| 欧美色国产精品| 2023国产精品| 亚洲精品乱码久久久久| 久久9热精品视频| 91网站最新地址| 日韩欧美黄色影院| 日韩毛片在线免费观看| 美国av一区二区| 91亚洲精品乱码久久久久久蜜桃| 欧美日韩一区二区在线观看视频| 久久影院午夜片一区| 一区二区三区成人| 精品一区二区三区免费毛片爱| 色综合色综合色综合色综合色综合| 欧美久久久久久蜜桃| 欧美国产精品中文字幕| 婷婷久久综合九色综合绿巨人 | 91麻豆自制传媒国产之光| 日韩一二三区不卡| 综合分类小说区另类春色亚洲小说欧美 | 亚洲制服丝袜在线| 懂色av一区二区三区免费看| 欧美日韩一区二区三区视频| 久久精品欧美一区二区三区不卡 | 亚洲欧美日韩成人高清在线一区| 美女在线一区二区| 色综合久久综合网欧美综合网 | 亚洲欧美精品午睡沙发| 国产麻豆成人传媒免费观看| 欧美日韩在线电影| 1区2区3区欧美| 国产精品一区免费视频| 欧美一区二区三区在线看| 亚洲一区在线观看视频| 91亚洲精品乱码久久久久久蜜桃| 久久久久久久久久久黄色 | 精久久久久久久久久久| 在线一区二区三区四区五区 | 国产精品视频线看| 国产一区二区精品在线观看| 日韩一区二区麻豆国产| 午夜欧美在线一二页| 色综合久久综合网欧美综合网| 中文字幕免费观看一区| 国产福利视频一区二区三区| 欧美v日韩v国产v| 日韩电影一区二区三区| 欧美日韩精品福利| 亚洲妇女屁股眼交7| 在线视频欧美精品| 亚洲乱码国产乱码精品精98午夜| 成人永久免费视频| 欧美韩日一区二区三区四区| 国产成人自拍在线| 久久美女高清视频| 国产.欧美.日韩| 久久久久久久av麻豆果冻| 精品制服美女丁香| 精品第一国产综合精品aⅴ| 九色|91porny| 精品国产一区二区在线观看| 国产揄拍国内精品对白| 国产视频一区在线播放| 成人av在线资源网| 亚洲手机成人高清视频| 91黄色免费观看| 亚洲成人av电影| 日韩欧美成人激情| 国产主播一区二区三区| 中文文精品字幕一区二区| 成a人片亚洲日本久久| 亚洲日本中文字幕区| 欧美在线免费观看视频| 日本特黄久久久高潮| 欧美成人艳星乳罩| 粉嫩av亚洲一区二区图片| 亚洲精品视频免费看| 7777精品伊人久久久大香线蕉 | 日韩电影在线免费观看| 精品捆绑美女sm三区| 国产福利一区二区| 一区二区三区日韩欧美精品| 欧美三级乱人伦电影| 久久99久久99| 中文字幕一区二| 欧美美女直播网站| 国产一区二区不卡|