mainform.cs

来自「《Windows Mobile平台应用与开发》源码」· CS 代码 · 共 37 行

CS
37
字号
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 + =
减小字号Ctrl + -
显示快捷键?