MainForm.cs
上传用户:linger1010
上传日期:2008-12-08
资源大小:561k
文件大小:1k
- 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);
- }
- }
- }