diff --git a/Backup/Examples/FileDialog/FileDialog.Designer.cs b/Backup/Examples/FileDialog/FileDialog.Designer.cs
new file mode 100644
index 0000000..1bbbcea
--- /dev/null
+++ b/Backup/Examples/FileDialog/FileDialog.Designer.cs
@@ -0,0 +1,209 @@
+namespace FileDialog {
+ partial class FileDialog {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing) {
+ if (disposing && (components != null)) {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Component Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent() {
+ System.Windows.Forms.Label filenameLabel;
+ System.Windows.Forms.Label filetypeLabel;
+ this.mainLayout = new System.Windows.Forms.TableLayoutPanel();
+ this.shellView = new GongSolutions.Shell.ShellView();
+ this.openButton = new System.Windows.Forms.Button();
+ this.cancelButton = new System.Windows.Forms.Button();
+ this.toolbar = new GongSolutions.Shell.FileDialogToolbar();
+ this.filterCombo = new GongSolutions.Shell.FileFilterComboBox();
+ this.fileNameCombo = new GongSolutions.Shell.FileNameComboBox();
+ this.placesToolbar1 = new GongSolutions.Shell.PlacesToolbar();
+ filenameLabel = new System.Windows.Forms.Label();
+ filetypeLabel = new System.Windows.Forms.Label();
+ this.mainLayout.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // filenameLabel
+ //
+ filenameLabel.AutoSize = true;
+ filenameLabel.Dock = System.Windows.Forms.DockStyle.Fill;
+ filenameLabel.Location = new System.Drawing.Point(99, 271);
+ filenameLabel.Name = "filenameLabel";
+ filenameLabel.Size = new System.Drawing.Size(70, 29);
+ filenameLabel.TabIndex = 0;
+ filenameLabel.Text = "File &name:";
+ filenameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // filetypeLabel
+ //
+ filetypeLabel.AutoSize = true;
+ filetypeLabel.Dock = System.Windows.Forms.DockStyle.Fill;
+ filetypeLabel.Location = new System.Drawing.Point(99, 300);
+ filetypeLabel.Name = "filetypeLabel";
+ filetypeLabel.Size = new System.Drawing.Size(70, 29);
+ filetypeLabel.TabIndex = 2;
+ filetypeLabel.Text = "Files of &type:";
+ filetypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ //
+ // mainLayout
+ //
+ this.mainLayout.BackColor = System.Drawing.Color.Transparent;
+ this.mainLayout.ColumnCount = 4;
+ this.mainLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.mainLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.mainLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.mainLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
+ this.mainLayout.Controls.Add(this.shellView, 1, 1);
+ this.mainLayout.Controls.Add(filenameLabel, 1, 2);
+ this.mainLayout.Controls.Add(filetypeLabel, 1, 3);
+ this.mainLayout.Controls.Add(this.openButton, 3, 2);
+ this.mainLayout.Controls.Add(this.cancelButton, 3, 3);
+ this.mainLayout.Controls.Add(this.toolbar, 0, 0);
+ this.mainLayout.Controls.Add(this.filterCombo, 2, 3);
+ this.mainLayout.Controls.Add(this.fileNameCombo, 2, 2);
+ this.mainLayout.Controls.Add(this.placesToolbar1, 0, 1);
+ this.mainLayout.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.mainLayout.Location = new System.Drawing.Point(0, 0);
+ this.mainLayout.Name = "mainLayout";
+ this.mainLayout.Padding = new System.Windows.Forms.Padding(4);
+ this.mainLayout.RowCount = 4;
+ this.mainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
+ this.mainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.mainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
+ this.mainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle());
+ this.mainLayout.Size = new System.Drawing.Size(521, 333);
+ this.mainLayout.TabIndex = 1;
+ //
+ // shellView
+ //
+ this.mainLayout.SetColumnSpan(this.shellView, 3);
+ this.shellView.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.shellView.Location = new System.Drawing.Point(99, 41);
+ this.shellView.Name = "shellView";
+ this.shellView.Size = new System.Drawing.Size(415, 227);
+ this.shellView.StatusBar = null;
+ this.shellView.TabIndex = 6;
+ this.shellView.Text = "shellView1";
+ this.shellView.View = GongSolutions.Shell.ShellViewStyle.List;
+ this.shellView.DoubleClick += new System.EventHandler(this.shellView_DoubleClick);
+ this.shellView.SelectionChanged += new System.EventHandler(this.shellView_SelectionChanged);
+ //
+ // openButton
+ //
+ this.openButton.Dock = System.Windows.Forms.DockStyle.Right;
+ this.openButton.Enabled = false;
+ this.openButton.Location = new System.Drawing.Point(439, 274);
+ this.openButton.Name = "openButton";
+ this.openButton.Size = new System.Drawing.Size(75, 23);
+ this.openButton.TabIndex = 4;
+ this.openButton.Text = "&Open";
+ this.openButton.UseVisualStyleBackColor = true;
+ this.openButton.Click += new System.EventHandler(this.openButton_Click);
+ //
+ // cancelButton
+ //
+ this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.cancelButton.Dock = System.Windows.Forms.DockStyle.Right;
+ this.cancelButton.Location = new System.Drawing.Point(439, 303);
+ this.cancelButton.Name = "cancelButton";
+ this.cancelButton.Size = new System.Drawing.Size(75, 23);
+ this.cancelButton.TabIndex = 5;
+ this.cancelButton.Text = "Cancel";
+ this.cancelButton.UseVisualStyleBackColor = true;
+ this.cancelButton.Click += new System.EventHandler(this.cancelButton_Click);
+ //
+ // toolbar
+ //
+ this.mainLayout.SetColumnSpan(this.toolbar, 4);
+ this.toolbar.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.toolbar.Location = new System.Drawing.Point(7, 7);
+ this.toolbar.Name = "toolbar";
+ this.toolbar.ShellView = this.shellView;
+ this.toolbar.Size = new System.Drawing.Size(507, 28);
+ this.toolbar.TabIndex = 7;
+ //
+ // filterCombo
+ //
+ this.filterCombo.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.filterCombo.FilterItems = "Text Files (*.txt)|*.txt|Video Files|*.avi, *.wmv|All Files (*.*)|*.*";
+ this.filterCombo.FormattingEnabled = true;
+ this.filterCombo.Location = new System.Drawing.Point(175, 303);
+ this.filterCombo.Name = "filterCombo";
+ this.filterCombo.ShellView = this.shellView;
+ this.filterCombo.Size = new System.Drawing.Size(258, 21);
+ this.filterCombo.TabIndex = 3;
+ //
+ // fileNameCombo
+ //
+ this.fileNameCombo.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.fileNameCombo.FilterControl = this.filterCombo;
+ this.fileNameCombo.FormattingEnabled = true;
+ this.fileNameCombo.Location = new System.Drawing.Point(175, 274);
+ this.fileNameCombo.Name = "fileNameCombo";
+ this.fileNameCombo.ShellView = this.shellView;
+ this.fileNameCombo.Size = new System.Drawing.Size(258, 21);
+ this.fileNameCombo.TabIndex = 1;
+ this.fileNameCombo.FileNameEntered += new System.EventHandler(this.fileNameCombo_FilenameEntered);
+ this.fileNameCombo.TextChanged += new System.EventHandler(this.fileNameCombo_TextChanged);
+ //
+ // placesToolbar1
+ //
+ this.placesToolbar1.AutoScrollMargin = new System.Drawing.Size(0, 0);
+ this.placesToolbar1.AutoScrollMinSize = new System.Drawing.Size(0, 0);
+ this.placesToolbar1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.placesToolbar1.Location = new System.Drawing.Point(7, 41);
+ this.placesToolbar1.Name = "placesToolbar1";
+ this.mainLayout.SetRowSpan(this.placesToolbar1, 3);
+ this.placesToolbar1.ShellView = this.shellView;
+ this.placesToolbar1.Size = new System.Drawing.Size(86, 285);
+ this.placesToolbar1.TabIndex = 8;
+ //
+ // FileDialog
+ //
+ this.AcceptButton = this.openButton;
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(521, 333);
+ this.Controls.Add(this.mainLayout);
+ this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.KeyPreview = true;
+ this.MaximizeBox = false;
+ this.MinimizeBox = false;
+ this.Name = "FileDialog";
+ this.ShowIcon = false;
+ this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Show;
+ this.Text = "Example File Dialog";
+ this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FileDialog_FormClosed);
+ this.mainLayout.ResumeLayout(false);
+ this.mainLayout.PerformLayout();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TableLayoutPanel mainLayout;
+ private GongSolutions.Shell.ShellView shellView;
+ private System.Windows.Forms.Button cancelButton;
+ private GongSolutions.Shell.FileDialogToolbar toolbar;
+ private GongSolutions.Shell.FileFilterComboBox filterCombo;
+ private GongSolutions.Shell.FileNameComboBox fileNameCombo;
+ private GongSolutions.Shell.PlacesToolbar placesToolbar1;
+ private System.Windows.Forms.Button openButton;
+ }
+}
diff --git a/Backup/Examples/FileDialog/FileDialog.cs b/Backup/Examples/FileDialog/FileDialog.cs
new file mode 100644
index 0000000..9a41c40
--- /dev/null
+++ b/Backup/Examples/FileDialog/FileDialog.cs
@@ -0,0 +1,83 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Drawing;
+using System.Data;
+using System.IO;
+using System.Runtime.InteropServices;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Windows.Forms;
+using GongSolutions.Shell;
+
+namespace FileDialog
+{
+ public partial class FileDialog : Form
+ {
+ public FileDialog()
+ {
+ InitializeComponent();
+ shellView.CurrentFolder = new ShellItem(Properties.Settings.Default.CurrentFolder);
+ shellView.History.Clear();
+ }
+
+ void OnFileSelected(string filename)
+ {
+ MessageBox.Show(filename);
+ }
+
+ void UpdateOpenButtonState()
+ {
+ openButton.Enabled = (shellView.SelectedItems.Length > 0) ||
+ (fileNameCombo.Text.Length > 0);
+ }
+
+ void fileNameCombo_TextChanged(object sender, EventArgs e)
+ {
+ UpdateOpenButtonState();
+ }
+
+ void shellView_DoubleClick(object sender, EventArgs e)
+ {
+ OnFileSelected(shellView.SelectedItems[0].FileSystemPath);
+ }
+
+ void shellView_SelectionChanged(object sender, EventArgs e)
+ {
+ UpdateOpenButtonState();
+ }
+
+ void fileNameCombo_FilenameEntered(object sender, EventArgs e)
+ {
+ OnFileSelected(fileNameCombo.Text);
+ }
+
+ void openButton_Click(object sender, EventArgs e)
+ {
+ if (!shellView.NavigateSelectedFolder())
+ {
+ ShellItem[] selected = shellView.SelectedItems;
+
+ if (selected.Length > 0)
+ {
+ OnFileSelected(selected[0].FileSystemPath);
+ }
+ else if (File.Exists(fileNameCombo.Text))
+ {
+ OnFileSelected(fileNameCombo.Text);
+ }
+ }
+ }
+
+ void cancelButton_Click(object sender, EventArgs e)
+ {
+ Close();
+ }
+
+ void FileDialog_FormClosed(object sender, FormClosedEventArgs e)
+ {
+ Properties.Settings.Default.CurrentFolder = shellView.CurrentFolder.ToString();
+ Properties.Settings.Default.Save();
+ }
+ }
+}
diff --git a/Backup/Examples/FileDialog/FileDialog.csproj b/Backup/Examples/FileDialog/FileDialog.csproj
new file mode 100644
index 0000000..1306a96
--- /dev/null
+++ b/Backup/Examples/FileDialog/FileDialog.csproj
@@ -0,0 +1,91 @@
+
+
+ Debug
+ AnyCPU
+ 8.0.50727
+ 2.0
+ {6D9343CF-7F87-4C36-ADB8-DD8667F38E51}
+ WinExe
+ Properties
+ FileDialog
+ FileDialog
+
+
+
+
+ 2.0
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ Form
+
+
+ FileDialog.cs
+
+
+
+
+ FileDialog.cs
+ Designer
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+ True
+ Resources.resx
+ True
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+ True
+ Settings.settings
+ True
+
+
+
+
+ {711CCF1F-6B8F-4E97-8D84-0EE679C83B41}
+ Shell
+
+
+
+
+
\ No newline at end of file
diff --git a/Backup/Examples/FileDialog/FileDialog.resx b/Backup/Examples/FileDialog/FileDialog.resx
new file mode 100644
index 0000000..7c3f07c
--- /dev/null
+++ b/Backup/Examples/FileDialog/FileDialog.resx
@@ -0,0 +1,126 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ False
+
+
+ False
+
+
\ No newline at end of file
diff --git a/Backup/Examples/FileDialog/Program.cs b/Backup/Examples/FileDialog/Program.cs
new file mode 100644
index 0000000..d794e47
--- /dev/null
+++ b/Backup/Examples/FileDialog/Program.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace FileDialog
+{
+ static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ static void Main()
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+ Application.Run(new FileDialog());
+ }
+ }
+}
\ No newline at end of file
diff --git a/Backup/Examples/FileDialog/Properties/AssemblyInfo.cs b/Backup/Examples/FileDialog/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..dccacf3
--- /dev/null
+++ b/Backup/Examples/FileDialog/Properties/AssemblyInfo.cs
@@ -0,0 +1,33 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("FileDialog")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("FileDialog")]
+[assembly: AssemblyCopyright("Copyright © 2006")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("b77e1932-b809-46e0-aaa5-e126de8c05b6")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/Backup/Examples/FileDialog/Properties/Resources.Designer.cs b/Backup/Examples/FileDialog/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..59fcfaf
--- /dev/null
+++ b/Backup/Examples/FileDialog/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.4927
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace FileDialog.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("FileDialog.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/Backup/Examples/FileDialog/Properties/Resources.resx b/Backup/Examples/FileDialog/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/Backup/Examples/FileDialog/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/Backup/Examples/FileDialog/Properties/Settings.Designer.cs b/Backup/Examples/FileDialog/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..4c00113
--- /dev/null
+++ b/Backup/Examples/FileDialog/Properties/Settings.Designer.cs
@@ -0,0 +1,38 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.4927
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace FileDialog.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("shell:///Personal")]
+ public string CurrentFolder {
+ get {
+ return ((string)(this["CurrentFolder"]));
+ }
+ set {
+ this["CurrentFolder"] = value;
+ }
+ }
+ }
+}
diff --git a/Backup/Examples/FileDialog/Properties/Settings.settings b/Backup/Examples/FileDialog/Properties/Settings.settings
new file mode 100644
index 0000000..6eec06a
--- /dev/null
+++ b/Backup/Examples/FileDialog/Properties/Settings.settings
@@ -0,0 +1,9 @@
+
+
+
+
+
+ shell:///Personal
+
+
+
\ No newline at end of file
diff --git a/Backup/Examples/FileDialog/app.config b/Backup/Examples/FileDialog/app.config
new file mode 100644
index 0000000..f9d5b83
--- /dev/null
+++ b/Backup/Examples/FileDialog/app.config
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+ shell:///Personal
+
+
+
+
\ No newline at end of file
diff --git a/Backup/Examples/ShellExplorer/ExplorerForm.Designer.cs b/Backup/Examples/ShellExplorer/ExplorerForm.Designer.cs
new file mode 100644
index 0000000..36c0151
--- /dev/null
+++ b/Backup/Examples/ShellExplorer/ExplorerForm.Designer.cs
@@ -0,0 +1,238 @@
+namespace ShellExplorer {
+ partial class ShellExplorer {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing) {
+ if (disposing && (components != null)) {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent() {
+ this.components = new System.ComponentModel.Container();
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShellExplorer));
+ this.splitContainer = new System.Windows.Forms.SplitContainer();
+ this.treeView = new GongSolutions.Shell.ShellTreeView();
+ this.shellView = new GongSolutions.Shell.ShellView();
+ this.statusBar = new System.Windows.Forms.StatusBar();
+ this.mainMenu = new System.Windows.Forms.MainMenu(this.components);
+ this.fileMenu = new System.Windows.Forms.MenuItem();
+ this.dummyMenuItem = new System.Windows.Forms.MenuItem();
+ this.viewMenu = new System.Windows.Forms.MenuItem();
+ this.refreshMenu = new System.Windows.Forms.MenuItem();
+ this.toolBar = new System.Windows.Forms.ToolBar();
+ this.backButton = new System.Windows.Forms.ToolBarButton();
+ this.backButtonMenu = new System.Windows.Forms.ContextMenu();
+ this.forwardButton = new System.Windows.Forms.ToolBarButton();
+ this.forwardButtonMenu = new System.Windows.Forms.ContextMenu();
+ this.upButton = new System.Windows.Forms.ToolBarButton();
+ this.imageList = new System.Windows.Forms.ImageList(this.components);
+ this.shellComboBox1 = new GongSolutions.Shell.ShellComboBox();
+ this.splitContainer.Panel1.SuspendLayout();
+ this.splitContainer.Panel2.SuspendLayout();
+ this.splitContainer.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // splitContainer
+ //
+ this.splitContainer.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer.Location = new System.Drawing.Point(0, 51);
+ this.splitContainer.Name = "splitContainer";
+ //
+ // splitContainer.Panel1
+ //
+ this.splitContainer.Panel1.Controls.Add(this.treeView);
+ //
+ // splitContainer.Panel2
+ //
+ this.splitContainer.Panel2.Controls.Add(this.shellView);
+ this.splitContainer.Size = new System.Drawing.Size(610, 224);
+ this.splitContainer.SplitterDistance = 197;
+ this.splitContainer.TabIndex = 1;
+ //
+ // treeView
+ //
+ this.treeView.AllowDrop = true;
+ this.treeView.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.treeView.Location = new System.Drawing.Point(0, 0);
+ this.treeView.Name = "treeView";
+ this.treeView.ShellView = this.shellView;
+ this.treeView.Size = new System.Drawing.Size(197, 224);
+ this.treeView.TabIndex = 0;
+ this.treeView.Text = "shellTreeView1";
+ //
+ // shellView
+ //
+ this.shellView.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.shellView.Location = new System.Drawing.Point(0, 0);
+ this.shellView.Name = "shellView";
+ this.shellView.Size = new System.Drawing.Size(409, 224);
+ this.shellView.StatusBar = this.statusBar;
+ this.shellView.TabIndex = 0;
+ this.shellView.Text = "shellView1";
+ this.shellView.View = GongSolutions.Shell.ShellViewStyle.Details;
+ this.shellView.Navigated += new System.EventHandler(this.shellView_Navigated);
+ //
+ // statusBar
+ //
+ this.statusBar.Location = new System.Drawing.Point(0, 275);
+ this.statusBar.Name = "statusBar";
+ this.statusBar.ShowPanels = true;
+ this.statusBar.Size = new System.Drawing.Size(610, 22);
+ this.statusBar.TabIndex = 1;
+ //
+ // mainMenu
+ //
+ this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
+ this.fileMenu,
+ this.viewMenu});
+ //
+ // fileMenu
+ //
+ this.fileMenu.Index = 0;
+ this.fileMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
+ this.dummyMenuItem});
+ this.fileMenu.Text = "&File";
+ this.fileMenu.Popup += new System.EventHandler(this.fileMenu_Popup);
+ //
+ // dummyMenuItem
+ //
+ this.dummyMenuItem.Index = 0;
+ this.dummyMenuItem.Text = "Dummy";
+ this.dummyMenuItem.Visible = false;
+ //
+ // viewMenu
+ //
+ this.viewMenu.Index = 1;
+ this.viewMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
+ this.refreshMenu});
+ this.viewMenu.Text = "&View";
+ //
+ // refreshMenu
+ //
+ this.refreshMenu.Index = 0;
+ this.refreshMenu.Shortcut = System.Windows.Forms.Shortcut.F5;
+ this.refreshMenu.Text = "&Refresh";
+ this.refreshMenu.Click += new System.EventHandler(this.refreshMenu_Click);
+ //
+ // toolBar
+ //
+ this.toolBar.Appearance = System.Windows.Forms.ToolBarAppearance.Flat;
+ this.toolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
+ this.backButton,
+ this.forwardButton,
+ this.upButton});
+ this.toolBar.DropDownArrows = true;
+ this.toolBar.ImageList = this.imageList;
+ this.toolBar.Location = new System.Drawing.Point(0, 0);
+ this.toolBar.Name = "toolBar";
+ this.toolBar.ShowToolTips = true;
+ this.toolBar.Size = new System.Drawing.Size(610, 28);
+ this.toolBar.TabIndex = 2;
+ this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick);
+ //
+ // backButton
+ //
+ this.backButton.DropDownMenu = this.backButtonMenu;
+ this.backButton.ImageIndex = 0;
+ this.backButton.Name = "backButton";
+ this.backButton.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
+ //
+ // backButtonMenu
+ //
+ this.backButtonMenu.Popup += new System.EventHandler(this.backButton_Popup);
+ //
+ // forwardButton
+ //
+ this.forwardButton.DropDownMenu = this.forwardButtonMenu;
+ this.forwardButton.ImageIndex = 1;
+ this.forwardButton.Name = "forwardButton";
+ this.forwardButton.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
+ //
+ // forwardButtonMenu
+ //
+ this.forwardButtonMenu.Popup += new System.EventHandler(this.forwardButton_Popup);
+ //
+ // upButton
+ //
+ this.upButton.ImageIndex = 2;
+ this.upButton.Name = "upButton";
+ //
+ // imageList
+ //
+ this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
+ this.imageList.TransparentColor = System.Drawing.Color.Magenta;
+ this.imageList.Images.SetKeyName(0, "Back.bmp");
+ this.imageList.Images.SetKeyName(1, "Forward.bmp");
+ this.imageList.Images.SetKeyName(2, "Up.bmp");
+ //
+ // shellComboBox1
+ //
+ this.shellComboBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.shellComboBox1.Editable = true;
+ this.shellComboBox1.Location = new System.Drawing.Point(0, 28);
+ this.shellComboBox1.Name = "shellComboBox1";
+ this.shellComboBox1.ShellView = this.shellView;
+ this.shellComboBox1.Size = new System.Drawing.Size(610, 23);
+ this.shellComboBox1.TabIndex = 3;
+ this.shellComboBox1.Text = "shellComboBox1";
+ //
+ // ShellExplorer
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(610, 297);
+ this.Controls.Add(this.splitContainer);
+ this.Controls.Add(this.shellComboBox1);
+ this.Controls.Add(this.statusBar);
+ this.Controls.Add(this.toolBar);
+ this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.Menu = this.mainMenu;
+ this.MinimumSize = new System.Drawing.Size(600, 200);
+ this.Name = "ShellExplorer";
+ this.Text = "Shell Explorer";
+ this.ResizeEnd += new System.EventHandler(this.ShellExplorer_ResizeEnd);
+ this.splitContainer.Panel1.ResumeLayout(false);
+ this.splitContainer.Panel2.ResumeLayout(false);
+ this.splitContainer.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private GongSolutions.Shell.ShellTreeView treeView;
+ private System.Windows.Forms.SplitContainer splitContainer;
+ private GongSolutions.Shell.ShellView shellView;
+ private System.Windows.Forms.StatusBar statusBar;
+ private System.Windows.Forms.MainMenu mainMenu;
+ private System.Windows.Forms.MenuItem fileMenu;
+ private System.Windows.Forms.ToolBar toolBar;
+ private System.Windows.Forms.ToolBarButton backButton;
+ private System.Windows.Forms.ToolBarButton forwardButton;
+ private System.Windows.Forms.ToolBarButton upButton;
+ private System.Windows.Forms.ImageList imageList;
+ private System.Windows.Forms.ContextMenu backButtonMenu;
+ private System.Windows.Forms.ContextMenu forwardButtonMenu;
+ private System.Windows.Forms.MenuItem dummyMenuItem;
+ private System.Windows.Forms.MenuItem viewMenu;
+ private System.Windows.Forms.MenuItem refreshMenu;
+ private GongSolutions.Shell.ShellComboBox shellComboBox1;
+ }
+}
+
diff --git a/Backup/Examples/ShellExplorer/ExplorerForm.cs b/Backup/Examples/ShellExplorer/ExplorerForm.cs
new file mode 100644
index 0000000..0920ab0
--- /dev/null
+++ b/Backup/Examples/ShellExplorer/ExplorerForm.cs
@@ -0,0 +1,123 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using GongSolutions.Shell;
+
+namespace ShellExplorer
+{
+ public partial class ShellExplorer : Form
+ {
+ public ShellExplorer()
+ {
+ InitializeComponent();
+ }
+
+ protected override void WndProc(ref Message m)
+ {
+ if ((m_ContextMenu == null) || (!m_ContextMenu.HandleMenuMessage(ref m)))
+ {
+ base.WndProc(ref m);
+ }
+ }
+
+ void shellView_Navigated(object sender, EventArgs e)
+ {
+ backButton.Enabled = shellView.CanNavigateBack;
+ forwardButton.Enabled = shellView.CanNavigateForward;
+ upButton.Enabled = shellView.CanNavigateParent;
+ }
+
+ void fileMenu_Popup(object sender, EventArgs e)
+ {
+ ShellItem[] selectedItems = shellView.SelectedItems;
+
+ if (selectedItems.Length > 0)
+ {
+ m_ContextMenu = new ShellContextMenu(selectedItems);
+ }
+ else
+ {
+ m_ContextMenu = new ShellContextMenu(treeView.SelectedFolder);
+ }
+
+ m_ContextMenu.Populate(fileMenu);
+ }
+
+ void refreshMenu_Click(object sender, EventArgs e)
+ {
+ shellView.RefreshContents();
+ treeView.RefreshContents();
+ }
+
+ void toolBar_ButtonClick(object sender, ToolBarButtonClickEventArgs e)
+ {
+ if (e.Button == backButton)
+ {
+ shellView.NavigateBack();
+ }
+ else if (e.Button == forwardButton)
+ {
+ shellView.NavigateForward();
+ }
+ else if (e.Button == upButton)
+ {
+ shellView.NavigateParent();
+ }
+ }
+
+ void backButton_Popup(object sender, EventArgs e)
+ {
+ List