⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainform.cs

📁 WindowsMobile平台应用开发一书的源码
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

using Microsoft.WindowsCE.Forms;
using System.Diagnostics;

namespace UsingDocumentList
{
	public partial class MainForm : Form
	{
		public MainForm()
		{
			InitializeComponent();
		}

		private void m_documentList_DocumentActivated(object sender, DocumentListEventArgs e)
		{
			m_statusBar.Text = String.Format("'{0}' has been activated.", e.Path);
			Process.Start(e.Path, null);
		}

		private void m_documentList_DeletingDocument(object sender, DocumentListEventArgs e)
		{
			m_statusBar.Text = String.Format("'{0}' has been deleted.", e.Path);
		}

		private void m_documentList_SelectedDirectoryChanged(object sender, EventArgs e)
		{
			m_statusBar.Text = String.Format("Changed directory to: '{0}'.", m_documentList.SelectedDirectory);
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -