// Decompiled with JetBrains decompiler // Type: CarotDAV.MainForm // Assembly: CarotDAV, Version=1.13.2.18337, Culture=neutral, PublicKeyToken=null // MVID: C31F2651-A4A8-4D09-916A-8C6106F5E7C8 // Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\CarotDAV.exe using Microsoft.VisualBasic; using Microsoft.VisualBasic.CompilerServices; using Microsoft.Win32; using Rei.Com; using Rei.Fs; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.IO; using System.Net; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; using System.Windows.Forms; namespace CarotDAV { [DesignerGenerated] public class MainForm : Form { private static string[] pSizeGroupList = new string[7] { "0-10 kiB", "10-100 kiB", "100 kiB - 1 MiB", "1-16 MiB", "16-128 MiB", "> 128 MiB", "Other" }; private static string[] pNameGroupList = new string[5] { "0-9", "A-H", "I-P", "Q-Z", "Other" }; public static string[] ResourceListViewColumnNames = new string[6] { "Name", "URL", "State", "Size", "Last Modified", "Creation" }; private static System.Drawing.Color sEncryptedColor = System.Drawing.Color.Empty; private static System.Drawing.Color sCompressedColor = System.Drawing.Color.Empty; private static System.Drawing.Color SplitColor = System.Drawing.Color.DarkRed; private static System.Drawing.Color MinorColor = System.Drawing.Color.Gray; private static int MainFormCounter = 0; private IContainer components; [AccessedThroughProperty("LogTextBox")] private TextBox _LogTextBox; [AccessedThroughProperty("SplitContainer1")] private SplitContainer _SplitContainer1; [AccessedThroughProperty("ResourceListView")] private WallMarkListView _ResourceListView; [AccessedThroughProperty("ToolStrip1")] private NoEatToolStrip _ToolStrip1; [AccessedThroughProperty("ConnectToolStripButton")] private ToolStripButton _ConnectToolStripButton; [AccessedThroughProperty("ToolStripSeparator6")] private ToolStripSeparator _ToolStripSeparator6; [AccessedThroughProperty("RefreshToolStripButton")] private ToolStripButton _RefreshToolStripButton; [AccessedThroughProperty("NewFolderToolStripButton")] private ToolStripButton _NewFolderToolStripButton; [AccessedThroughProperty("ToolStripSeparator7")] private ToolStripSeparator _ToolStripSeparator7; [AccessedThroughProperty("UploadToolStripButton")] private ToolStripButton _UploadToolStripButton; [AccessedThroughProperty("DownloadToolStripButton")] private ToolStripButton _DownloadToolStripButton; [AccessedThroughProperty("ToolStripSeparator8")] private ToolStripSeparator _ToolStripSeparator8; [AccessedThroughProperty("DeleteToolStripButton")] private ToolStripButton _DeleteToolStripButton; [AccessedThroughProperty("ToolStripSplitButton1")] private ToolStripSplitButton _ToolStripSplitButton1; [AccessedThroughProperty("FileToolStripMenuItem")] private ToolStripMenuItem _FileToolStripMenuItem; [AccessedThroughProperty("ConnectToolStripMenuItem")] private ToolStripMenuItem _ConnectToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator1")] private ToolStripSeparator _ToolStripSeparator1; [AccessedThroughProperty("ExitToolStripMenuItem")] private ToolStripMenuItem _ExitToolStripMenuItem; [AccessedThroughProperty("EditToolStripMenuItem")] private ToolStripMenuItem _EditToolStripMenuItem; [AccessedThroughProperty("NewFolderToolStripMenuItem")] private ToolStripMenuItem _NewFolderToolStripMenuItem; [AccessedThroughProperty("UploadToolStripMenuItem")] private ToolStripMenuItem _UploadToolStripMenuItem; [AccessedThroughProperty("DownloadToolStripMenuItem")] private ToolStripMenuItem _DownloadToolStripMenuItem; [AccessedThroughProperty("ToolStripMenuSeparatorUpDown")] private ToolStripSeparator _ToolStripMenuSeparatorUpDown; [AccessedThroughProperty("DeleteToolStripMenuItem")] private ToolStripMenuItem _DeleteToolStripMenuItem; [AccessedThroughProperty("HelpToolStripMenuItem")] private ToolStripMenuItem _HelpToolStripMenuItem; [AccessedThroughProperty("AboutToolStripMenuItem")] private ToolStripMenuItem _AboutToolStripMenuItem; [AccessedThroughProperty("MenuStrip1")] private NoEatMenuStrip _MenuStrip1; [AccessedThroughProperty("LargeIconToolStripMenuItem")] private ToolStripMenuItem _LargeIconToolStripMenuItem; [AccessedThroughProperty("SmallIconToolStripMenuItem")] private ToolStripMenuItem _SmallIconToolStripMenuItem; [AccessedThroughProperty("ListToolStripMenuItem")] private ToolStripMenuItem _ListToolStripMenuItem; [AccessedThroughProperty("DetailToolStripMenuItem")] private ToolStripMenuItem _DetailToolStripMenuItem; [AccessedThroughProperty("ViewToolStripMenuItem")] private ToolStripMenuItem _ViewToolStripMenuItem; [AccessedThroughProperty("LargeIconToolStripMenuItem1")] private ToolStripMenuItem _LargeIconToolStripMenuItem1; [AccessedThroughProperty("SmallIconToolStripMenuItem1")] private ToolStripMenuItem _SmallIconToolStripMenuItem1; [AccessedThroughProperty("ListToolStripMenuItem1")] private ToolStripMenuItem _ListToolStripMenuItem1; [AccessedThroughProperty("DetailToolStripMenuItem1")] private ToolStripMenuItem _DetailToolStripMenuItem1; [AccessedThroughProperty("FolderBrowserDialog1")] private FolderBrowserDialog _FolderBrowserDialog1; [AccessedThroughProperty("OpenFileDialog1")] private OpenFileDialog _OpenFileDialog1; [AccessedThroughProperty("PropertyToolStripButton")] private ToolStripButton _PropertyToolStripButton; [AccessedThroughProperty("ToolStripSeparator5")] private ToolStripSeparator _ToolStripSeparator5; [AccessedThroughProperty("PropertyToolStripMenuItem")] private ToolStripMenuItem _PropertyToolStripMenuItem; [AccessedThroughProperty("RenameToolStripMenuItem")] private ToolStripMenuItem _RenameToolStripMenuItem; [AccessedThroughProperty("ToolToolStripMenuItem")] private ToolStripMenuItem _ToolToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator9")] private ToolStripSeparator _ToolStripSeparator9; [AccessedThroughProperty("LogToolStripMenuItem")] private ToolStripMenuItem _LogToolStripMenuItem; [AccessedThroughProperty("ExpandToolStrip1")] private RightAlignToolStrip _ExpandToolStrip1; [AccessedThroughProperty("UriToolStripTextBox")] private ToolStripTextBox _UriToolStripTextBox; [AccessedThroughProperty("FaviconToolStripButton")] private ToolStripButton _FaviconToolStripButton; [AccessedThroughProperty("ToolStripGoButton")] private ToolStripButton _ToolStripGoButton; [AccessedThroughProperty("BackToolStripButton")] private ToolStripButton _BackToolStripButton; [AccessedThroughProperty("ForwardToolStripButton")] private ToolStripButton _ForwardToolStripButton; [AccessedThroughProperty("ToolStripSeparator11")] private ToolStripSeparator _ToolStripSeparator11; [AccessedThroughProperty("GoToParentToolStripButton")] private ToolStripButton _GoToParentToolStripButton; [AccessedThroughProperty("ToolStripContainer1")] private ToolStripContainer _ToolStripContainer1; [AccessedThroughProperty("BackToolStripMenuItem")] private ToolStripMenuItem _BackToolStripMenuItem; [AccessedThroughProperty("ForwardToolStripMenuItem")] private ToolStripMenuItem _ForwardToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator12")] private ToolStripSeparator _ToolStripSeparator12; [AccessedThroughProperty("StatusStrip1")] private StatusStrip _StatusStrip1; [AccessedThroughProperty("ToolStripTotal")] private ToolStripStatusLabel _ToolStripTotal; [AccessedThroughProperty("ToolStripSelected")] private ToolStripStatusLabel _ToolStripSelected; [AccessedThroughProperty("StatusBarToolStripMenuItem")] private ToolStripMenuItem _StatusBarToolStripMenuItem; [AccessedThroughProperty("ContextMenuStrip1")] private ContextMenuStrip _ContextMenuStrip1; [AccessedThroughProperty("DownloadContextMenuItem")] private ToolStripMenuItem _DownloadContextMenuItem; [AccessedThroughProperty("RenameContextMenuItem")] private ToolStripMenuItem _RenameContextMenuItem; [AccessedThroughProperty("PropertyContextMenuItem")] private ToolStripMenuItem _PropertyContextMenuItem; [AccessedThroughProperty("DeleteContextMenuItem")] private ToolStripMenuItem _DeleteContextMenuItem; [AccessedThroughProperty("ContextMenuSeparatorDownload")] private ToolStripSeparator _ContextMenuSeparatorDownload; [AccessedThroughProperty("GoToParentContextMenuItem")] private ToolStripMenuItem _GoToParentContextMenuItem; [AccessedThroughProperty("RefreshContextMenuItem")] private ToolStripMenuItem _RefreshContextMenuItem; [AccessedThroughProperty("ToolStripSeparator16")] private ToolStripSeparator _ToolStripSeparator16; [AccessedThroughProperty("NewFolderContextMenuItem")] private ToolStripMenuItem _NewFolderContextMenuItem; [AccessedThroughProperty("CopyURIContextMenuItem")] private ToolStripMenuItem _CopyURIContextMenuItem; [AccessedThroughProperty("CopyResourceNameContextMenuItem")] private ToolStripMenuItem _CopyResourceNameContextMenuItem; [AccessedThroughProperty("ContextMenuSeparatorCopy")] private ToolStripSeparator _ContextMenuSeparatorCopy; [AccessedThroughProperty("LogToFileToolStripMenuItem")] private ToolStripMenuItem _LogToFileToolStripMenuItem; [AccessedThroughProperty("UploadFolderToolStripButton")] private ToolStripButton _UploadFolderToolStripButton; [AccessedThroughProperty("ToolStripSeparator15")] private ToolStripSeparator _ToolStripSeparator15; [AccessedThroughProperty("UploadFolderToolStripMenuItem")] private ToolStripMenuItem _UploadFolderToolStripMenuItem; [AccessedThroughProperty("TileToolStripMenuItem")] private ToolStripMenuItem _TileToolStripMenuItem; [AccessedThroughProperty("TileToolStripMenuItem1")] private ToolStripMenuItem _TileToolStripMenuItem1; [AccessedThroughProperty("ViewToolStripMenuItem1")] private ToolStripMenuItem _ViewToolStripMenuItem1; [AccessedThroughProperty("LargeIconToolStripMenuItem2")] private ToolStripMenuItem _LargeIconToolStripMenuItem2; [AccessedThroughProperty("SmallIconToolStripMenuItem2")] private ToolStripMenuItem _SmallIconToolStripMenuItem2; [AccessedThroughProperty("ListToolStripMenuItem2")] private ToolStripMenuItem _ListToolStripMenuItem2; [AccessedThroughProperty("TileToolStripMenuItem2")] private ToolStripMenuItem _TileToolStripMenuItem2; [AccessedThroughProperty("DetailToolStripMenuItem2")] private ToolStripMenuItem _DetailToolStripMenuItem2; [AccessedThroughProperty("ToolStripSeparator20")] private ToolStripSeparator _ToolStripSeparator20; [AccessedThroughProperty("AutoColumnWidthToolStripMenuItem")] private ToolStripMenuItem _AutoColumnWidthToolStripMenuItem; [AccessedThroughProperty("SortToolStripMenuItem")] private ToolStripMenuItem _SortToolStripMenuItem; [AccessedThroughProperty("SortNameToolStripMenuItem")] private ToolStripMenuItem _SortNameToolStripMenuItem; [AccessedThroughProperty("SortSizeToolStripMenuItem")] private ToolStripMenuItem _SortSizeToolStripMenuItem; [AccessedThroughProperty("SortLastModifiedDateToolStripMenuItem")] private ToolStripMenuItem _SortLastModifiedDateToolStripMenuItem; [AccessedThroughProperty("SortCreationDateToolStripMenuItem")] private ToolStripMenuItem _SortCreationDateToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator19")] private ToolStripSeparator _ToolStripSeparator19; [AccessedThroughProperty("ToolStripSeparator21")] private ToolStripSeparator _ToolStripSeparator21; [AccessedThroughProperty("SortToolStripMenuItem1")] private ToolStripMenuItem _SortToolStripMenuItem1; [AccessedThroughProperty("SortNameToolStripMenuItem1")] private ToolStripMenuItem _SortNameToolStripMenuItem1; [AccessedThroughProperty("SortLastModifiedDateToolStripMenuItem1")] private ToolStripMenuItem _SortLastModifiedDateToolStripMenuItem1; [AccessedThroughProperty("SortCreationDateToolStripMenuItem1")] private ToolStripMenuItem _SortCreationDateToolStripMenuItem1; [AccessedThroughProperty("AutoColumnWidthToolStripMenuItem1")] private ToolStripMenuItem _AutoColumnWidthToolStripMenuItem1; [AccessedThroughProperty("ToolStripSeparator22")] private ToolStripSeparator _ToolStripSeparator22; [AccessedThroughProperty("SortStatusToolStripMenuItem")] private ToolStripMenuItem _SortStatusToolStripMenuItem; [AccessedThroughProperty("SortURIToolStripMenuItem")] private ToolStripMenuItem _SortURIToolStripMenuItem; [AccessedThroughProperty("SortStatusToolStripMenuItem1")] private ToolStripMenuItem _SortStatusToolStripMenuItem1; [AccessedThroughProperty("SortURIToolStripMenuItem1")] private ToolStripMenuItem _SortURIToolStripMenuItem1; [AccessedThroughProperty("ToolStripSeparator23")] private ToolStripSeparator _ToolStripSeparator23; [AccessedThroughProperty("AutoColumnWidthToolStripMenuItem2")] private ToolStripMenuItem _AutoColumnWidthToolStripMenuItem2; [AccessedThroughProperty("GroupToolStripMenuItem")] private ToolStripMenuItem _GroupToolStripMenuItem; [AccessedThroughProperty("GroupNoneToolStripMenuItem")] private ToolStripMenuItem _GroupNoneToolStripMenuItem; [AccessedThroughProperty("GroupTypeToolStripMenuItem")] private ToolStripMenuItem _GroupTypeToolStripMenuItem; [AccessedThroughProperty("GroupSizeToolStripMenuItem")] private ToolStripMenuItem _GroupSizeToolStripMenuItem; [AccessedThroughProperty("GroupToolStripMenuItem1")] private ToolStripMenuItem _GroupToolStripMenuItem1; [AccessedThroughProperty("GroupNoneToolStripMenuItem1")] private ToolStripMenuItem _GroupNoneToolStripMenuItem1; [AccessedThroughProperty("GroupTypeToolStripMenuItem1")] private ToolStripMenuItem _GroupTypeToolStripMenuItem1; [AccessedThroughProperty("GroupSizeToolStripMenuItem1")] private ToolStripMenuItem _GroupSizeToolStripMenuItem1; [AccessedThroughProperty("ToolStripSeparator24")] private ToolStripSeparator _ToolStripSeparator24; [AccessedThroughProperty("GroupNameToolStripMenuItem")] private ToolStripMenuItem _GroupNameToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator25")] private ToolStripSeparator _ToolStripSeparator25; [AccessedThroughProperty("GroupNameToolStripMenuItem1")] private ToolStripMenuItem _GroupNameToolStripMenuItem1; [AccessedThroughProperty("GoToHomeToolStripMenuItem")] private ToolStripMenuItem _GoToHomeToolStripMenuItem; [AccessedThroughProperty("GoToParentToolStripMenuItem")] private ToolStripMenuItem _GoToParentToolStripMenuItem; [AccessedThroughProperty("RefreshToolStripMenuItem")] private ToolStripMenuItem _RefreshToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator2")] private ToolStripSeparator _ToolStripSeparator2; [AccessedThroughProperty("SelectAllToolStripMenuItem")] private ToolStripMenuItem _SelectAllToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator10")] private ToolStripSeparator _ToolStripSeparator10; [AccessedThroughProperty("TestToolStripMenuItem")] private ToolStripMenuItem _TestToolStripMenuItem; [AccessedThroughProperty("PasteToolStripMenuItem")] private ToolStripMenuItem _PasteToolStripMenuItem; [AccessedThroughProperty("CopyToolStripMenuItem")] private ToolStripMenuItem _CopyToolStripMenuItem; [AccessedThroughProperty("CopyContextMenuItem")] private ToolStripMenuItem _CopyContextMenuItem; [AccessedThroughProperty("PasteContextMenuItem")] private ToolStripMenuItem _PasteContextMenuItem; [AccessedThroughProperty("SecureToolStripLabel")] private ToolStripLabel _SecureToolStripLabel; [AccessedThroughProperty("CutToolStripMenuItem")] private ToolStripMenuItem _CutToolStripMenuItem; [AccessedThroughProperty("CutContextMenuItem")] private ToolStripMenuItem _CutContextMenuItem; [AccessedThroughProperty("NewVersionToolStripMenuItem")] private ToolStripMenuItem _NewVersionToolStripMenuItem; [AccessedThroughProperty("CutToolStripButton")] private ToolStripButton _CutToolStripButton; [AccessedThroughProperty("ToolStripSeparator27")] private ToolStripSeparator _ToolStripSeparator27; [AccessedThroughProperty("CopyToolStripButton")] private ToolStripButton _CopyToolStripButton; [AccessedThroughProperty("PasteToolStripButton")] private ToolStripButton _PasteToolStripButton; [AccessedThroughProperty("ToolStripSeparator28")] private ToolStripSeparator _ToolStripSeparator28; [AccessedThroughProperty("NewConnectionContextMenuItem")] private ToolStripMenuItem _NewConnectionContextMenuItem; [AccessedThroughProperty("ImportContextMenuItem")] private ToolStripMenuItem _ImportContextMenuItem; [AccessedThroughProperty("ExportContextMenuItem")] private ToolStripMenuItem _ExportContextMenuItem; [AccessedThroughProperty("ImportToolStripMenuItem")] private ToolStripMenuItem _ImportToolStripMenuItem; [AccessedThroughProperty("ExportToolStripMenuItem")] private ToolStripMenuItem _ExportToolStripMenuItem; [AccessedThroughProperty("NewConnectionToolStripMenuItem")] private ToolStripMenuItem _NewConnectionToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparatorCustomMenuStart")] private ToolStripSeparator _ToolStripSeparatorCustomMenuStart; [AccessedThroughProperty("DuplicateContextMenuItem")] private ToolStripMenuItem _DuplicateContextMenuItem; [AccessedThroughProperty("DuplicateToolStripMenuItem")] private ToolStripMenuItem _DuplicateToolStripMenuItem; [AccessedThroughProperty("NewConnectionToolStripDropDownButton")] private ToolStripDropDownButton _NewConnectionToolStripDropDownButton; [AccessedThroughProperty("ContextMenuSeparatorConnection")] private ToolStripSeparator _ContextMenuSeparatorConnection; [AccessedThroughProperty("EnableWebDAVServerToolStripMenuItem")] private ToolStripMenuItem _EnableWebDAVServerToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator3")] private ToolStripSeparator _ToolStripSeparator3; [AccessedThroughProperty("DavServer1")] private DAVServer _DavServer1; [AccessedThroughProperty("SettingToolStripMenuItem")] private ToolStripMenuItem _SettingToolStripMenuItem; [AccessedThroughProperty("ToolStripSeparator4")] private ToolStripSeparator _ToolStripSeparator4; [AccessedThroughProperty("LargeImageList")] private ImageList _LargeImageList; [AccessedThroughProperty("SmallImageList")] private ImageList _SmallImageList; private const string VersionCheckUri = "http://rei.to/carotdav.version.txt"; private const string DownloadUri = "http://rei.to/carotdav.html#download"; internal const string GroupNameMain = "MainUI"; internal const string GroupNameUpDown = "UpDown"; internal static string AppUserModelId; internal WebDAVClientSetting pSetting; private ConnectionSettingBase pCurrentConnectionSetting; private ResourceInfo[] pCurrentResourceInfos; private bool pIsTemporaryConnection; private FsBase pFs; [AccessedThroughProperty("pFaviconDownloadWorker")] private BackgroundWorker _pFaviconDownloadWorker; [AccessedThroughProperty("pVersionChecker")] private BackgroundWorker _pVersionChecker; private LinkedList pUriHistory; private LinkedListNode pCurrentHistoryNode; private Dictionary pUpForms; private Dictionary pDownForms; private List pPropertyForms; private List pDataObjectList; private CarotDAVDataObject pDraggingDataObject; private CarotDAVDataObject pLastCopyCutDataObject; private MainForm.ExtractedData pCurrentExtractedData; private ListViewItem pCurrentDropHilighted; private Bitmap pResourceListViewBackgroundImage; private ImageLayout pResourceListViewBackgroundImageLayout; private ContentAlignment pResourceListViewBackgroundImageAlignment; private char pCurrentMountedDrive; private string pCurrentMappedFolder; [AccessedThroughProperty("pCache")] private CacheManager _pCache; private MainForm.WriteLineLogDel WriteLineLogHandler; private bool pTaskbarButtonCreated; public ConnectionSettingBase BootConnection; private EventHandler RemoteResourceChangedHandler; private bool needUpdateWindow; [DebuggerNonUserCode] protected override void Dispose(bool disposing) { try { if (!disposing || this.components == null) return; this.components.Dispose(); } finally { base.Dispose(disposing); } } [DebuggerStepThrough] private void InitializeComponent() { this.components = (IContainer) new System.ComponentModel.Container(); this.SplitContainer1 = new SplitContainer(); this.ResourceListView = new WallMarkListView(); this.ContextMenuStrip1 = new ContextMenuStrip(this.components); this.NewConnectionContextMenuItem = new ToolStripMenuItem(); this.ContextMenuSeparatorConnection = new ToolStripSeparator(); this.DownloadContextMenuItem = new ToolStripMenuItem(); this.ContextMenuSeparatorDownload = new ToolStripSeparator(); this.CutContextMenuItem = new ToolStripMenuItem(); this.CopyContextMenuItem = new ToolStripMenuItem(); this.PasteContextMenuItem = new ToolStripMenuItem(); this.DuplicateContextMenuItem = new ToolStripMenuItem(); this.DeleteContextMenuItem = new ToolStripMenuItem(); this.RenameContextMenuItem = new ToolStripMenuItem(); this.ImportContextMenuItem = new ToolStripMenuItem(); this.ExportContextMenuItem = new ToolStripMenuItem(); this.NewFolderContextMenuItem = new ToolStripMenuItem(); this.ToolStripSeparatorCustomMenuStart = new ToolStripSeparator(); this.CopyURIContextMenuItem = new ToolStripMenuItem(); this.CopyResourceNameContextMenuItem = new ToolStripMenuItem(); this.ContextMenuSeparatorCopy = new ToolStripSeparator(); this.ViewToolStripMenuItem1 = new ToolStripMenuItem(); this.LargeIconToolStripMenuItem2 = new ToolStripMenuItem(); this.SmallIconToolStripMenuItem2 = new ToolStripMenuItem(); this.ListToolStripMenuItem2 = new ToolStripMenuItem(); this.TileToolStripMenuItem2 = new ToolStripMenuItem(); this.DetailToolStripMenuItem2 = new ToolStripMenuItem(); this.ToolStripSeparator20 = new ToolStripSeparator(); this.AutoColumnWidthToolStripMenuItem = new ToolStripMenuItem(); this.SortToolStripMenuItem = new ToolStripMenuItem(); this.SortNameToolStripMenuItem = new ToolStripMenuItem(); this.SortSizeToolStripMenuItem = new ToolStripMenuItem(); this.SortLastModifiedDateToolStripMenuItem = new ToolStripMenuItem(); this.SortCreationDateToolStripMenuItem = new ToolStripMenuItem(); this.SortStatusToolStripMenuItem = new ToolStripMenuItem(); this.SortURIToolStripMenuItem = new ToolStripMenuItem(); this.GroupToolStripMenuItem = new ToolStripMenuItem(); this.GroupNoneToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator24 = new ToolStripSeparator(); this.GroupNameToolStripMenuItem = new ToolStripMenuItem(); this.GroupSizeToolStripMenuItem = new ToolStripMenuItem(); this.GroupTypeToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator19 = new ToolStripSeparator(); this.GoToParentContextMenuItem = new ToolStripMenuItem(); this.RefreshContextMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator16 = new ToolStripSeparator(); this.PropertyContextMenuItem = new ToolStripMenuItem(); this.LargeImageList = new ImageList(this.components); this.SmallImageList = new ImageList(this.components); this.LogTextBox = new TextBox(); this.ToolStrip1 = new NoEatToolStrip(); this.ConnectToolStripButton = new ToolStripButton(); this.NewConnectionToolStripDropDownButton = new ToolStripDropDownButton(); this.ToolStripSeparator6 = new ToolStripSeparator(); this.BackToolStripButton = new ToolStripButton(); this.ForwardToolStripButton = new ToolStripButton(); this.ToolStripSeparator11 = new ToolStripSeparator(); this.GoToParentToolStripButton = new ToolStripButton(); this.RefreshToolStripButton = new ToolStripButton(); this.ToolStripSeparator5 = new ToolStripSeparator(); this.NewFolderToolStripButton = new ToolStripButton(); this.ToolStripSeparator27 = new ToolStripSeparator(); this.CutToolStripButton = new ToolStripButton(); this.CopyToolStripButton = new ToolStripButton(); this.PasteToolStripButton = new ToolStripButton(); this.DeleteToolStripButton = new ToolStripButton(); this.ToolStripSeparator28 = new ToolStripSeparator(); this.PropertyToolStripButton = new ToolStripButton(); this.ToolStripSeparator7 = new ToolStripSeparator(); this.UploadFolderToolStripButton = new ToolStripButton(); this.UploadToolStripButton = new ToolStripButton(); this.DownloadToolStripButton = new ToolStripButton(); this.ToolStripSeparator8 = new ToolStripSeparator(); this.ToolStripSplitButton1 = new ToolStripSplitButton(); this.LargeIconToolStripMenuItem = new ToolStripMenuItem(); this.SmallIconToolStripMenuItem = new ToolStripMenuItem(); this.ListToolStripMenuItem = new ToolStripMenuItem(); this.TileToolStripMenuItem = new ToolStripMenuItem(); this.DetailToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator23 = new ToolStripSeparator(); this.AutoColumnWidthToolStripMenuItem2 = new ToolStripMenuItem(); this.FileToolStripMenuItem = new ToolStripMenuItem(); this.NewConnectionToolStripMenuItem = new ToolStripMenuItem(); this.ConnectToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator1 = new ToolStripSeparator(); this.ExitToolStripMenuItem = new ToolStripMenuItem(); this.EditToolStripMenuItem = new ToolStripMenuItem(); this.CutToolStripMenuItem = new ToolStripMenuItem(); this.CopyToolStripMenuItem = new ToolStripMenuItem(); this.PasteToolStripMenuItem = new ToolStripMenuItem(); this.DuplicateToolStripMenuItem = new ToolStripMenuItem(); this.DeleteToolStripMenuItem = new ToolStripMenuItem(); this.RenameToolStripMenuItem = new ToolStripMenuItem(); this.ImportToolStripMenuItem = new ToolStripMenuItem(); this.ExportToolStripMenuItem = new ToolStripMenuItem(); this.NewFolderToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator15 = new ToolStripSeparator(); this.UploadFolderToolStripMenuItem = new ToolStripMenuItem(); this.UploadToolStripMenuItem = new ToolStripMenuItem(); this.DownloadToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripMenuSeparatorUpDown = new ToolStripSeparator(); this.SelectAllToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator10 = new ToolStripSeparator(); this.PropertyToolStripMenuItem = new ToolStripMenuItem(); this.HelpToolStripMenuItem = new ToolStripMenuItem(); this.AboutToolStripMenuItem = new ToolStripMenuItem(); this.MenuStrip1 = new NoEatMenuStrip(); this.ViewToolStripMenuItem = new ToolStripMenuItem(); this.RefreshToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator2 = new ToolStripSeparator(); this.BackToolStripMenuItem = new ToolStripMenuItem(); this.ForwardToolStripMenuItem = new ToolStripMenuItem(); this.GoToParentToolStripMenuItem = new ToolStripMenuItem(); this.GoToHomeToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator12 = new ToolStripSeparator(); this.LargeIconToolStripMenuItem1 = new ToolStripMenuItem(); this.SmallIconToolStripMenuItem1 = new ToolStripMenuItem(); this.ListToolStripMenuItem1 = new ToolStripMenuItem(); this.TileToolStripMenuItem1 = new ToolStripMenuItem(); this.DetailToolStripMenuItem1 = new ToolStripMenuItem(); this.ToolStripSeparator22 = new ToolStripSeparator(); this.AutoColumnWidthToolStripMenuItem1 = new ToolStripMenuItem(); this.ToolStripSeparator21 = new ToolStripSeparator(); this.SortToolStripMenuItem1 = new ToolStripMenuItem(); this.SortNameToolStripMenuItem1 = new ToolStripMenuItem(); this.SortLastModifiedDateToolStripMenuItem1 = new ToolStripMenuItem(); this.SortCreationDateToolStripMenuItem1 = new ToolStripMenuItem(); this.SortStatusToolStripMenuItem1 = new ToolStripMenuItem(); this.SortURIToolStripMenuItem1 = new ToolStripMenuItem(); this.GroupToolStripMenuItem1 = new ToolStripMenuItem(); this.GroupNoneToolStripMenuItem1 = new ToolStripMenuItem(); this.ToolStripSeparator25 = new ToolStripSeparator(); this.GroupNameToolStripMenuItem1 = new ToolStripMenuItem(); this.GroupSizeToolStripMenuItem1 = new ToolStripMenuItem(); this.GroupTypeToolStripMenuItem1 = new ToolStripMenuItem(); this.ToolStripSeparator9 = new ToolStripSeparator(); this.LogToolStripMenuItem = new ToolStripMenuItem(); this.StatusBarToolStripMenuItem = new ToolStripMenuItem(); this.ToolToolStripMenuItem = new ToolStripMenuItem(); this.LogToFileToolStripMenuItem = new ToolStripMenuItem(); this.TestToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator3 = new ToolStripSeparator(); this.EnableWebDAVServerToolStripMenuItem = new ToolStripMenuItem(); this.ToolStripSeparator4 = new ToolStripSeparator(); this.SettingToolStripMenuItem = new ToolStripMenuItem(); this.NewVersionToolStripMenuItem = new ToolStripMenuItem(); this.FolderBrowserDialog1 = new FolderBrowserDialog(); this.OpenFileDialog1 = new OpenFileDialog(); this.ExpandToolStrip1 = new RightAlignToolStrip(); this.FaviconToolStripButton = new ToolStripButton(); this.SecureToolStripLabel = new ToolStripLabel(); this.UriToolStripTextBox = new ToolStripTextBox(); this.ToolStripGoButton = new ToolStripButton(); this.ToolStripContainer1 = new ToolStripContainer(); this.StatusStrip1 = new StatusStrip(); this.ToolStripTotal = new ToolStripStatusLabel(); this.ToolStripSelected = new ToolStripStatusLabel(); this.DavServer1 = new DAVServer(this.components); ToolStripMenuItem toolStripMenuItem1 = new ToolStripMenuItem(); this.SplitContainer1.Panel1.SuspendLayout(); this.SplitContainer1.Panel2.SuspendLayout(); this.SplitContainer1.SuspendLayout(); this.ContextMenuStrip1.SuspendLayout(); this.ToolStrip1.SuspendLayout(); this.MenuStrip1.SuspendLayout(); this.ExpandToolStrip1.SuspendLayout(); this.ToolStripContainer1.BottomToolStripPanel.SuspendLayout(); this.ToolStripContainer1.ContentPanel.SuspendLayout(); this.ToolStripContainer1.TopToolStripPanel.SuspendLayout(); this.ToolStripContainer1.SuspendLayout(); this.StatusStrip1.SuspendLayout(); this.SuspendLayout(); toolStripMenuItem1.Name = "SortSizeToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem2 = toolStripMenuItem1; Size size1 = new Size(185, 22); Size size2 = size1; toolStripMenuItem2.Size = size2; toolStripMenuItem1.Text = "Size"; toolStripMenuItem1.Click += new EventHandler(this.SortSizeToolStripMenuItem_Click); this.SplitContainer1.Dock = DockStyle.Fill; SplitContainer splitContainer1_1 = this.SplitContainer1; Point point1 = new Point(0, 0); Point point2 = point1; splitContainer1_1.Location = point2; this.SplitContainer1.Name = "SplitContainer1"; this.SplitContainer1.Orientation = Orientation.Horizontal; this.SplitContainer1.Panel1.Controls.Add((Control) this.ResourceListView); this.SplitContainer1.Panel2.Controls.Add((Control) this.LogTextBox); this.SplitContainer1.Panel2MinSize = 0; SplitContainer splitContainer1_2 = this.SplitContainer1; size1 = new Size(498, 162); Size size3 = size1; splitContainer1_2.Size = size3; this.SplitContainer1.SplitterDistance = 131; this.SplitContainer1.TabIndex = 2; this.ResourceListView.Alignment = ListViewAlignment.SnapToGrid; this.ResourceListView.AllowColumnReorder = true; this.ResourceListView.AllowDrop = true; this.ResourceListView.ContextMenuStrip = this.ContextMenuStrip1; this.ResourceListView.Dock = DockStyle.Fill; this.ResourceListView.FullRowSelect = true; this.ResourceListView.LabelEdit = true; this.ResourceListView.LargeImageList = this.LargeImageList; WallMarkListView resourceListView1 = this.ResourceListView; point1 = new Point(0, 0); Point point3 = point1; resourceListView1.Location = point3; this.ResourceListView.Name = "ResourceListView"; WallMarkListView resourceListView2 = this.ResourceListView; size1 = new Size(498, 131); Size size4 = size1; resourceListView2.Size = size4; this.ResourceListView.SmallImageList = this.SmallImageList; this.ResourceListView.TabIndex = 0; this.ResourceListView.UseCompatibleStateImageBehavior = false; this.ContextMenuStrip1.Items.AddRange(new ToolStripItem[25] { (ToolStripItem) this.NewConnectionContextMenuItem, (ToolStripItem) this.ContextMenuSeparatorConnection, (ToolStripItem) this.DownloadContextMenuItem, (ToolStripItem) this.ContextMenuSeparatorDownload, (ToolStripItem) this.CutContextMenuItem, (ToolStripItem) this.CopyContextMenuItem, (ToolStripItem) this.PasteContextMenuItem, (ToolStripItem) this.DuplicateContextMenuItem, (ToolStripItem) this.DeleteContextMenuItem, (ToolStripItem) this.RenameContextMenuItem, (ToolStripItem) this.ImportContextMenuItem, (ToolStripItem) this.ExportContextMenuItem, (ToolStripItem) this.NewFolderContextMenuItem, (ToolStripItem) this.ToolStripSeparatorCustomMenuStart, (ToolStripItem) this.CopyURIContextMenuItem, (ToolStripItem) this.CopyResourceNameContextMenuItem, (ToolStripItem) this.ContextMenuSeparatorCopy, (ToolStripItem) this.ViewToolStripMenuItem1, (ToolStripItem) this.SortToolStripMenuItem, (ToolStripItem) this.GroupToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator19, (ToolStripItem) this.GoToParentContextMenuItem, (ToolStripItem) this.RefreshContextMenuItem, (ToolStripItem) this.ToolStripSeparator16, (ToolStripItem) this.PropertyContextMenuItem }); this.ContextMenuStrip1.Name = "ContextMenuStrip1"; ContextMenuStrip contextMenuStrip1 = this.ContextMenuStrip1; size1 = new Size(202, 458); Size size5 = size1; contextMenuStrip1.Size = size5; this.NewConnectionContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.ConnectNew; this.NewConnectionContextMenuItem.Name = "NewConnectionContextMenuItem"; ToolStripMenuItem connectionContextMenuItem = this.NewConnectionContextMenuItem; size1 = new Size(201, 22); Size size6 = size1; connectionContextMenuItem.Size = size6; this.NewConnectionContextMenuItem.Text = "New Connection"; this.ContextMenuSeparatorConnection.Name = "ContextMenuSeparatorConnection"; ToolStripSeparator separatorConnection = this.ContextMenuSeparatorConnection; size1 = new Size(198, 6); Size size7 = size1; separatorConnection.Size = size7; this.DownloadContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Download; this.DownloadContextMenuItem.Name = "DownloadContextMenuItem"; ToolStripMenuItem downloadContextMenuItem = this.DownloadContextMenuItem; size1 = new Size(201, 22); Size size8 = size1; downloadContextMenuItem.Size = size8; this.DownloadContextMenuItem.Text = "Download"; this.ContextMenuSeparatorDownload.Name = "ContextMenuSeparatorDownload"; ToolStripSeparator separatorDownload = this.ContextMenuSeparatorDownload; size1 = new Size(198, 6); Size size9 = size1; separatorDownload.Size = size9; this.CutContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Cut; this.CutContextMenuItem.Name = "CutContextMenuItem"; ToolStripMenuItem cutContextMenuItem = this.CutContextMenuItem; size1 = new Size(201, 22); Size size10 = size1; cutContextMenuItem.Size = size10; this.CutContextMenuItem.Text = "Cut"; this.CopyContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Copy2; this.CopyContextMenuItem.Name = "CopyContextMenuItem"; ToolStripMenuItem copyContextMenuItem = this.CopyContextMenuItem; size1 = new Size(201, 22); Size size11 = size1; copyContextMenuItem.Size = size11; this.CopyContextMenuItem.Text = "Copy"; this.PasteContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Paste; this.PasteContextMenuItem.Name = "PasteContextMenuItem"; ToolStripMenuItem pasteContextMenuItem = this.PasteContextMenuItem; size1 = new Size(201, 22); Size size12 = size1; pasteContextMenuItem.Size = size12; this.PasteContextMenuItem.Text = "Paste"; this.DuplicateContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Copy; this.DuplicateContextMenuItem.Name = "DuplicateContextMenuItem"; ToolStripMenuItem duplicateContextMenuItem = this.DuplicateContextMenuItem; size1 = new Size(201, 22); Size size13 = size1; duplicateContextMenuItem.Size = size13; this.DuplicateContextMenuItem.Text = "Duplicate"; this.DeleteContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Delete; this.DeleteContextMenuItem.Name = "DeleteContextMenuItem"; ToolStripMenuItem deleteContextMenuItem = this.DeleteContextMenuItem; size1 = new Size(201, 22); Size size14 = size1; deleteContextMenuItem.Size = size14; this.DeleteContextMenuItem.Text = "Delete(&D)"; this.RenameContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.RenameFolderHS; this.RenameContextMenuItem.Name = "RenameContextMenuItem"; ToolStripMenuItem renameContextMenuItem = this.RenameContextMenuItem; size1 = new Size(201, 22); Size size15 = size1; renameContextMenuItem.Size = size15; this.RenameContextMenuItem.Text = "Rename(&M)"; this.ImportContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Import; this.ImportContextMenuItem.Name = "ImportContextMenuItem"; ToolStripMenuItem importContextMenuItem = this.ImportContextMenuItem; size1 = new Size(201, 22); Size size16 = size1; importContextMenuItem.Size = size16; this.ImportContextMenuItem.Text = "Import"; this.ExportContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Export; this.ExportContextMenuItem.Name = "ExportContextMenuItem"; ToolStripMenuItem exportContextMenuItem = this.ExportContextMenuItem; size1 = new Size(201, 22); Size size17 = size1; exportContextMenuItem.Size = size17; this.ExportContextMenuItem.Text = "Export"; this.NewFolderContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.NewFolder; this.NewFolderContextMenuItem.Name = "NewFolderContextMenuItem"; ToolStripMenuItem folderContextMenuItem = this.NewFolderContextMenuItem; size1 = new Size(201, 22); Size size18 = size1; folderContextMenuItem.Size = size18; this.NewFolderContextMenuItem.Text = "New Folder(&F)"; this.ToolStripSeparatorCustomMenuStart.Name = "ToolStripSeparatorCustomMenuStart"; ToolStripSeparator separatorCustomMenuStart = this.ToolStripSeparatorCustomMenuStart; size1 = new Size(198, 6); Size size19 = size1; separatorCustomMenuStart.Size = size19; this.CopyURIContextMenuItem.Name = "CopyURIContextMenuItem"; ToolStripMenuItem uriContextMenuItem = this.CopyURIContextMenuItem; size1 = new Size(201, 22); Size size20 = size1; uriContextMenuItem.Size = size20; this.CopyURIContextMenuItem.Text = "Copy URI(&C)"; this.CopyResourceNameContextMenuItem.Name = "CopyResourceNameContextMenuItem"; ToolStripMenuItem nameContextMenuItem = this.CopyResourceNameContextMenuItem; size1 = new Size(201, 22); Size size21 = size1; nameContextMenuItem.Size = size21; this.CopyResourceNameContextMenuItem.Text = "Copy Resource Name"; this.ContextMenuSeparatorCopy.Name = "ContextMenuSeparatorCopy"; ToolStripSeparator menuSeparatorCopy = this.ContextMenuSeparatorCopy; size1 = new Size(198, 6); Size size22 = size1; menuSeparatorCopy.Size = size22; this.ViewToolStripMenuItem1.DropDownItems.AddRange(new ToolStripItem[7] { (ToolStripItem) this.LargeIconToolStripMenuItem2, (ToolStripItem) this.SmallIconToolStripMenuItem2, (ToolStripItem) this.ListToolStripMenuItem2, (ToolStripItem) this.TileToolStripMenuItem2, (ToolStripItem) this.DetailToolStripMenuItem2, (ToolStripItem) this.ToolStripSeparator20, (ToolStripItem) this.AutoColumnWidthToolStripMenuItem }); this.ViewToolStripMenuItem1.Name = "ViewToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_1 = this.ViewToolStripMenuItem1; size1 = new Size(201, 22); Size size23 = size1; toolStripMenuItem1_1.Size = size23; this.ViewToolStripMenuItem1.Text = "View"; this.LargeIconToolStripMenuItem2.Name = "LargeIconToolStripMenuItem2"; ToolStripMenuItem toolStripMenuItem2_1 = this.LargeIconToolStripMenuItem2; size1 = new Size(189, 22); Size size24 = size1; toolStripMenuItem2_1.Size = size24; this.LargeIconToolStripMenuItem2.Text = "Large Icon"; this.SmallIconToolStripMenuItem2.Name = "SmallIconToolStripMenuItem2"; ToolStripMenuItem toolStripMenuItem2_2 = this.SmallIconToolStripMenuItem2; size1 = new Size(189, 22); Size size25 = size1; toolStripMenuItem2_2.Size = size25; this.SmallIconToolStripMenuItem2.Text = "Small Icon"; this.ListToolStripMenuItem2.Name = "ListToolStripMenuItem2"; ToolStripMenuItem toolStripMenuItem2_3 = this.ListToolStripMenuItem2; size1 = new Size(189, 22); Size size26 = size1; toolStripMenuItem2_3.Size = size26; this.ListToolStripMenuItem2.Text = "List"; this.TileToolStripMenuItem2.Name = "TileToolStripMenuItem2"; ToolStripMenuItem toolStripMenuItem2_4 = this.TileToolStripMenuItem2; size1 = new Size(189, 22); Size size27 = size1; toolStripMenuItem2_4.Size = size27; this.TileToolStripMenuItem2.Text = "Tile"; this.DetailToolStripMenuItem2.Name = "DetailToolStripMenuItem2"; ToolStripMenuItem toolStripMenuItem2_5 = this.DetailToolStripMenuItem2; size1 = new Size(189, 22); Size size28 = size1; toolStripMenuItem2_5.Size = size28; this.DetailToolStripMenuItem2.Text = "Detail"; this.ToolStripSeparator20.Name = "ToolStripSeparator20"; ToolStripSeparator stripSeparator20 = this.ToolStripSeparator20; size1 = new Size(186, 6); Size size29 = size1; stripSeparator20.Size = size29; this.AutoColumnWidthToolStripMenuItem.Name = "AutoColumnWidthToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem3 = this.AutoColumnWidthToolStripMenuItem; size1 = new Size(189, 22); Size size30 = size1; toolStripMenuItem3.Size = size30; this.AutoColumnWidthToolStripMenuItem.Text = "Auto Column Width"; this.SortToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[6] { (ToolStripItem) this.SortNameToolStripMenuItem, (ToolStripItem) this.SortSizeToolStripMenuItem, (ToolStripItem) this.SortLastModifiedDateToolStripMenuItem, (ToolStripItem) this.SortCreationDateToolStripMenuItem, (ToolStripItem) this.SortStatusToolStripMenuItem, (ToolStripItem) this.SortURIToolStripMenuItem }); this.SortToolStripMenuItem.Name = "SortToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem4 = this.SortToolStripMenuItem; size1 = new Size(201, 22); Size size31 = size1; toolStripMenuItem4.Size = size31; this.SortToolStripMenuItem.Text = "Sort"; this.SortNameToolStripMenuItem.Name = "SortNameToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem5 = this.SortNameToolStripMenuItem; size1 = new Size(185, 22); Size size32 = size1; toolStripMenuItem5.Size = size32; this.SortNameToolStripMenuItem.Text = "Name"; this.SortSizeToolStripMenuItem.Name = "SortSizeToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem6 = this.SortSizeToolStripMenuItem; size1 = new Size(185, 22); Size size33 = size1; toolStripMenuItem6.Size = size33; this.SortSizeToolStripMenuItem.Text = "Size"; this.SortLastModifiedDateToolStripMenuItem.Name = "SortLastModifiedDateToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem7 = this.SortLastModifiedDateToolStripMenuItem; size1 = new Size(185, 22); Size size34 = size1; toolStripMenuItem7.Size = size34; this.SortLastModifiedDateToolStripMenuItem.Text = "Last Modified Date"; this.SortCreationDateToolStripMenuItem.Name = "SortCreationDateToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem8 = this.SortCreationDateToolStripMenuItem; size1 = new Size(185, 22); Size size35 = size1; toolStripMenuItem8.Size = size35; this.SortCreationDateToolStripMenuItem.Text = "Creation Date"; this.SortStatusToolStripMenuItem.Name = "SortStatusToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem9 = this.SortStatusToolStripMenuItem; size1 = new Size(185, 22); Size size36 = size1; toolStripMenuItem9.Size = size36; this.SortStatusToolStripMenuItem.Text = "Status"; this.SortURIToolStripMenuItem.Name = "SortURIToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem10 = this.SortURIToolStripMenuItem; size1 = new Size(185, 22); Size size37 = size1; toolStripMenuItem10.Size = size37; this.SortURIToolStripMenuItem.Text = "URI"; this.GroupToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[5] { (ToolStripItem) this.GroupNoneToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator24, (ToolStripItem) this.GroupNameToolStripMenuItem, (ToolStripItem) this.GroupSizeToolStripMenuItem, (ToolStripItem) this.GroupTypeToolStripMenuItem }); this.GroupToolStripMenuItem.Name = "GroupToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem11 = this.GroupToolStripMenuItem; size1 = new Size(201, 22); Size size38 = size1; toolStripMenuItem11.Size = size38; this.GroupToolStripMenuItem.Text = "Group"; this.GroupNoneToolStripMenuItem.Name = "GroupNoneToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem12 = this.GroupNoneToolStripMenuItem; size1 = new Size(111, 22); Size size39 = size1; toolStripMenuItem12.Size = size39; this.GroupNoneToolStripMenuItem.Text = "None"; this.ToolStripSeparator24.Name = "ToolStripSeparator24"; ToolStripSeparator stripSeparator24 = this.ToolStripSeparator24; size1 = new Size(108, 6); Size size40 = size1; stripSeparator24.Size = size40; this.GroupNameToolStripMenuItem.Name = "GroupNameToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem13 = this.GroupNameToolStripMenuItem; size1 = new Size(111, 22); Size size41 = size1; toolStripMenuItem13.Size = size41; this.GroupNameToolStripMenuItem.Text = "Name"; this.GroupSizeToolStripMenuItem.Name = "GroupSizeToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem14 = this.GroupSizeToolStripMenuItem; size1 = new Size(111, 22); Size size42 = size1; toolStripMenuItem14.Size = size42; this.GroupSizeToolStripMenuItem.Text = "Size"; this.GroupTypeToolStripMenuItem.Name = "GroupTypeToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem15 = this.GroupTypeToolStripMenuItem; size1 = new Size(111, 22); Size size43 = size1; toolStripMenuItem15.Size = size43; this.GroupTypeToolStripMenuItem.Text = "Type"; this.ToolStripSeparator19.Name = "ToolStripSeparator19"; ToolStripSeparator stripSeparator19 = this.ToolStripSeparator19; size1 = new Size(198, 6); Size size44 = size1; stripSeparator19.Size = size44; this.GoToParentContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.GoToParentFolder; this.GoToParentContextMenuItem.Name = "GoToParentContextMenuItem"; ToolStripMenuItem parentContextMenuItem = this.GoToParentContextMenuItem; size1 = new Size(201, 22); Size size45 = size1; parentContextMenuItem.Size = size45; this.GoToParentContextMenuItem.Text = "Go To Parent"; this.RefreshContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Refresh; this.RefreshContextMenuItem.Name = "RefreshContextMenuItem"; ToolStripMenuItem refreshContextMenuItem = this.RefreshContextMenuItem; size1 = new Size(201, 22); Size size46 = size1; refreshContextMenuItem.Size = size46; this.RefreshContextMenuItem.Text = "Refresh(&E)"; this.ToolStripSeparator16.Name = "ToolStripSeparator16"; ToolStripSeparator stripSeparator16 = this.ToolStripSeparator16; size1 = new Size(198, 6); Size size47 = size1; stripSeparator16.Size = size47; this.PropertyContextMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Properties; this.PropertyContextMenuItem.Name = "PropertyContextMenuItem"; this.PropertyContextMenuItem.ShortcutKeyDisplayString = ""; ToolStripMenuItem propertyContextMenuItem = this.PropertyContextMenuItem; size1 = new Size(201, 22); Size size48 = size1; propertyContextMenuItem.Size = size48; this.PropertyContextMenuItem.Text = "Property(&R)"; this.LargeImageList.ColorDepth = ColorDepth.Depth32Bit; ImageList largeImageList = this.LargeImageList; size1 = new Size(48, 48); Size size49 = size1; largeImageList.ImageSize = size49; this.LargeImageList.TransparentColor = System.Drawing.Color.Transparent; this.SmallImageList.ColorDepth = ColorDepth.Depth32Bit; ImageList smallImageList = this.SmallImageList; size1 = new Size(16, 16); Size size50 = size1; smallImageList.ImageSize = size50; this.SmallImageList.TransparentColor = System.Drawing.Color.Transparent; this.LogTextBox.Dock = DockStyle.Fill; TextBox logTextBox1 = this.LogTextBox; point1 = new Point(0, 0); Point point4 = point1; logTextBox1.Location = point4; this.LogTextBox.Multiline = true; this.LogTextBox.Name = "LogTextBox"; this.LogTextBox.ReadOnly = true; this.LogTextBox.ScrollBars = ScrollBars.Vertical; TextBox logTextBox2 = this.LogTextBox; size1 = new Size(498, 27); Size size51 = size1; logTextBox2.Size = size51; this.LogTextBox.TabIndex = 0; this.LogTextBox.TabStop = false; this.ToolStrip1.Dock = DockStyle.None; this.ToolStrip1.Items.AddRange(new ToolStripItem[23] { (ToolStripItem) this.ConnectToolStripButton, (ToolStripItem) this.NewConnectionToolStripDropDownButton, (ToolStripItem) this.ToolStripSeparator6, (ToolStripItem) this.BackToolStripButton, (ToolStripItem) this.ForwardToolStripButton, (ToolStripItem) this.ToolStripSeparator11, (ToolStripItem) this.GoToParentToolStripButton, (ToolStripItem) this.RefreshToolStripButton, (ToolStripItem) this.ToolStripSeparator5, (ToolStripItem) this.NewFolderToolStripButton, (ToolStripItem) this.ToolStripSeparator27, (ToolStripItem) this.CutToolStripButton, (ToolStripItem) this.CopyToolStripButton, (ToolStripItem) this.PasteToolStripButton, (ToolStripItem) this.DeleteToolStripButton, (ToolStripItem) this.ToolStripSeparator28, (ToolStripItem) this.PropertyToolStripButton, (ToolStripItem) this.ToolStripSeparator7, (ToolStripItem) this.UploadFolderToolStripButton, (ToolStripItem) this.UploadToolStripButton, (ToolStripItem) this.DownloadToolStripButton, (ToolStripItem) this.ToolStripSeparator8, (ToolStripItem) this.ToolStripSplitButton1 }); NoEatToolStrip toolStrip1_1 = this.ToolStrip1; point1 = new Point(0, 26); Point point5 = point1; toolStrip1_1.Location = point5; this.ToolStrip1.Name = "ToolStrip1"; NoEatToolStrip toolStrip1_2 = this.ToolStrip1; size1 = new Size(498, 25); Size size52 = size1; toolStrip1_2.Size = size52; this.ToolStrip1.Stretch = true; this.ToolStrip1.TabIndex = 1; this.ToolStrip1.Text = "ToolStrip1"; this.ConnectToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ConnectToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Connect; this.ConnectToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.ConnectToolStripButton.Name = "ConnectToolStripButton"; ToolStripButton connectToolStripButton = this.ConnectToolStripButton; size1 = new Size(23, 22); Size size53 = size1; connectToolStripButton.Size = size53; this.ConnectToolStripButton.Text = "Connections"; this.NewConnectionToolStripDropDownButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.NewConnectionToolStripDropDownButton.Image = (Image) CarotDAV.My.Resources.Resources.ConnectNew; this.NewConnectionToolStripDropDownButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.NewConnectionToolStripDropDownButton.Name = "NewConnectionToolStripDropDownButton"; ToolStripDropDownButton stripDropDownButton = this.NewConnectionToolStripDropDownButton; size1 = new Size(29, 22); Size size54 = size1; stripDropDownButton.Size = size54; this.NewConnectionToolStripDropDownButton.Text = "New Connection"; this.ToolStripSeparator6.Name = "ToolStripSeparator6"; ToolStripSeparator toolStripSeparator6 = this.ToolStripSeparator6; size1 = new Size(6, 25); Size size55 = size1; toolStripSeparator6.Size = size55; this.BackToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.BackToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.NavBack; this.BackToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.BackToolStripButton.Name = "BackToolStripButton"; ToolStripButton backToolStripButton = this.BackToolStripButton; size1 = new Size(23, 22); Size size56 = size1; backToolStripButton.Size = size56; this.BackToolStripButton.Text = "Back"; this.ForwardToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ForwardToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.NavForward; this.ForwardToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.ForwardToolStripButton.Name = "ForwardToolStripButton"; ToolStripButton forwardToolStripButton = this.ForwardToolStripButton; size1 = new Size(23, 22); Size size57 = size1; forwardToolStripButton.Size = size57; this.ForwardToolStripButton.Text = "Forward"; this.ToolStripSeparator11.Name = "ToolStripSeparator11"; ToolStripSeparator stripSeparator11 = this.ToolStripSeparator11; size1 = new Size(6, 25); Size size58 = size1; stripSeparator11.Size = size58; this.GoToParentToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.GoToParentToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.GoToParentFolder; this.GoToParentToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.GoToParentToolStripButton.Name = "GoToParentToolStripButton"; ToolStripButton parentToolStripButton = this.GoToParentToolStripButton; size1 = new Size(23, 22); Size size59 = size1; parentToolStripButton.Size = size59; this.GoToParentToolStripButton.Text = "Parent"; this.RefreshToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.RefreshToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Refresh; this.RefreshToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.RefreshToolStripButton.Name = "RefreshToolStripButton"; ToolStripButton refreshToolStripButton = this.RefreshToolStripButton; size1 = new Size(23, 22); Size size60 = size1; refreshToolStripButton.Size = size60; this.RefreshToolStripButton.Text = "Refresh"; this.ToolStripSeparator5.Name = "ToolStripSeparator5"; ToolStripSeparator toolStripSeparator5 = this.ToolStripSeparator5; size1 = new Size(6, 25); Size size61 = size1; toolStripSeparator5.Size = size61; this.NewFolderToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.NewFolderToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.NewFolder; this.NewFolderToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.NewFolderToolStripButton.Name = "NewFolderToolStripButton"; ToolStripButton folderToolStripButton1 = this.NewFolderToolStripButton; size1 = new Size(23, 22); Size size62 = size1; folderToolStripButton1.Size = size62; this.NewFolderToolStripButton.Text = "New Folder"; this.ToolStripSeparator27.Name = "ToolStripSeparator27"; ToolStripSeparator stripSeparator27 = this.ToolStripSeparator27; size1 = new Size(6, 25); Size size63 = size1; stripSeparator27.Size = size63; this.CutToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.CutToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Cut; this.CutToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.CutToolStripButton.Name = "CutToolStripButton"; ToolStripButton cutToolStripButton = this.CutToolStripButton; size1 = new Size(23, 22); Size size64 = size1; cutToolStripButton.Size = size64; this.CutToolStripButton.Text = "Cut"; this.CopyToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.CopyToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Copy2; this.CopyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.CopyToolStripButton.Name = "CopyToolStripButton"; ToolStripButton copyToolStripButton = this.CopyToolStripButton; size1 = new Size(23, 22); Size size65 = size1; copyToolStripButton.Size = size65; this.CopyToolStripButton.Text = "Copy"; this.PasteToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.PasteToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Paste; this.PasteToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.PasteToolStripButton.Name = "PasteToolStripButton"; ToolStripButton pasteToolStripButton = this.PasteToolStripButton; size1 = new Size(23, 22); Size size66 = size1; pasteToolStripButton.Size = size66; this.PasteToolStripButton.Text = "Paste"; this.DeleteToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.DeleteToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Delete; this.DeleteToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.DeleteToolStripButton.Name = "DeleteToolStripButton"; ToolStripButton deleteToolStripButton = this.DeleteToolStripButton; size1 = new Size(23, 22); Size size67 = size1; deleteToolStripButton.Size = size67; this.DeleteToolStripButton.Text = "Delete"; this.ToolStripSeparator28.Name = "ToolStripSeparator28"; ToolStripSeparator stripSeparator28 = this.ToolStripSeparator28; size1 = new Size(6, 25); Size size68 = size1; stripSeparator28.Size = size68; this.PropertyToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.PropertyToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Properties; this.PropertyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.PropertyToolStripButton.Name = "PropertyToolStripButton"; ToolStripButton propertyToolStripButton = this.PropertyToolStripButton; size1 = new Size(23, 22); Size size69 = size1; propertyToolStripButton.Size = size69; this.PropertyToolStripButton.Text = "Property"; this.ToolStripSeparator7.Name = "ToolStripSeparator7"; ToolStripSeparator toolStripSeparator7 = this.ToolStripSeparator7; size1 = new Size(6, 25); Size size70 = size1; toolStripSeparator7.Size = size70; this.UploadFolderToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.UploadFolderToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.FolderUpload; this.UploadFolderToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.UploadFolderToolStripButton.Name = "UploadFolderToolStripButton"; ToolStripButton folderToolStripButton2 = this.UploadFolderToolStripButton; size1 = new Size(23, 22); Size size71 = size1; folderToolStripButton2.Size = size71; this.UploadFolderToolStripButton.Text = "Upload Folder"; this.UploadToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.UploadToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Upload; this.UploadToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.UploadToolStripButton.Name = "UploadToolStripButton"; ToolStripButton uploadToolStripButton = this.UploadToolStripButton; size1 = new Size(23, 22); Size size72 = size1; uploadToolStripButton.Size = size72; this.UploadToolStripButton.Text = "Upload"; this.DownloadToolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.DownloadToolStripButton.Image = (Image) CarotDAV.My.Resources.Resources.Download; this.DownloadToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.DownloadToolStripButton.Name = "DownloadToolStripButton"; ToolStripButton downloadToolStripButton = this.DownloadToolStripButton; size1 = new Size(23, 22); Size size73 = size1; downloadToolStripButton.Size = size73; this.DownloadToolStripButton.Text = "Download"; this.ToolStripSeparator8.Name = "ToolStripSeparator8"; ToolStripSeparator toolStripSeparator8 = this.ToolStripSeparator8; size1 = new Size(6, 25); Size size74 = size1; toolStripSeparator8.Size = size74; this.ToolStripSplitButton1.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ToolStripSplitButton1.DropDownItems.AddRange(new ToolStripItem[7] { (ToolStripItem) this.LargeIconToolStripMenuItem, (ToolStripItem) this.SmallIconToolStripMenuItem, (ToolStripItem) this.ListToolStripMenuItem, (ToolStripItem) this.TileToolStripMenuItem, (ToolStripItem) this.DetailToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator23, (ToolStripItem) this.AutoColumnWidthToolStripMenuItem2 }); this.ToolStripSplitButton1.Image = (Image) CarotDAV.My.Resources.Resources.View; this.ToolStripSplitButton1.ImageTransparentColor = System.Drawing.Color.Magenta; this.ToolStripSplitButton1.Name = "ToolStripSplitButton1"; ToolStripSplitButton stripSplitButton1 = this.ToolStripSplitButton1; size1 = new Size(32, 22); Size size75 = size1; stripSplitButton1.Size = size75; this.ToolStripSplitButton1.Text = "View"; this.LargeIconToolStripMenuItem.Name = "LargeIconToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem16 = this.LargeIconToolStripMenuItem; size1 = new Size(189, 22); Size size76 = size1; toolStripMenuItem16.Size = size76; this.LargeIconToolStripMenuItem.Text = "Large Icon"; this.SmallIconToolStripMenuItem.Name = "SmallIconToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem17 = this.SmallIconToolStripMenuItem; size1 = new Size(189, 22); Size size77 = size1; toolStripMenuItem17.Size = size77; this.SmallIconToolStripMenuItem.Text = "Small Icon"; this.ListToolStripMenuItem.Name = "ListToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem18 = this.ListToolStripMenuItem; size1 = new Size(189, 22); Size size78 = size1; toolStripMenuItem18.Size = size78; this.ListToolStripMenuItem.Text = "List"; this.TileToolStripMenuItem.Name = "TileToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem19 = this.TileToolStripMenuItem; size1 = new Size(189, 22); Size size79 = size1; toolStripMenuItem19.Size = size79; this.TileToolStripMenuItem.Text = "Tile"; this.DetailToolStripMenuItem.Name = "DetailToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem20 = this.DetailToolStripMenuItem; size1 = new Size(189, 22); Size size80 = size1; toolStripMenuItem20.Size = size80; this.DetailToolStripMenuItem.Text = "Detail"; this.ToolStripSeparator23.Name = "ToolStripSeparator23"; ToolStripSeparator stripSeparator23 = this.ToolStripSeparator23; size1 = new Size(186, 6); Size size81 = size1; stripSeparator23.Size = size81; this.AutoColumnWidthToolStripMenuItem2.Name = "AutoColumnWidthToolStripMenuItem2"; ToolStripMenuItem toolStripMenuItem2_6 = this.AutoColumnWidthToolStripMenuItem2; size1 = new Size(189, 22); Size size82 = size1; toolStripMenuItem2_6.Size = size82; this.AutoColumnWidthToolStripMenuItem2.Text = "Auto Column Width"; this.FileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[4] { (ToolStripItem) this.NewConnectionToolStripMenuItem, (ToolStripItem) this.ConnectToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator1, (ToolStripItem) this.ExitToolStripMenuItem }); this.FileToolStripMenuItem.Name = "FileToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem21 = this.FileToolStripMenuItem; size1 = new Size(40, 22); Size size83 = size1; toolStripMenuItem21.Size = size83; this.FileToolStripMenuItem.Text = "File"; this.NewConnectionToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.ConnectNew; this.NewConnectionToolStripMenuItem.Name = "NewConnectionToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem22 = this.NewConnectionToolStripMenuItem; size1 = new Size(194, 22); Size size84 = size1; toolStripMenuItem22.Size = size84; this.NewConnectionToolStripMenuItem.Text = "New Connection"; this.ConnectToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Connect; this.ConnectToolStripMenuItem.Name = "ConnectToolStripMenuItem"; this.ConnectToolStripMenuItem.ShortcutKeys = Keys.O | Keys.Control; ToolStripMenuItem toolStripMenuItem23 = this.ConnectToolStripMenuItem; size1 = new Size(194, 22); Size size85 = size1; toolStripMenuItem23.Size = size85; this.ConnectToolStripMenuItem.Text = "Connections"; this.ToolStripSeparator1.Name = "ToolStripSeparator1"; ToolStripSeparator toolStripSeparator1 = this.ToolStripSeparator1; size1 = new Size(191, 6); Size size86 = size1; toolStripSeparator1.Size = size86; this.ExitToolStripMenuItem.Name = "ExitToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem24 = this.ExitToolStripMenuItem; size1 = new Size(194, 22); Size size87 = size1; toolStripMenuItem24.Size = size87; this.ExitToolStripMenuItem.Text = "Exit"; this.EditToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[17] { (ToolStripItem) this.CutToolStripMenuItem, (ToolStripItem) this.CopyToolStripMenuItem, (ToolStripItem) this.PasteToolStripMenuItem, (ToolStripItem) this.DuplicateToolStripMenuItem, (ToolStripItem) this.DeleteToolStripMenuItem, (ToolStripItem) this.RenameToolStripMenuItem, (ToolStripItem) this.ImportToolStripMenuItem, (ToolStripItem) this.ExportToolStripMenuItem, (ToolStripItem) this.NewFolderToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator15, (ToolStripItem) this.UploadFolderToolStripMenuItem, (ToolStripItem) this.UploadToolStripMenuItem, (ToolStripItem) this.DownloadToolStripMenuItem, (ToolStripItem) this.ToolStripMenuSeparatorUpDown, (ToolStripItem) this.SelectAllToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator10, (ToolStripItem) this.PropertyToolStripMenuItem }); this.EditToolStripMenuItem.Name = "EditToolStripMenuItem"; this.EditToolStripMenuItem.ShortcutKeys = Keys.S | Keys.Control; ToolStripMenuItem toolStripMenuItem25 = this.EditToolStripMenuItem; size1 = new Size(42, 22); Size size88 = size1; toolStripMenuItem25.Size = size88; this.EditToolStripMenuItem.Text = "Edit"; this.CutToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Cut; this.CutToolStripMenuItem.Name = "CutToolStripMenuItem"; this.CutToolStripMenuItem.ShortcutKeys = Keys.X | Keys.Control; ToolStripMenuItem toolStripMenuItem26 = this.CutToolStripMenuItem; size1 = new Size(191, 22); Size size89 = size1; toolStripMenuItem26.Size = size89; this.CutToolStripMenuItem.Text = "Cut"; this.CopyToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Copy2; this.CopyToolStripMenuItem.Name = "CopyToolStripMenuItem"; this.CopyToolStripMenuItem.ShortcutKeys = Keys.C | Keys.Control; ToolStripMenuItem toolStripMenuItem27 = this.CopyToolStripMenuItem; size1 = new Size(191, 22); Size size90 = size1; toolStripMenuItem27.Size = size90; this.CopyToolStripMenuItem.Text = "Copy"; this.PasteToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Paste; this.PasteToolStripMenuItem.Name = "PasteToolStripMenuItem"; this.PasteToolStripMenuItem.ShortcutKeys = Keys.V | Keys.Control; ToolStripMenuItem toolStripMenuItem28 = this.PasteToolStripMenuItem; size1 = new Size(191, 22); Size size91 = size1; toolStripMenuItem28.Size = size91; this.PasteToolStripMenuItem.Text = "Paste"; this.DuplicateToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Copy; this.DuplicateToolStripMenuItem.Name = "DuplicateToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem29 = this.DuplicateToolStripMenuItem; size1 = new Size(191, 22); Size size92 = size1; toolStripMenuItem29.Size = size92; this.DuplicateToolStripMenuItem.Text = "Duplicate"; this.DeleteToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Delete; this.DeleteToolStripMenuItem.Name = "DeleteToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem30 = this.DeleteToolStripMenuItem; size1 = new Size(191, 22); Size size93 = size1; toolStripMenuItem30.Size = size93; this.DeleteToolStripMenuItem.Text = "Delete"; this.RenameToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.RenameFolderHS; this.RenameToolStripMenuItem.Name = "RenameToolStripMenuItem"; this.RenameToolStripMenuItem.ShortcutKeys = Keys.F2; ToolStripMenuItem toolStripMenuItem31 = this.RenameToolStripMenuItem; size1 = new Size(191, 22); Size size94 = size1; toolStripMenuItem31.Size = size94; this.RenameToolStripMenuItem.Text = "Rename"; this.ImportToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Import; this.ImportToolStripMenuItem.Name = "ImportToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem32 = this.ImportToolStripMenuItem; size1 = new Size(191, 22); Size size95 = size1; toolStripMenuItem32.Size = size95; this.ImportToolStripMenuItem.Text = "Import"; this.ExportToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Export; this.ExportToolStripMenuItem.Name = "ExportToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem33 = this.ExportToolStripMenuItem; size1 = new Size(191, 22); Size size96 = size1; toolStripMenuItem33.Size = size96; this.ExportToolStripMenuItem.Text = "Export"; this.NewFolderToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.NewFolder; this.NewFolderToolStripMenuItem.Name = "NewFolderToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem34 = this.NewFolderToolStripMenuItem; size1 = new Size(191, 22); Size size97 = size1; toolStripMenuItem34.Size = size97; this.NewFolderToolStripMenuItem.Text = "New Folder"; this.ToolStripSeparator15.Name = "ToolStripSeparator15"; ToolStripSeparator stripSeparator15 = this.ToolStripSeparator15; size1 = new Size(188, 6); Size size98 = size1; stripSeparator15.Size = size98; this.UploadFolderToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.FolderUpload; this.UploadFolderToolStripMenuItem.Name = "UploadFolderToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem35 = this.UploadFolderToolStripMenuItem; size1 = new Size(191, 22); Size size99 = size1; toolStripMenuItem35.Size = size99; this.UploadFolderToolStripMenuItem.Text = "Upload Folder"; this.UploadToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Upload; this.UploadToolStripMenuItem.Name = "UploadToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem36 = this.UploadToolStripMenuItem; size1 = new Size(191, 22); Size size100 = size1; toolStripMenuItem36.Size = size100; this.UploadToolStripMenuItem.Text = "Upload"; this.DownloadToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Download; this.DownloadToolStripMenuItem.Name = "DownloadToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem37 = this.DownloadToolStripMenuItem; size1 = new Size(191, 22); Size size101 = size1; toolStripMenuItem37.Size = size101; this.DownloadToolStripMenuItem.Text = "Download"; this.ToolStripMenuSeparatorUpDown.Name = "ToolStripMenuSeparatorUpDown"; ToolStripSeparator menuSeparatorUpDown = this.ToolStripMenuSeparatorUpDown; size1 = new Size(188, 6); Size size102 = size1; menuSeparatorUpDown.Size = size102; this.SelectAllToolStripMenuItem.Name = "SelectAllToolStripMenuItem"; this.SelectAllToolStripMenuItem.ShortcutKeys = Keys.A | Keys.Control; ToolStripMenuItem toolStripMenuItem38 = this.SelectAllToolStripMenuItem; size1 = new Size(191, 22); Size size103 = size1; toolStripMenuItem38.Size = size103; this.SelectAllToolStripMenuItem.Text = "Select All"; this.ToolStripSeparator10.Name = "ToolStripSeparator10"; ToolStripSeparator stripSeparator10 = this.ToolStripSeparator10; size1 = new Size(188, 6); Size size104 = size1; stripSeparator10.Size = size104; this.PropertyToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Properties; this.PropertyToolStripMenuItem.Name = "PropertyToolStripMenuItem"; this.PropertyToolStripMenuItem.ShortcutKeys = Keys.Return | Keys.Alt; ToolStripMenuItem toolStripMenuItem39 = this.PropertyToolStripMenuItem; size1 = new Size(191, 22); Size size105 = size1; toolStripMenuItem39.Size = size105; this.PropertyToolStripMenuItem.Text = "Property"; this.HelpToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[1] { (ToolStripItem) this.AboutToolStripMenuItem }); this.HelpToolStripMenuItem.Name = "HelpToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem40 = this.HelpToolStripMenuItem; size1 = new Size(46, 22); Size size106 = size1; toolStripMenuItem40.Size = size106; this.HelpToolStripMenuItem.Text = "Help"; this.AboutToolStripMenuItem.Name = "AboutToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem41 = this.AboutToolStripMenuItem; size1 = new Size(110, 22); Size size107 = size1; toolStripMenuItem41.Size = size107; this.AboutToolStripMenuItem.Text = "About"; this.MenuStrip1.Dock = DockStyle.None; this.MenuStrip1.Items.AddRange(new ToolStripItem[6] { (ToolStripItem) this.FileToolStripMenuItem, (ToolStripItem) this.EditToolStripMenuItem, (ToolStripItem) this.ViewToolStripMenuItem, (ToolStripItem) this.ToolToolStripMenuItem, (ToolStripItem) this.HelpToolStripMenuItem, (ToolStripItem) this.NewVersionToolStripMenuItem }); NoEatMenuStrip menuStrip1_1 = this.MenuStrip1; point1 = new Point(0, 0); Point point6 = point1; menuStrip1_1.Location = point6; this.MenuStrip1.Name = "MenuStrip1"; NoEatMenuStrip menuStrip1_2 = this.MenuStrip1; size1 = new Size(498, 26); Size size108 = size1; menuStrip1_2.Size = size108; this.MenuStrip1.TabIndex = 0; this.MenuStrip1.Text = "MenuStrip1"; this.ViewToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[20] { (ToolStripItem) this.RefreshToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator2, (ToolStripItem) this.BackToolStripMenuItem, (ToolStripItem) this.ForwardToolStripMenuItem, (ToolStripItem) this.GoToParentToolStripMenuItem, (ToolStripItem) this.GoToHomeToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator12, (ToolStripItem) this.LargeIconToolStripMenuItem1, (ToolStripItem) this.SmallIconToolStripMenuItem1, (ToolStripItem) this.ListToolStripMenuItem1, (ToolStripItem) this.TileToolStripMenuItem1, (ToolStripItem) this.DetailToolStripMenuItem1, (ToolStripItem) this.ToolStripSeparator22, (ToolStripItem) this.AutoColumnWidthToolStripMenuItem1, (ToolStripItem) this.ToolStripSeparator21, (ToolStripItem) this.SortToolStripMenuItem1, (ToolStripItem) this.GroupToolStripMenuItem1, (ToolStripItem) this.ToolStripSeparator9, (ToolStripItem) this.LogToolStripMenuItem, (ToolStripItem) this.StatusBarToolStripMenuItem }); this.ViewToolStripMenuItem.Name = "ViewToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem42 = this.ViewToolStripMenuItem; size1 = new Size(48, 22); Size size109 = size1; toolStripMenuItem42.Size = size109; this.ViewToolStripMenuItem.Text = "View"; this.RefreshToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Refresh; this.RefreshToolStripMenuItem.Name = "RefreshToolStripMenuItem"; this.RefreshToolStripMenuItem.ShortcutKeys = Keys.F5; ToolStripMenuItem toolStripMenuItem43 = this.RefreshToolStripMenuItem; size1 = new Size(218, 22); Size size110 = size1; toolStripMenuItem43.Size = size110; this.RefreshToolStripMenuItem.Text = "Refresh"; this.ToolStripSeparator2.Name = "ToolStripSeparator2"; ToolStripSeparator toolStripSeparator2 = this.ToolStripSeparator2; size1 = new Size(215, 6); Size size111 = size1; toolStripSeparator2.Size = size111; this.BackToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.NavBack; this.BackToolStripMenuItem.Name = "BackToolStripMenuItem"; this.BackToolStripMenuItem.ShortcutKeys = Keys.Left | Keys.Alt; ToolStripMenuItem toolStripMenuItem44 = this.BackToolStripMenuItem; size1 = new Size(218, 22); Size size112 = size1; toolStripMenuItem44.Size = size112; this.BackToolStripMenuItem.Text = "Back"; this.ForwardToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.NavForward; this.ForwardToolStripMenuItem.Name = "ForwardToolStripMenuItem"; this.ForwardToolStripMenuItem.ShortcutKeys = Keys.Right | Keys.Alt; ToolStripMenuItem toolStripMenuItem45 = this.ForwardToolStripMenuItem; size1 = new Size(218, 22); Size size113 = size1; toolStripMenuItem45.Size = size113; this.ForwardToolStripMenuItem.Text = "Forward"; this.GoToParentToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.GoToParentFolder; this.GoToParentToolStripMenuItem.Name = "GoToParentToolStripMenuItem"; this.GoToParentToolStripMenuItem.ShortcutKeys = Keys.Up | Keys.Alt; ToolStripMenuItem toolStripMenuItem46 = this.GoToParentToolStripMenuItem; size1 = new Size(218, 22); Size size114 = size1; toolStripMenuItem46.Size = size114; this.GoToParentToolStripMenuItem.Text = "Go To Parent"; this.GoToHomeToolStripMenuItem.Image = (Image) CarotDAV.My.Resources.Resources.Home; this.GoToHomeToolStripMenuItem.Name = "GoToHomeToolStripMenuItem"; this.GoToHomeToolStripMenuItem.ShortcutKeys = Keys.Home | Keys.Alt; ToolStripMenuItem toolStripMenuItem47 = this.GoToHomeToolStripMenuItem; size1 = new Size(218, 22); Size size115 = size1; toolStripMenuItem47.Size = size115; this.GoToHomeToolStripMenuItem.Text = "Go To Home"; this.ToolStripSeparator12.Name = "ToolStripSeparator12"; ToolStripSeparator stripSeparator12 = this.ToolStripSeparator12; size1 = new Size(215, 6); Size size116 = size1; stripSeparator12.Size = size116; this.LargeIconToolStripMenuItem1.Name = "LargeIconToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_2 = this.LargeIconToolStripMenuItem1; size1 = new Size(218, 22); Size size117 = size1; toolStripMenuItem1_2.Size = size117; this.LargeIconToolStripMenuItem1.Text = "Large Icon"; this.SmallIconToolStripMenuItem1.Name = "SmallIconToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_3 = this.SmallIconToolStripMenuItem1; size1 = new Size(218, 22); Size size118 = size1; toolStripMenuItem1_3.Size = size118; this.SmallIconToolStripMenuItem1.Text = "Small Icon"; this.ListToolStripMenuItem1.Name = "ListToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_4 = this.ListToolStripMenuItem1; size1 = new Size(218, 22); Size size119 = size1; toolStripMenuItem1_4.Size = size119; this.ListToolStripMenuItem1.Text = "List"; this.TileToolStripMenuItem1.Name = "TileToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_5 = this.TileToolStripMenuItem1; size1 = new Size(218, 22); Size size120 = size1; toolStripMenuItem1_5.Size = size120; this.TileToolStripMenuItem1.Text = "Tile"; this.DetailToolStripMenuItem1.Name = "DetailToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_6 = this.DetailToolStripMenuItem1; size1 = new Size(218, 22); Size size121 = size1; toolStripMenuItem1_6.Size = size121; this.DetailToolStripMenuItem1.Text = "Detail"; this.ToolStripSeparator22.Name = "ToolStripSeparator22"; ToolStripSeparator stripSeparator22 = this.ToolStripSeparator22; size1 = new Size(215, 6); Size size122 = size1; stripSeparator22.Size = size122; this.AutoColumnWidthToolStripMenuItem1.Name = "AutoColumnWidthToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_7 = this.AutoColumnWidthToolStripMenuItem1; size1 = new Size(218, 22); Size size123 = size1; toolStripMenuItem1_7.Size = size123; this.AutoColumnWidthToolStripMenuItem1.Text = "Auto Column Width"; this.ToolStripSeparator21.Name = "ToolStripSeparator21"; ToolStripSeparator stripSeparator21 = this.ToolStripSeparator21; size1 = new Size(215, 6); Size size124 = size1; stripSeparator21.Size = size124; this.SortToolStripMenuItem1.DropDownItems.AddRange(new ToolStripItem[6] { (ToolStripItem) this.SortNameToolStripMenuItem1, (ToolStripItem) toolStripMenuItem1, (ToolStripItem) this.SortLastModifiedDateToolStripMenuItem1, (ToolStripItem) this.SortCreationDateToolStripMenuItem1, (ToolStripItem) this.SortStatusToolStripMenuItem1, (ToolStripItem) this.SortURIToolStripMenuItem1 }); this.SortToolStripMenuItem1.Name = "SortToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_8 = this.SortToolStripMenuItem1; size1 = new Size(218, 22); Size size125 = size1; toolStripMenuItem1_8.Size = size125; this.SortToolStripMenuItem1.Text = "Sort"; this.SortNameToolStripMenuItem1.Name = "SortNameToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_9 = this.SortNameToolStripMenuItem1; size1 = new Size(185, 22); Size size126 = size1; toolStripMenuItem1_9.Size = size126; this.SortNameToolStripMenuItem1.Text = "Name"; this.SortLastModifiedDateToolStripMenuItem1.Name = "SortLastModifiedDateToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_10 = this.SortLastModifiedDateToolStripMenuItem1; size1 = new Size(185, 22); Size size127 = size1; toolStripMenuItem1_10.Size = size127; this.SortLastModifiedDateToolStripMenuItem1.Text = "Last Modified Date"; this.SortCreationDateToolStripMenuItem1.Name = "SortCreationDateToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_11 = this.SortCreationDateToolStripMenuItem1; size1 = new Size(185, 22); Size size128 = size1; toolStripMenuItem1_11.Size = size128; this.SortCreationDateToolStripMenuItem1.Text = "Creation Date"; this.SortStatusToolStripMenuItem1.Name = "SortStatusToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_12 = this.SortStatusToolStripMenuItem1; size1 = new Size(185, 22); Size size129 = size1; toolStripMenuItem1_12.Size = size129; this.SortStatusToolStripMenuItem1.Text = "Status"; this.SortURIToolStripMenuItem1.Name = "SortURIToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_13 = this.SortURIToolStripMenuItem1; size1 = new Size(185, 22); Size size130 = size1; toolStripMenuItem1_13.Size = size130; this.SortURIToolStripMenuItem1.Text = "URI"; this.GroupToolStripMenuItem1.DropDownItems.AddRange(new ToolStripItem[5] { (ToolStripItem) this.GroupNoneToolStripMenuItem1, (ToolStripItem) this.ToolStripSeparator25, (ToolStripItem) this.GroupNameToolStripMenuItem1, (ToolStripItem) this.GroupSizeToolStripMenuItem1, (ToolStripItem) this.GroupTypeToolStripMenuItem1 }); this.GroupToolStripMenuItem1.Name = "GroupToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_14 = this.GroupToolStripMenuItem1; size1 = new Size(218, 22); Size size131 = size1; toolStripMenuItem1_14.Size = size131; this.GroupToolStripMenuItem1.Text = "Group"; this.GroupNoneToolStripMenuItem1.Name = "GroupNoneToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_15 = this.GroupNoneToolStripMenuItem1; size1 = new Size(111, 22); Size size132 = size1; toolStripMenuItem1_15.Size = size132; this.GroupNoneToolStripMenuItem1.Text = "None"; this.ToolStripSeparator25.Name = "ToolStripSeparator25"; ToolStripSeparator stripSeparator25 = this.ToolStripSeparator25; size1 = new Size(108, 6); Size size133 = size1; stripSeparator25.Size = size133; this.GroupNameToolStripMenuItem1.Name = "GroupNameToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_16 = this.GroupNameToolStripMenuItem1; size1 = new Size(111, 22); Size size134 = size1; toolStripMenuItem1_16.Size = size134; this.GroupNameToolStripMenuItem1.Text = "Name"; this.GroupSizeToolStripMenuItem1.Name = "GroupSizeToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_17 = this.GroupSizeToolStripMenuItem1; size1 = new Size(111, 22); Size size135 = size1; toolStripMenuItem1_17.Size = size135; this.GroupSizeToolStripMenuItem1.Text = "Size"; this.GroupTypeToolStripMenuItem1.Name = "GroupTypeToolStripMenuItem1"; ToolStripMenuItem toolStripMenuItem1_18 = this.GroupTypeToolStripMenuItem1; size1 = new Size(111, 22); Size size136 = size1; toolStripMenuItem1_18.Size = size136; this.GroupTypeToolStripMenuItem1.Text = "Type"; this.ToolStripSeparator9.Name = "ToolStripSeparator9"; ToolStripSeparator toolStripSeparator9 = this.ToolStripSeparator9; size1 = new Size(215, 6); Size size137 = size1; toolStripSeparator9.Size = size137; this.LogToolStripMenuItem.Name = "LogToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem48 = this.LogToolStripMenuItem; size1 = new Size(218, 22); Size size138 = size1; toolStripMenuItem48.Size = size138; this.LogToolStripMenuItem.Text = "Log"; this.StatusBarToolStripMenuItem.Name = "StatusBarToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem49 = this.StatusBarToolStripMenuItem; size1 = new Size(218, 22); Size size139 = size1; toolStripMenuItem49.Size = size139; this.StatusBarToolStripMenuItem.Text = "Status Bar"; this.ToolToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[6] { (ToolStripItem) this.LogToFileToolStripMenuItem, (ToolStripItem) this.TestToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator3, (ToolStripItem) this.EnableWebDAVServerToolStripMenuItem, (ToolStripItem) this.ToolStripSeparator4, (ToolStripItem) this.SettingToolStripMenuItem }); this.ToolToolStripMenuItem.Name = "ToolToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem50 = this.ToolToolStripMenuItem; size1 = new Size(44, 22); Size size140 = size1; toolStripMenuItem50.Size = size140; this.ToolToolStripMenuItem.Text = "Tool"; this.LogToFileToolStripMenuItem.Name = "LogToFileToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem51 = this.LogToFileToolStripMenuItem; size1 = new Size(211, 22); Size size141 = size1; toolStripMenuItem51.Size = size141; this.LogToFileToolStripMenuItem.Text = "Log to File"; this.TestToolStripMenuItem.Name = "TestToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem52 = this.TestToolStripMenuItem; size1 = new Size(211, 22); Size size142 = size1; toolStripMenuItem52.Size = size142; this.TestToolStripMenuItem.Text = "Test"; this.TestToolStripMenuItem.Visible = false; this.ToolStripSeparator3.Name = "ToolStripSeparator3"; ToolStripSeparator toolStripSeparator3 = this.ToolStripSeparator3; size1 = new Size(208, 6); Size size143 = size1; toolStripSeparator3.Size = size143; this.EnableWebDAVServerToolStripMenuItem.Name = "EnableWebDAVServerToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem53 = this.EnableWebDAVServerToolStripMenuItem; size1 = new Size(211, 22); Size size144 = size1; toolStripMenuItem53.Size = size144; this.EnableWebDAVServerToolStripMenuItem.Text = "Enable WebDAV Server"; this.ToolStripSeparator4.Name = "ToolStripSeparator4"; ToolStripSeparator toolStripSeparator4 = this.ToolStripSeparator4; size1 = new Size(208, 6); Size size145 = size1; toolStripSeparator4.Size = size145; this.SettingToolStripMenuItem.Name = "SettingToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem54 = this.SettingToolStripMenuItem; size1 = new Size(211, 22); Size size146 = size1; toolStripMenuItem54.Size = size146; this.SettingToolStripMenuItem.Text = "Setting"; this.NewVersionToolStripMenuItem.ForeColor = System.Drawing.Color.Red; this.NewVersionToolStripMenuItem.Name = "NewVersionToolStripMenuItem"; ToolStripMenuItem toolStripMenuItem55 = this.NewVersionToolStripMenuItem; size1 = new Size(92, 22); Size size147 = size1; toolStripMenuItem55.Size = size147; this.NewVersionToolStripMenuItem.Text = "New Version"; this.NewVersionToolStripMenuItem.Visible = false; this.OpenFileDialog1.Multiselect = true; this.OpenFileDialog1.SupportMultiDottedExtensions = true; this.ExpandToolStrip1.Dock = DockStyle.None; this.ExpandToolStrip1.Items.AddRange(new ToolStripItem[4] { (ToolStripItem) this.FaviconToolStripButton, (ToolStripItem) this.SecureToolStripLabel, (ToolStripItem) this.UriToolStripTextBox, (ToolStripItem) this.ToolStripGoButton }); RightAlignToolStrip expandToolStrip1_1 = this.ExpandToolStrip1; point1 = new Point(0, 51); Point point7 = point1; expandToolStrip1_1.Location = point7; this.ExpandToolStrip1.Name = "ExpandToolStrip1"; RightAlignToolStrip expandToolStrip1_2 = this.ExpandToolStrip1; size1 = new Size(498, 26); Size size148 = size1; expandToolStrip1_2.Size = size148; this.ExpandToolStrip1.Stretch = true; this.ExpandToolStrip1.TabIndex = 3; this.ExpandToolStrip1.Text = "ExpandToolStrip1"; this.FaviconToolStripButton.Name = "FaviconToolStripButton"; ToolStripButton faviconToolStripButton = this.FaviconToolStripButton; size1 = new Size(23, 23); Size size149 = size1; faviconToolStripButton.Size = size149; this.FaviconToolStripButton.ToolTipText = "To Home"; this.SecureToolStripLabel.AutoSize = false; this.SecureToolStripLabel.DisplayStyle = ToolStripItemDisplayStyle.Image; this.SecureToolStripLabel.ImageScaling = ToolStripItemImageScaling.None; this.SecureToolStripLabel.Name = "SecureToolStripLabel"; ToolStripLabel secureToolStripLabel = this.SecureToolStripLabel; size1 = new Size(23, 23); Size size150 = size1; secureToolStripLabel.Size = size150; this.UriToolStripTextBox.Name = "UriToolStripTextBox"; ToolStripTextBox toolStripTextBox = this.UriToolStripTextBox; size1 = new Size(415, 26); Size size151 = size1; toolStripTextBox.Size = size151; this.ToolStripGoButton.DisplayStyle = ToolStripItemDisplayStyle.Image; this.ToolStripGoButton.Image = (Image) CarotDAV.My.Resources.Resources.Go; this.ToolStripGoButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.ToolStripGoButton.Name = "ToolStripGoButton"; this.ToolStripGoButton.RightToLeftAutoMirrorImage = true; ToolStripButton toolStripGoButton = this.ToolStripGoButton; size1 = new Size(23, 20); Size size152 = size1; toolStripGoButton.Size = size152; this.ToolStripGoButton.Text = "Go"; this.ToolStripContainer1.BottomToolStripPanel.Controls.Add((Control) this.StatusStrip1); this.ToolStripContainer1.ContentPanel.Controls.Add((Control) this.SplitContainer1); ToolStripContentPanel contentPanel = this.ToolStripContainer1.ContentPanel; size1 = new Size(498, 162); Size size153 = size1; contentPanel.Size = size153; this.ToolStripContainer1.Dock = DockStyle.Fill; this.ToolStripContainer1.LeftToolStripPanelVisible = false; ToolStripContainer toolStripContainer1_1 = this.ToolStripContainer1; point1 = new Point(0, 0); Point point8 = point1; toolStripContainer1_1.Location = point8; this.ToolStripContainer1.Name = "ToolStripContainer1"; this.ToolStripContainer1.RightToolStripPanelVisible = false; ToolStripContainer toolStripContainer1_2 = this.ToolStripContainer1; size1 = new Size(498, 262); Size size154 = size1; toolStripContainer1_2.Size = size154; this.ToolStripContainer1.TabIndex = 4; this.ToolStripContainer1.Text = "ToolStripContainer1"; this.ToolStripContainer1.TopToolStripPanel.Controls.Add((Control) this.MenuStrip1); this.ToolStripContainer1.TopToolStripPanel.Controls.Add((Control) this.ToolStrip1); this.ToolStripContainer1.TopToolStripPanel.Controls.Add((Control) this.ExpandToolStrip1); this.StatusStrip1.Dock = DockStyle.None; this.StatusStrip1.Items.AddRange(new ToolStripItem[2] { (ToolStripItem) this.ToolStripTotal, (ToolStripItem) this.ToolStripSelected }); StatusStrip statusStrip1_1 = this.StatusStrip1; point1 = new Point(0, 0); Point point9 = point1; statusStrip1_1.Location = point9; this.StatusStrip1.Name = "StatusStrip1"; StatusStrip statusStrip1_2 = this.StatusStrip1; size1 = new Size(498, 23); Size size155 = size1; statusStrip1_2.Size = size155; this.StatusStrip1.TabIndex = 6; this.StatusStrip1.Text = "StatusStrip1"; this.ToolStripTotal.Name = "ToolStripTotal"; ToolStripStatusLabel toolStripTotal = this.ToolStripTotal; size1 = new Size(71, 18); Size size156 = size1; toolStripTotal.Size = size156; this.ToolStripTotal.Text = "total - files"; this.ToolStripSelected.Name = "ToolStripSelected"; ToolStripStatusLabel toolStripSelected = this.ToolStripSelected; size1 = new Size(125, 18); Size size157 = size1; toolStripSelected.Size = size157; this.ToolStripSelected.Text = "(- files are selected)"; this.DavServer1.IpAddress = (string) null; this.DavServer1.ServerName = ""; this.DavServer1.ServerPort = 0; this.DavServer1.Setting = (WebDAVClientSetting) null; this.AllowDrop = true; this.AutoScaleDimensions = new SizeF(6f, 12f); this.AutoScaleMode = AutoScaleMode.Font; size1 = new Size(498, 262); this.ClientSize = size1; this.Controls.Add((Control) this.ToolStripContainer1); this.MainMenuStrip = (MenuStrip) this.MenuStrip1; size1 = new Size(364, 300); this.MinimumSize = size1; this.Name = nameof (MainForm); this.Text = "CarotDAV"; this.SplitContainer1.Panel1.ResumeLayout(false); this.SplitContainer1.Panel2.ResumeLayout(false); this.SplitContainer1.Panel2.PerformLayout(); this.SplitContainer1.ResumeLayout(false); this.ContextMenuStrip1.ResumeLayout(false); this.ToolStrip1.ResumeLayout(false); this.ToolStrip1.PerformLayout(); this.MenuStrip1.ResumeLayout(false); this.MenuStrip1.PerformLayout(); this.ExpandToolStrip1.ResumeLayout(false); this.ExpandToolStrip1.PerformLayout(); this.ToolStripContainer1.BottomToolStripPanel.ResumeLayout(false); this.ToolStripContainer1.BottomToolStripPanel.PerformLayout(); this.ToolStripContainer1.ContentPanel.ResumeLayout(false); this.ToolStripContainer1.TopToolStripPanel.ResumeLayout(false); this.ToolStripContainer1.TopToolStripPanel.PerformLayout(); this.ToolStripContainer1.ResumeLayout(false); this.ToolStripContainer1.PerformLayout(); this.StatusStrip1.ResumeLayout(false); this.StatusStrip1.PerformLayout(); this.ResumeLayout(false); } internal virtual TextBox LogTextBox { get { return this._LogTextBox; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._LogTextBox = value; } } internal virtual SplitContainer SplitContainer1 { get { return this._SplitContainer1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._SplitContainer1 = value; } } internal virtual WallMarkListView ResourceListView { get { return this._ResourceListView; } [MethodImpl(MethodImplOptions.Synchronized)] set { ColumnReorderedEventHandler reorderedEventHandler = new ColumnReorderedEventHandler(this.ResourceListView_ColumnReordered); ColumnWidthChangedEventHandler changedEventHandler = new ColumnWidthChangedEventHandler(this.ResourceListView_ColumnWidthChanged); EventHandler eventHandler1 = new EventHandler(this.ResourceListView_SelectedIndexChanged); MouseEventHandler mouseEventHandler1 = new MouseEventHandler(this.ResourceListView_MouseDoubleClick); MouseEventHandler mouseEventHandler2 = new MouseEventHandler(this.ResourceListView_MouseUp); KeyEventHandler keyEventHandler = new KeyEventHandler(this.ResourceListView_KeyDown); ColumnClickEventHandler clickEventHandler = new ColumnClickEventHandler(this.ResourceListView_ColumnClick); LabelEditEventHandler editEventHandler1 = new LabelEditEventHandler(this.ResourceListView_AfterLabelEdit); LabelEditEventHandler editEventHandler2 = new LabelEditEventHandler(this.ResourceListView_BeforeLabelEdit); QueryContinueDragEventHandler dragEventHandler1 = new QueryContinueDragEventHandler(this.ResourceListView_QueryContinueDrag); ItemDragEventHandler dragEventHandler2 = new ItemDragEventHandler(this.ResourceListView_ItemDrag); EventHandler eventHandler2 = new EventHandler(this.ResourceListView_DragLeave); DragEventHandler dragEventHandler3 = new DragEventHandler(this.ResourceListView_DragOver); DragEventHandler dragEventHandler4 = new DragEventHandler(this.ResourceListView_DragEnter); DragEventHandler dragEventHandler5 = new DragEventHandler(this.ResourceListView_DragDrop); if (this._ResourceListView != null) { this._ResourceListView.ColumnReordered -= reorderedEventHandler; this._ResourceListView.ColumnWidthChanged -= changedEventHandler; this._ResourceListView.SelectedIndexChanged -= eventHandler1; this._ResourceListView.MouseDoubleClick -= mouseEventHandler1; this._ResourceListView.MouseUp -= mouseEventHandler2; this._ResourceListView.KeyDown -= keyEventHandler; this._ResourceListView.ColumnClick -= clickEventHandler; this._ResourceListView.AfterLabelEdit -= editEventHandler1; this._ResourceListView.BeforeLabelEdit -= editEventHandler2; this._ResourceListView.QueryContinueDrag -= dragEventHandler1; this._ResourceListView.ItemDrag -= dragEventHandler2; this._ResourceListView.DragLeave -= eventHandler2; this._ResourceListView.DragOver -= dragEventHandler3; this._ResourceListView.DragEnter -= dragEventHandler4; this._ResourceListView.DragDrop -= dragEventHandler5; } this._ResourceListView = value; if (this._ResourceListView == null) return; this._ResourceListView.ColumnReordered += reorderedEventHandler; this._ResourceListView.ColumnWidthChanged += changedEventHandler; this._ResourceListView.SelectedIndexChanged += eventHandler1; this._ResourceListView.MouseDoubleClick += mouseEventHandler1; this._ResourceListView.MouseUp += mouseEventHandler2; this._ResourceListView.KeyDown += keyEventHandler; this._ResourceListView.ColumnClick += clickEventHandler; this._ResourceListView.AfterLabelEdit += editEventHandler1; this._ResourceListView.BeforeLabelEdit += editEventHandler2; this._ResourceListView.QueryContinueDrag += dragEventHandler1; this._ResourceListView.ItemDrag += dragEventHandler2; this._ResourceListView.DragLeave += eventHandler2; this._ResourceListView.DragOver += dragEventHandler3; this._ResourceListView.DragEnter += dragEventHandler4; this._ResourceListView.DragDrop += dragEventHandler5; } } internal virtual NoEatToolStrip ToolStrip1 { get { return this._ToolStrip1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStrip1 = value; } } internal virtual ToolStripButton ConnectToolStripButton { get { return this._ConnectToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ConnectToolStripItem_Click); if (this._ConnectToolStripButton != null) this._ConnectToolStripButton.Click -= eventHandler; this._ConnectToolStripButton = value; if (this._ConnectToolStripButton == null) return; this._ConnectToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator6 { get { return this._ToolStripSeparator6; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator6 = value; } } internal virtual ToolStripButton RefreshToolStripButton { get { return this._RefreshToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.RefreshToolStripItem_Click); if (this._RefreshToolStripButton != null) this._RefreshToolStripButton.Click -= eventHandler; this._RefreshToolStripButton = value; if (this._RefreshToolStripButton == null) return; this._RefreshToolStripButton.Click += eventHandler; } } internal virtual ToolStripButton NewFolderToolStripButton { get { return this._NewFolderToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.NewFolderToolStripItem_Click); if (this._NewFolderToolStripButton != null) this._NewFolderToolStripButton.Click -= eventHandler; this._NewFolderToolStripButton = value; if (this._NewFolderToolStripButton == null) return; this._NewFolderToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator7 { get { return this._ToolStripSeparator7; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator7 = value; } } internal virtual ToolStripButton UploadToolStripButton { get { return this._UploadToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.UploadToolStripItem_Click); if (this._UploadToolStripButton != null) this._UploadToolStripButton.Click -= eventHandler; this._UploadToolStripButton = value; if (this._UploadToolStripButton == null) return; this._UploadToolStripButton.Click += eventHandler; } } internal virtual ToolStripButton DownloadToolStripButton { get { return this._DownloadToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DownloadToolStripItem_Click); if (this._DownloadToolStripButton != null) this._DownloadToolStripButton.Click -= eventHandler; this._DownloadToolStripButton = value; if (this._DownloadToolStripButton == null) return; this._DownloadToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator8 { get { return this._ToolStripSeparator8; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator8 = value; } } internal virtual ToolStripButton DeleteToolStripButton { get { return this._DeleteToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DeleteToolStripItem_Click); if (this._DeleteToolStripButton != null) this._DeleteToolStripButton.Click -= eventHandler; this._DeleteToolStripButton = value; if (this._DeleteToolStripButton == null) return; this._DeleteToolStripButton.Click += eventHandler; } } internal virtual ToolStripSplitButton ToolStripSplitButton1 { get { return this._ToolStripSplitButton1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSplitButton1 = value; } } internal virtual ToolStripMenuItem FileToolStripMenuItem { get { return this._FileToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._FileToolStripMenuItem = value; } } internal virtual ToolStripMenuItem ConnectToolStripMenuItem { get { return this._ConnectToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ConnectToolStripItem_Click); if (this._ConnectToolStripMenuItem != null) this._ConnectToolStripMenuItem.Click -= eventHandler; this._ConnectToolStripMenuItem = value; if (this._ConnectToolStripMenuItem == null) return; this._ConnectToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator1 { get { return this._ToolStripSeparator1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator1 = value; } } internal virtual ToolStripMenuItem ExitToolStripMenuItem { get { return this._ExitToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ExitToolStripMenuItem_Click); if (this._ExitToolStripMenuItem != null) this._ExitToolStripMenuItem.Click -= eventHandler; this._ExitToolStripMenuItem = value; if (this._ExitToolStripMenuItem == null) return; this._ExitToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem EditToolStripMenuItem { get { return this._EditToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._EditToolStripMenuItem = value; } } internal virtual ToolStripMenuItem NewFolderToolStripMenuItem { get { return this._NewFolderToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.NewFolderToolStripItem_Click); if (this._NewFolderToolStripMenuItem != null) this._NewFolderToolStripMenuItem.Click -= eventHandler; this._NewFolderToolStripMenuItem = value; if (this._NewFolderToolStripMenuItem == null) return; this._NewFolderToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem UploadToolStripMenuItem { get { return this._UploadToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.UploadToolStripItem_Click); if (this._UploadToolStripMenuItem != null) this._UploadToolStripMenuItem.Click -= eventHandler; this._UploadToolStripMenuItem = value; if (this._UploadToolStripMenuItem == null) return; this._UploadToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem DownloadToolStripMenuItem { get { return this._DownloadToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DownloadToolStripItem_Click); if (this._DownloadToolStripMenuItem != null) this._DownloadToolStripMenuItem.Click -= eventHandler; this._DownloadToolStripMenuItem = value; if (this._DownloadToolStripMenuItem == null) return; this._DownloadToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripMenuSeparatorUpDown { get { return this._ToolStripMenuSeparatorUpDown; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripMenuSeparatorUpDown = value; } } internal virtual ToolStripMenuItem DeleteToolStripMenuItem { get { return this._DeleteToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DeleteToolStripItem_Click); if (this._DeleteToolStripMenuItem != null) this._DeleteToolStripMenuItem.Click -= eventHandler; this._DeleteToolStripMenuItem = value; if (this._DeleteToolStripMenuItem == null) return; this._DeleteToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem HelpToolStripMenuItem { get { return this._HelpToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._HelpToolStripMenuItem = value; } } internal virtual ToolStripMenuItem AboutToolStripMenuItem { get { return this._AboutToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.AboutToolStripMenuItem_Click); if (this._AboutToolStripMenuItem != null) this._AboutToolStripMenuItem.Click -= eventHandler; this._AboutToolStripMenuItem = value; if (this._AboutToolStripMenuItem == null) return; this._AboutToolStripMenuItem.Click += eventHandler; } } internal virtual NoEatMenuStrip MenuStrip1 { get { return this._MenuStrip1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._MenuStrip1 = value; } } internal virtual ToolStripMenuItem LargeIconToolStripMenuItem { get { return this._LargeIconToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.LargeIconToolStripMenuItem_Click); if (this._LargeIconToolStripMenuItem != null) this._LargeIconToolStripMenuItem.Click -= eventHandler; this._LargeIconToolStripMenuItem = value; if (this._LargeIconToolStripMenuItem == null) return; this._LargeIconToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem SmallIconToolStripMenuItem { get { return this._SmallIconToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SmallIconToolStripMenuItem_Click); if (this._SmallIconToolStripMenuItem != null) this._SmallIconToolStripMenuItem.Click -= eventHandler; this._SmallIconToolStripMenuItem = value; if (this._SmallIconToolStripMenuItem == null) return; this._SmallIconToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem ListToolStripMenuItem { get { return this._ListToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ListToolStripMenuItem_Click); if (this._ListToolStripMenuItem != null) this._ListToolStripMenuItem.Click -= eventHandler; this._ListToolStripMenuItem = value; if (this._ListToolStripMenuItem == null) return; this._ListToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem DetailToolStripMenuItem { get { return this._DetailToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DetailToolStripMenuItem_Click); if (this._DetailToolStripMenuItem != null) this._DetailToolStripMenuItem.Click -= eventHandler; this._DetailToolStripMenuItem = value; if (this._DetailToolStripMenuItem == null) return; this._DetailToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem ViewToolStripMenuItem { get { return this._ViewToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ViewToolStripMenuItem = value; } } internal virtual ToolStripMenuItem LargeIconToolStripMenuItem1 { get { return this._LargeIconToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.LargeIconToolStripMenuItem_Click); if (this._LargeIconToolStripMenuItem1 != null) this._LargeIconToolStripMenuItem1.Click -= eventHandler; this._LargeIconToolStripMenuItem1 = value; if (this._LargeIconToolStripMenuItem1 == null) return; this._LargeIconToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem SmallIconToolStripMenuItem1 { get { return this._SmallIconToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SmallIconToolStripMenuItem_Click); if (this._SmallIconToolStripMenuItem1 != null) this._SmallIconToolStripMenuItem1.Click -= eventHandler; this._SmallIconToolStripMenuItem1 = value; if (this._SmallIconToolStripMenuItem1 == null) return; this._SmallIconToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem ListToolStripMenuItem1 { get { return this._ListToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ListToolStripMenuItem_Click); if (this._ListToolStripMenuItem1 != null) this._ListToolStripMenuItem1.Click -= eventHandler; this._ListToolStripMenuItem1 = value; if (this._ListToolStripMenuItem1 == null) return; this._ListToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem DetailToolStripMenuItem1 { get { return this._DetailToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DetailToolStripMenuItem_Click); if (this._DetailToolStripMenuItem1 != null) this._DetailToolStripMenuItem1.Click -= eventHandler; this._DetailToolStripMenuItem1 = value; if (this._DetailToolStripMenuItem1 == null) return; this._DetailToolStripMenuItem1.Click += eventHandler; } } internal virtual FolderBrowserDialog FolderBrowserDialog1 { get { return this._FolderBrowserDialog1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._FolderBrowserDialog1 = value; } } internal virtual OpenFileDialog OpenFileDialog1 { get { return this._OpenFileDialog1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._OpenFileDialog1 = value; } } internal virtual ToolStripButton PropertyToolStripButton { get { return this._PropertyToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.PropertyToolStripItem_Click); if (this._PropertyToolStripButton != null) this._PropertyToolStripButton.Click -= eventHandler; this._PropertyToolStripButton = value; if (this._PropertyToolStripButton == null) return; this._PropertyToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator5 { get { return this._ToolStripSeparator5; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator5 = value; } } internal virtual ToolStripMenuItem PropertyToolStripMenuItem { get { return this._PropertyToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.PropertyToolStripItem_Click); if (this._PropertyToolStripMenuItem != null) this._PropertyToolStripMenuItem.Click -= eventHandler; this._PropertyToolStripMenuItem = value; if (this._PropertyToolStripMenuItem == null) return; this._PropertyToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem RenameToolStripMenuItem { get { return this._RenameToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.RenameToolStripMenuItem_Click); if (this._RenameToolStripMenuItem != null) this._RenameToolStripMenuItem.Click -= eventHandler; this._RenameToolStripMenuItem = value; if (this._RenameToolStripMenuItem == null) return; this._RenameToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem ToolToolStripMenuItem { get { return this._ToolToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ToolToolStripMenuItem_DropDownOpening); if (this._ToolToolStripMenuItem != null) this._ToolToolStripMenuItem.DropDownOpening -= eventHandler; this._ToolToolStripMenuItem = value; if (this._ToolToolStripMenuItem == null) return; this._ToolToolStripMenuItem.DropDownOpening += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator9 { get { return this._ToolStripSeparator9; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator9 = value; } } internal virtual ToolStripMenuItem LogToolStripMenuItem { get { return this._LogToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.LogToolStripMenuItem_Click); if (this._LogToolStripMenuItem != null) this._LogToolStripMenuItem.Click -= eventHandler; this._LogToolStripMenuItem = value; if (this._LogToolStripMenuItem == null) return; this._LogToolStripMenuItem.Click += eventHandler; } } internal virtual RightAlignToolStrip ExpandToolStrip1 { get { return this._ExpandToolStrip1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ExpandToolStrip1 = value; } } internal virtual ToolStripTextBox UriToolStripTextBox { get { return this._UriToolStripTextBox; } [MethodImpl(MethodImplOptions.Synchronized)] set { KeyEventHandler keyEventHandler = new KeyEventHandler(this.UriToolStripTextBox_KeyDown); if (this._UriToolStripTextBox != null) this._UriToolStripTextBox.KeyDown -= keyEventHandler; this._UriToolStripTextBox = value; if (this._UriToolStripTextBox == null) return; this._UriToolStripTextBox.KeyDown += keyEventHandler; } } internal virtual ToolStripButton FaviconToolStripButton { get { return this._FaviconToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.FaviconToolStripButton_Click); if (this._FaviconToolStripButton != null) this._FaviconToolStripButton.Click -= eventHandler; this._FaviconToolStripButton = value; if (this._FaviconToolStripButton == null) return; this._FaviconToolStripButton.Click += eventHandler; } } internal virtual ToolStripButton ToolStripGoButton { get { return this._ToolStripGoButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ToolStripGoButton_Click); if (this._ToolStripGoButton != null) this._ToolStripGoButton.Click -= eventHandler; this._ToolStripGoButton = value; if (this._ToolStripGoButton == null) return; this._ToolStripGoButton.Click += eventHandler; } } internal virtual ToolStripButton BackToolStripButton { get { return this._BackToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.BackToolStripItem_Click); if (this._BackToolStripButton != null) this._BackToolStripButton.Click -= eventHandler; this._BackToolStripButton = value; if (this._BackToolStripButton == null) return; this._BackToolStripButton.Click += eventHandler; } } internal virtual ToolStripButton ForwardToolStripButton { get { return this._ForwardToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ForwardToolStripItem_Click); if (this._ForwardToolStripButton != null) this._ForwardToolStripButton.Click -= eventHandler; this._ForwardToolStripButton = value; if (this._ForwardToolStripButton == null) return; this._ForwardToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator11 { get { return this._ToolStripSeparator11; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator11 = value; } } internal virtual ToolStripButton GoToParentToolStripButton { get { return this._GoToParentToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GoToParentToolStripItem_Click); if (this._GoToParentToolStripButton != null) this._GoToParentToolStripButton.Click -= eventHandler; this._GoToParentToolStripButton = value; if (this._GoToParentToolStripButton == null) return; this._GoToParentToolStripButton.Click += eventHandler; } } internal virtual ToolStripContainer ToolStripContainer1 { get { return this._ToolStripContainer1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripContainer1 = value; } } internal virtual ToolStripMenuItem BackToolStripMenuItem { get { return this._BackToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.BackToolStripItem_Click); if (this._BackToolStripMenuItem != null) this._BackToolStripMenuItem.Click -= eventHandler; this._BackToolStripMenuItem = value; if (this._BackToolStripMenuItem == null) return; this._BackToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem ForwardToolStripMenuItem { get { return this._ForwardToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ForwardToolStripItem_Click); if (this._ForwardToolStripMenuItem != null) this._ForwardToolStripMenuItem.Click -= eventHandler; this._ForwardToolStripMenuItem = value; if (this._ForwardToolStripMenuItem == null) return; this._ForwardToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator12 { get { return this._ToolStripSeparator12; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator12 = value; } } internal virtual StatusStrip StatusStrip1 { get { return this._StatusStrip1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._StatusStrip1 = value; } } internal virtual ToolStripStatusLabel ToolStripTotal { get { return this._ToolStripTotal; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripTotal = value; } } internal virtual ToolStripStatusLabel ToolStripSelected { get { return this._ToolStripSelected; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSelected = value; } } internal virtual ToolStripMenuItem StatusBarToolStripMenuItem { get { return this._StatusBarToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.StatusBarToolStripMenuItem_Click); if (this._StatusBarToolStripMenuItem != null) this._StatusBarToolStripMenuItem.Click -= eventHandler; this._StatusBarToolStripMenuItem = value; if (this._StatusBarToolStripMenuItem == null) return; this._StatusBarToolStripMenuItem.Click += eventHandler; } } internal virtual ContextMenuStrip ContextMenuStrip1 { get { return this._ContextMenuStrip1; } [MethodImpl(MethodImplOptions.Synchronized)] set { ToolStripDropDownClosedEventHandler closedEventHandler = new ToolStripDropDownClosedEventHandler(this.ContextMenuStrip1_Closed); CancelEventHandler cancelEventHandler = new CancelEventHandler(this.ContextMenuStrip1_Opening); if (this._ContextMenuStrip1 != null) { this._ContextMenuStrip1.Closed -= closedEventHandler; this._ContextMenuStrip1.Opening -= cancelEventHandler; } this._ContextMenuStrip1 = value; if (this._ContextMenuStrip1 == null) return; this._ContextMenuStrip1.Closed += closedEventHandler; this._ContextMenuStrip1.Opening += cancelEventHandler; } } internal virtual ToolStripMenuItem DownloadContextMenuItem { get { return this._DownloadContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DownloadToolStripItem_Click); if (this._DownloadContextMenuItem != null) this._DownloadContextMenuItem.Click -= eventHandler; this._DownloadContextMenuItem = value; if (this._DownloadContextMenuItem == null) return; this._DownloadContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem RenameContextMenuItem { get { return this._RenameContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.RenameToolStripMenuItem_Click); if (this._RenameContextMenuItem != null) this._RenameContextMenuItem.Click -= eventHandler; this._RenameContextMenuItem = value; if (this._RenameContextMenuItem == null) return; this._RenameContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem PropertyContextMenuItem { get { return this._PropertyContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.PropertyToolStripItem_Click); if (this._PropertyContextMenuItem != null) this._PropertyContextMenuItem.Click -= eventHandler; this._PropertyContextMenuItem = value; if (this._PropertyContextMenuItem == null) return; this._PropertyContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem DeleteContextMenuItem { get { return this._DeleteContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DeleteToolStripItem_Click); if (this._DeleteContextMenuItem != null) this._DeleteContextMenuItem.Click -= eventHandler; this._DeleteContextMenuItem = value; if (this._DeleteContextMenuItem == null) return; this._DeleteContextMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ContextMenuSeparatorDownload { get { return this._ContextMenuSeparatorDownload; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ContextMenuSeparatorDownload = value; } } internal virtual ToolStripMenuItem GoToParentContextMenuItem { get { return this._GoToParentContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GoToParentToolStripItem_Click); if (this._GoToParentContextMenuItem != null) this._GoToParentContextMenuItem.Click -= eventHandler; this._GoToParentContextMenuItem = value; if (this._GoToParentContextMenuItem == null) return; this._GoToParentContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem RefreshContextMenuItem { get { return this._RefreshContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.RefreshToolStripItem_Click); if (this._RefreshContextMenuItem != null) this._RefreshContextMenuItem.Click -= eventHandler; this._RefreshContextMenuItem = value; if (this._RefreshContextMenuItem == null) return; this._RefreshContextMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator16 { get { return this._ToolStripSeparator16; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator16 = value; } } internal virtual ToolStripMenuItem NewFolderContextMenuItem { get { return this._NewFolderContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.NewFolderToolStripItem_Click); if (this._NewFolderContextMenuItem != null) this._NewFolderContextMenuItem.Click -= eventHandler; this._NewFolderContextMenuItem = value; if (this._NewFolderContextMenuItem == null) return; this._NewFolderContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem CopyURIContextMenuItem { get { return this._CopyURIContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CopyURIContextMenuItem_Click); if (this._CopyURIContextMenuItem != null) this._CopyURIContextMenuItem.Click -= eventHandler; this._CopyURIContextMenuItem = value; if (this._CopyURIContextMenuItem == null) return; this._CopyURIContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem CopyResourceNameContextMenuItem { get { return this._CopyResourceNameContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CopyResourceNameContextMenuItem_Click); if (this._CopyResourceNameContextMenuItem != null) this._CopyResourceNameContextMenuItem.Click -= eventHandler; this._CopyResourceNameContextMenuItem = value; if (this._CopyResourceNameContextMenuItem == null) return; this._CopyResourceNameContextMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ContextMenuSeparatorCopy { get { return this._ContextMenuSeparatorCopy; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ContextMenuSeparatorCopy = value; } } internal virtual ToolStripMenuItem LogToFileToolStripMenuItem { get { return this._LogToFileToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.LogToFileToolStripMenuItem_Click); if (this._LogToFileToolStripMenuItem != null) this._LogToFileToolStripMenuItem.Click -= eventHandler; this._LogToFileToolStripMenuItem = value; if (this._LogToFileToolStripMenuItem == null) return; this._LogToFileToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripButton UploadFolderToolStripButton { get { return this._UploadFolderToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.UploadFolderToolStripItem_Click); if (this._UploadFolderToolStripButton != null) this._UploadFolderToolStripButton.Click -= eventHandler; this._UploadFolderToolStripButton = value; if (this._UploadFolderToolStripButton == null) return; this._UploadFolderToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator15 { get { return this._ToolStripSeparator15; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator15 = value; } } internal virtual ToolStripMenuItem UploadFolderToolStripMenuItem { get { return this._UploadFolderToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.UploadFolderToolStripItem_Click); if (this._UploadFolderToolStripMenuItem != null) this._UploadFolderToolStripMenuItem.Click -= eventHandler; this._UploadFolderToolStripMenuItem = value; if (this._UploadFolderToolStripMenuItem == null) return; this._UploadFolderToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem TileToolStripMenuItem { get { return this._TileToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.TileToolStripMenuItem_Click); if (this._TileToolStripMenuItem != null) this._TileToolStripMenuItem.Click -= eventHandler; this._TileToolStripMenuItem = value; if (this._TileToolStripMenuItem == null) return; this._TileToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem TileToolStripMenuItem1 { get { return this._TileToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.TileToolStripMenuItem_Click); if (this._TileToolStripMenuItem1 != null) this._TileToolStripMenuItem1.Click -= eventHandler; this._TileToolStripMenuItem1 = value; if (this._TileToolStripMenuItem1 == null) return; this._TileToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem ViewToolStripMenuItem1 { get { return this._ViewToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ViewToolStripMenuItem1 = value; } } internal virtual ToolStripMenuItem LargeIconToolStripMenuItem2 { get { return this._LargeIconToolStripMenuItem2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.LargeIconToolStripMenuItem_Click); if (this._LargeIconToolStripMenuItem2 != null) this._LargeIconToolStripMenuItem2.Click -= eventHandler; this._LargeIconToolStripMenuItem2 = value; if (this._LargeIconToolStripMenuItem2 == null) return; this._LargeIconToolStripMenuItem2.Click += eventHandler; } } internal virtual ToolStripMenuItem SmallIconToolStripMenuItem2 { get { return this._SmallIconToolStripMenuItem2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SmallIconToolStripMenuItem_Click); if (this._SmallIconToolStripMenuItem2 != null) this._SmallIconToolStripMenuItem2.Click -= eventHandler; this._SmallIconToolStripMenuItem2 = value; if (this._SmallIconToolStripMenuItem2 == null) return; this._SmallIconToolStripMenuItem2.Click += eventHandler; } } internal virtual ToolStripMenuItem ListToolStripMenuItem2 { get { return this._ListToolStripMenuItem2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ListToolStripMenuItem_Click); if (this._ListToolStripMenuItem2 != null) this._ListToolStripMenuItem2.Click -= eventHandler; this._ListToolStripMenuItem2 = value; if (this._ListToolStripMenuItem2 == null) return; this._ListToolStripMenuItem2.Click += eventHandler; } } internal virtual ToolStripMenuItem TileToolStripMenuItem2 { get { return this._TileToolStripMenuItem2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.TileToolStripMenuItem_Click); if (this._TileToolStripMenuItem2 != null) this._TileToolStripMenuItem2.Click -= eventHandler; this._TileToolStripMenuItem2 = value; if (this._TileToolStripMenuItem2 == null) return; this._TileToolStripMenuItem2.Click += eventHandler; } } internal virtual ToolStripMenuItem DetailToolStripMenuItem2 { get { return this._DetailToolStripMenuItem2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DetailToolStripMenuItem_Click); if (this._DetailToolStripMenuItem2 != null) this._DetailToolStripMenuItem2.Click -= eventHandler; this._DetailToolStripMenuItem2 = value; if (this._DetailToolStripMenuItem2 == null) return; this._DetailToolStripMenuItem2.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator20 { get { return this._ToolStripSeparator20; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator20 = value; } } internal virtual ToolStripMenuItem AutoColumnWidthToolStripMenuItem { get { return this._AutoColumnWidthToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.AutoColumnWidthToolStripMenuItem_Click); if (this._AutoColumnWidthToolStripMenuItem != null) this._AutoColumnWidthToolStripMenuItem.Click -= eventHandler; this._AutoColumnWidthToolStripMenuItem = value; if (this._AutoColumnWidthToolStripMenuItem == null) return; this._AutoColumnWidthToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem SortToolStripMenuItem { get { return this._SortToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._SortToolStripMenuItem = value; } } internal virtual ToolStripMenuItem SortNameToolStripMenuItem { get { return this._SortNameToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortNameToolStripMenuItem_Click); if (this._SortNameToolStripMenuItem != null) this._SortNameToolStripMenuItem.Click -= eventHandler; this._SortNameToolStripMenuItem = value; if (this._SortNameToolStripMenuItem == null) return; this._SortNameToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem SortSizeToolStripMenuItem { get { return this._SortSizeToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortSizeToolStripMenuItem_Click); if (this._SortSizeToolStripMenuItem != null) this._SortSizeToolStripMenuItem.Click -= eventHandler; this._SortSizeToolStripMenuItem = value; if (this._SortSizeToolStripMenuItem == null) return; this._SortSizeToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem SortLastModifiedDateToolStripMenuItem { get { return this._SortLastModifiedDateToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortLastModifiedDateToolStripMenuItem_Click); if (this._SortLastModifiedDateToolStripMenuItem != null) this._SortLastModifiedDateToolStripMenuItem.Click -= eventHandler; this._SortLastModifiedDateToolStripMenuItem = value; if (this._SortLastModifiedDateToolStripMenuItem == null) return; this._SortLastModifiedDateToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem SortCreationDateToolStripMenuItem { get { return this._SortCreationDateToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortCreationDateToolStripMenuItem_Click); if (this._SortCreationDateToolStripMenuItem != null) this._SortCreationDateToolStripMenuItem.Click -= eventHandler; this._SortCreationDateToolStripMenuItem = value; if (this._SortCreationDateToolStripMenuItem == null) return; this._SortCreationDateToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator19 { get { return this._ToolStripSeparator19; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator19 = value; } } internal virtual ToolStripSeparator ToolStripSeparator21 { get { return this._ToolStripSeparator21; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator21 = value; } } internal virtual ToolStripMenuItem SortToolStripMenuItem1 { get { return this._SortToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._SortToolStripMenuItem1 = value; } } internal virtual ToolStripMenuItem SortNameToolStripMenuItem1 { get { return this._SortNameToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortNameToolStripMenuItem_Click); if (this._SortNameToolStripMenuItem1 != null) this._SortNameToolStripMenuItem1.Click -= eventHandler; this._SortNameToolStripMenuItem1 = value; if (this._SortNameToolStripMenuItem1 == null) return; this._SortNameToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem SortLastModifiedDateToolStripMenuItem1 { get { return this._SortLastModifiedDateToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortLastModifiedDateToolStripMenuItem_Click); if (this._SortLastModifiedDateToolStripMenuItem1 != null) this._SortLastModifiedDateToolStripMenuItem1.Click -= eventHandler; this._SortLastModifiedDateToolStripMenuItem1 = value; if (this._SortLastModifiedDateToolStripMenuItem1 == null) return; this._SortLastModifiedDateToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem SortCreationDateToolStripMenuItem1 { get { return this._SortCreationDateToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortCreationDateToolStripMenuItem_Click); if (this._SortCreationDateToolStripMenuItem1 != null) this._SortCreationDateToolStripMenuItem1.Click -= eventHandler; this._SortCreationDateToolStripMenuItem1 = value; if (this._SortCreationDateToolStripMenuItem1 == null) return; this._SortCreationDateToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem AutoColumnWidthToolStripMenuItem1 { get { return this._AutoColumnWidthToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.AutoColumnWidthToolStripMenuItem_Click); if (this._AutoColumnWidthToolStripMenuItem1 != null) this._AutoColumnWidthToolStripMenuItem1.Click -= eventHandler; this._AutoColumnWidthToolStripMenuItem1 = value; if (this._AutoColumnWidthToolStripMenuItem1 == null) return; this._AutoColumnWidthToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator22 { get { return this._ToolStripSeparator22; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator22 = value; } } internal virtual ToolStripMenuItem SortStatusToolStripMenuItem { get { return this._SortStatusToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortStatusToolStripMenuItem_Click); if (this._SortStatusToolStripMenuItem != null) this._SortStatusToolStripMenuItem.Click -= eventHandler; this._SortStatusToolStripMenuItem = value; if (this._SortStatusToolStripMenuItem == null) return; this._SortStatusToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem SortURIToolStripMenuItem { get { return this._SortURIToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortURIToolStripMenuItem_Click); if (this._SortURIToolStripMenuItem != null) this._SortURIToolStripMenuItem.Click -= eventHandler; this._SortURIToolStripMenuItem = value; if (this._SortURIToolStripMenuItem == null) return; this._SortURIToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem SortStatusToolStripMenuItem1 { get { return this._SortStatusToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortStatusToolStripMenuItem_Click); if (this._SortStatusToolStripMenuItem1 != null) this._SortStatusToolStripMenuItem1.Click -= eventHandler; this._SortStatusToolStripMenuItem1 = value; if (this._SortStatusToolStripMenuItem1 == null) return; this._SortStatusToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem SortURIToolStripMenuItem1 { get { return this._SortURIToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SortURIToolStripMenuItem_Click); if (this._SortURIToolStripMenuItem1 != null) this._SortURIToolStripMenuItem1.Click -= eventHandler; this._SortURIToolStripMenuItem1 = value; if (this._SortURIToolStripMenuItem1 == null) return; this._SortURIToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator23 { get { return this._ToolStripSeparator23; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator23 = value; } } internal virtual ToolStripMenuItem AutoColumnWidthToolStripMenuItem2 { get { return this._AutoColumnWidthToolStripMenuItem2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.AutoColumnWidthToolStripMenuItem_Click); if (this._AutoColumnWidthToolStripMenuItem2 != null) this._AutoColumnWidthToolStripMenuItem2.Click -= eventHandler; this._AutoColumnWidthToolStripMenuItem2 = value; if (this._AutoColumnWidthToolStripMenuItem2 == null) return; this._AutoColumnWidthToolStripMenuItem2.Click += eventHandler; } } internal virtual ToolStripMenuItem GroupToolStripMenuItem { get { return this._GroupToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._GroupToolStripMenuItem = value; } } internal virtual ToolStripMenuItem GroupNoneToolStripMenuItem { get { return this._GroupNoneToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupNoneToolStripMenuItem_Click); if (this._GroupNoneToolStripMenuItem != null) this._GroupNoneToolStripMenuItem.Click -= eventHandler; this._GroupNoneToolStripMenuItem = value; if (this._GroupNoneToolStripMenuItem == null) return; this._GroupNoneToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem GroupTypeToolStripMenuItem { get { return this._GroupTypeToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupTypeToolStripMenuItem_Click); if (this._GroupTypeToolStripMenuItem != null) this._GroupTypeToolStripMenuItem.Click -= eventHandler; this._GroupTypeToolStripMenuItem = value; if (this._GroupTypeToolStripMenuItem == null) return; this._GroupTypeToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem GroupSizeToolStripMenuItem { get { return this._GroupSizeToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupSizeToolStripMenuItem_Click); if (this._GroupSizeToolStripMenuItem != null) this._GroupSizeToolStripMenuItem.Click -= eventHandler; this._GroupSizeToolStripMenuItem = value; if (this._GroupSizeToolStripMenuItem == null) return; this._GroupSizeToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem GroupToolStripMenuItem1 { get { return this._GroupToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._GroupToolStripMenuItem1 = value; } } internal virtual ToolStripMenuItem GroupNoneToolStripMenuItem1 { get { return this._GroupNoneToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupNoneToolStripMenuItem_Click); if (this._GroupNoneToolStripMenuItem1 != null) this._GroupNoneToolStripMenuItem1.Click -= eventHandler; this._GroupNoneToolStripMenuItem1 = value; if (this._GroupNoneToolStripMenuItem1 == null) return; this._GroupNoneToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem GroupTypeToolStripMenuItem1 { get { return this._GroupTypeToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupTypeToolStripMenuItem_Click); if (this._GroupTypeToolStripMenuItem1 != null) this._GroupTypeToolStripMenuItem1.Click -= eventHandler; this._GroupTypeToolStripMenuItem1 = value; if (this._GroupTypeToolStripMenuItem1 == null) return; this._GroupTypeToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem GroupSizeToolStripMenuItem1 { get { return this._GroupSizeToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupSizeToolStripMenuItem_Click); if (this._GroupSizeToolStripMenuItem1 != null) this._GroupSizeToolStripMenuItem1.Click -= eventHandler; this._GroupSizeToolStripMenuItem1 = value; if (this._GroupSizeToolStripMenuItem1 == null) return; this._GroupSizeToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator24 { get { return this._ToolStripSeparator24; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator24 = value; } } internal virtual ToolStripMenuItem GroupNameToolStripMenuItem { get { return this._GroupNameToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupNameToolStripMenuItem_Click); if (this._GroupNameToolStripMenuItem != null) this._GroupNameToolStripMenuItem.Click -= eventHandler; this._GroupNameToolStripMenuItem = value; if (this._GroupNameToolStripMenuItem == null) return; this._GroupNameToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator25 { get { return this._ToolStripSeparator25; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator25 = value; } } internal virtual ToolStripMenuItem GroupNameToolStripMenuItem1 { get { return this._GroupNameToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GroupNameToolStripMenuItem_Click); if (this._GroupNameToolStripMenuItem1 != null) this._GroupNameToolStripMenuItem1.Click -= eventHandler; this._GroupNameToolStripMenuItem1 = value; if (this._GroupNameToolStripMenuItem1 == null) return; this._GroupNameToolStripMenuItem1.Click += eventHandler; } } internal virtual ToolStripMenuItem GoToHomeToolStripMenuItem { get { return this._GoToHomeToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GoToHomeToolStripMenuItem_Click); if (this._GoToHomeToolStripMenuItem != null) this._GoToHomeToolStripMenuItem.Click -= eventHandler; this._GoToHomeToolStripMenuItem = value; if (this._GoToHomeToolStripMenuItem == null) return; this._GoToHomeToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem GoToParentToolStripMenuItem { get { return this._GoToParentToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.GoToParentToolStripMenuItem_Click); if (this._GoToParentToolStripMenuItem != null) this._GoToParentToolStripMenuItem.Click -= eventHandler; this._GoToParentToolStripMenuItem = value; if (this._GoToParentToolStripMenuItem == null) return; this._GoToParentToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem RefreshToolStripMenuItem { get { return this._RefreshToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.RefreshToolStripMenuItem_Click); if (this._RefreshToolStripMenuItem != null) this._RefreshToolStripMenuItem.Click -= eventHandler; this._RefreshToolStripMenuItem = value; if (this._RefreshToolStripMenuItem == null) return; this._RefreshToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator2 { get { return this._ToolStripSeparator2; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator2 = value; } } internal virtual ToolStripMenuItem SelectAllToolStripMenuItem { get { return this._SelectAllToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SelectAllToolStripMenuItem_Click); if (this._SelectAllToolStripMenuItem != null) this._SelectAllToolStripMenuItem.Click -= eventHandler; this._SelectAllToolStripMenuItem = value; if (this._SelectAllToolStripMenuItem == null) return; this._SelectAllToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator10 { get { return this._ToolStripSeparator10; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator10 = value; } } internal virtual ToolStripMenuItem TestToolStripMenuItem { get { return this._TestToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.TestToolStripMenuItem_Click); if (this._TestToolStripMenuItem != null) this._TestToolStripMenuItem.Click -= eventHandler; this._TestToolStripMenuItem = value; if (this._TestToolStripMenuItem == null) return; this._TestToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem PasteToolStripMenuItem { get { return this._PasteToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.PasteToolStripMenuItem_Click); if (this._PasteToolStripMenuItem != null) this._PasteToolStripMenuItem.Click -= eventHandler; this._PasteToolStripMenuItem = value; if (this._PasteToolStripMenuItem == null) return; this._PasteToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem CopyToolStripMenuItem { get { return this._CopyToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CopyToolStripMenuItem_Click); if (this._CopyToolStripMenuItem != null) this._CopyToolStripMenuItem.Click -= eventHandler; this._CopyToolStripMenuItem = value; if (this._CopyToolStripMenuItem == null) return; this._CopyToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem CopyContextMenuItem { get { return this._CopyContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CopyToolStripMenuItem_Click); if (this._CopyContextMenuItem != null) this._CopyContextMenuItem.Click -= eventHandler; this._CopyContextMenuItem = value; if (this._CopyContextMenuItem == null) return; this._CopyContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem PasteContextMenuItem { get { return this._PasteContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.PasteToolStripMenuItem_Click); if (this._PasteContextMenuItem != null) this._PasteContextMenuItem.Click -= eventHandler; this._PasteContextMenuItem = value; if (this._PasteContextMenuItem == null) return; this._PasteContextMenuItem.Click += eventHandler; } } internal virtual ToolStripLabel SecureToolStripLabel { get { return this._SecureToolStripLabel; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._SecureToolStripLabel = value; } } internal virtual ToolStripMenuItem CutToolStripMenuItem { get { return this._CutToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CutToolStripMenuItem_Click); if (this._CutToolStripMenuItem != null) this._CutToolStripMenuItem.Click -= eventHandler; this._CutToolStripMenuItem = value; if (this._CutToolStripMenuItem == null) return; this._CutToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem CutContextMenuItem { get { return this._CutContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CutToolStripMenuItem_Click); if (this._CutContextMenuItem != null) this._CutContextMenuItem.Click -= eventHandler; this._CutContextMenuItem = value; if (this._CutContextMenuItem == null) return; this._CutContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem NewVersionToolStripMenuItem { get { return this._NewVersionToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.NewVersionToolStripMenuItem_Click); if (this._NewVersionToolStripMenuItem != null) this._NewVersionToolStripMenuItem.Click -= eventHandler; this._NewVersionToolStripMenuItem = value; if (this._NewVersionToolStripMenuItem == null) return; this._NewVersionToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripButton CutToolStripButton { get { return this._CutToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CutToolStripMenuItem_Click); if (this._CutToolStripButton != null) this._CutToolStripButton.Click -= eventHandler; this._CutToolStripButton = value; if (this._CutToolStripButton == null) return; this._CutToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator27 { get { return this._ToolStripSeparator27; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator27 = value; } } internal virtual ToolStripButton CopyToolStripButton { get { return this._CopyToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.CopyToolStripMenuItem_Click); if (this._CopyToolStripButton != null) this._CopyToolStripButton.Click -= eventHandler; this._CopyToolStripButton = value; if (this._CopyToolStripButton == null) return; this._CopyToolStripButton.Click += eventHandler; } } internal virtual ToolStripButton PasteToolStripButton { get { return this._PasteToolStripButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.PasteToolStripMenuItem_Click); if (this._PasteToolStripButton != null) this._PasteToolStripButton.Click -= eventHandler; this._PasteToolStripButton = value; if (this._PasteToolStripButton == null) return; this._PasteToolStripButton.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator28 { get { return this._ToolStripSeparator28; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator28 = value; } } internal virtual ToolStripMenuItem NewConnectionContextMenuItem { get { return this._NewConnectionContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._NewConnectionContextMenuItem = value; } } internal virtual ToolStripMenuItem ImportContextMenuItem { get { return this._ImportContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ImportToolStripMenuItem_Click); if (this._ImportContextMenuItem != null) this._ImportContextMenuItem.Click -= eventHandler; this._ImportContextMenuItem = value; if (this._ImportContextMenuItem == null) return; this._ImportContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem ExportContextMenuItem { get { return this._ExportContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ExportToolStripMenuItem_Click); if (this._ExportContextMenuItem != null) this._ExportContextMenuItem.Click -= eventHandler; this._ExportContextMenuItem = value; if (this._ExportContextMenuItem == null) return; this._ExportContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem ImportToolStripMenuItem { get { return this._ImportToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ImportToolStripMenuItem_Click); if (this._ImportToolStripMenuItem != null) this._ImportToolStripMenuItem.Click -= eventHandler; this._ImportToolStripMenuItem = value; if (this._ImportToolStripMenuItem == null) return; this._ImportToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem ExportToolStripMenuItem { get { return this._ExportToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.ExportToolStripMenuItem_Click); if (this._ExportToolStripMenuItem != null) this._ExportToolStripMenuItem.Click -= eventHandler; this._ExportToolStripMenuItem = value; if (this._ExportToolStripMenuItem == null) return; this._ExportToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem NewConnectionToolStripMenuItem { get { return this._NewConnectionToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._NewConnectionToolStripMenuItem = value; } } internal virtual ToolStripSeparator ToolStripSeparatorCustomMenuStart { get { return this._ToolStripSeparatorCustomMenuStart; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparatorCustomMenuStart = value; } } internal virtual ToolStripMenuItem DuplicateContextMenuItem { get { return this._DuplicateContextMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DuplicateToolStripMenuItem_Click); if (this._DuplicateContextMenuItem != null) this._DuplicateContextMenuItem.Click -= eventHandler; this._DuplicateContextMenuItem = value; if (this._DuplicateContextMenuItem == null) return; this._DuplicateContextMenuItem.Click += eventHandler; } } internal virtual ToolStripMenuItem DuplicateToolStripMenuItem { get { return this._DuplicateToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.DuplicateToolStripMenuItem_Click); if (this._DuplicateToolStripMenuItem != null) this._DuplicateToolStripMenuItem.Click -= eventHandler; this._DuplicateToolStripMenuItem = value; if (this._DuplicateToolStripMenuItem == null) return; this._DuplicateToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripDropDownButton NewConnectionToolStripDropDownButton { get { return this._NewConnectionToolStripDropDownButton; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._NewConnectionToolStripDropDownButton = value; } } internal virtual ToolStripSeparator ContextMenuSeparatorConnection { get { return this._ContextMenuSeparatorConnection; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ContextMenuSeparatorConnection = value; } } internal virtual ToolStripMenuItem EnableWebDAVServerToolStripMenuItem { get { return this._EnableWebDAVServerToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.EnableWebDAVServerToolStripMenuItem_Click); if (this._EnableWebDAVServerToolStripMenuItem != null) this._EnableWebDAVServerToolStripMenuItem.Click -= eventHandler; this._EnableWebDAVServerToolStripMenuItem = value; if (this._EnableWebDAVServerToolStripMenuItem == null) return; this._EnableWebDAVServerToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator3 { get { return this._ToolStripSeparator3; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator3 = value; } } internal virtual DAVServer DavServer1 { get { return this._DavServer1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.Client_OnMessage); if (this._DavServer1 != null) this._DavServer1.LogMessage -= eventHandler; this._DavServer1 = value; if (this._DavServer1 == null) return; this._DavServer1.LogMessage += eventHandler; } } internal virtual ToolStripMenuItem SettingToolStripMenuItem { get { return this._SettingToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler eventHandler = new EventHandler(this.SettingToolStripMenuItem_Click); if (this._SettingToolStripMenuItem != null) this._SettingToolStripMenuItem.Click -= eventHandler; this._SettingToolStripMenuItem = value; if (this._SettingToolStripMenuItem == null) return; this._SettingToolStripMenuItem.Click += eventHandler; } } internal virtual ToolStripSeparator ToolStripSeparator4 { get { return this._ToolStripSeparator4; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._ToolStripSeparator4 = value; } } internal virtual ImageList LargeImageList { get { return this._LargeImageList; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._LargeImageList = value; } } internal virtual ImageList SmallImageList { get { return this._SmallImageList; } [MethodImpl(MethodImplOptions.Synchronized)] set { this._SmallImageList = value; } } public static System.Drawing.Color EncryptedColor { get { if (MainForm.sEncryptedColor == System.Drawing.Color.Empty) { try { RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer", false); if (registryKey != null) { byte[] numArray = (byte[]) registryKey.GetValue("AltEncryptionColor", (object) new byte[4] { (byte) 0, (byte) 128, (byte) 64, (byte) 0 }); MainForm.sEncryptedColor = System.Drawing.Color.FromArgb((int) numArray[3], (int) numArray[0], (int) numArray[1], (int) numArray[2]); } } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } if (MainForm.sEncryptedColor == System.Drawing.Color.Empty) MainForm.sEncryptedColor = System.Drawing.Color.FromArgb(0, 128, 64); } return MainForm.sEncryptedColor; } } public static System.Drawing.Color CompressedColor { get { if (MainForm.sCompressedColor == System.Drawing.Color.Empty) { try { RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer", false); if (registryKey != null) { byte[] numArray = (byte[]) registryKey.GetValue("AltColor", (object) new byte[4] { (byte) 0, (byte) 0, byte.MaxValue, (byte) 0 }); MainForm.sCompressedColor = System.Drawing.Color.FromArgb((int) numArray[3], (int) numArray[0], (int) numArray[1], (int) numArray[2]); } } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } if (MainForm.sCompressedColor == System.Drawing.Color.Empty) MainForm.sEncryptedColor = System.Drawing.Color.FromArgb(0, 0, (int) byte.MaxValue); } return MainForm.sCompressedColor; } } internal virtual BackgroundWorker pFaviconDownloadWorker { get { return this._pFaviconDownloadWorker; } [MethodImpl(MethodImplOptions.Synchronized)] set { RunWorkerCompletedEventHandler completedEventHandler = new RunWorkerCompletedEventHandler(this.pFaviconDownloadWorker_RunWorkerCompleted); DoWorkEventHandler workEventHandler = new DoWorkEventHandler(this.pFaviconDownloadWorker_DoWork); if (this._pFaviconDownloadWorker != null) { this._pFaviconDownloadWorker.RunWorkerCompleted -= completedEventHandler; this._pFaviconDownloadWorker.DoWork -= workEventHandler; } this._pFaviconDownloadWorker = value; if (this._pFaviconDownloadWorker == null) return; this._pFaviconDownloadWorker.RunWorkerCompleted += completedEventHandler; this._pFaviconDownloadWorker.DoWork += workEventHandler; } } internal virtual BackgroundWorker pVersionChecker { get { return this._pVersionChecker; } [MethodImpl(MethodImplOptions.Synchronized)] set { RunWorkerCompletedEventHandler completedEventHandler = new RunWorkerCompletedEventHandler(this.pVersionChecker_RunWorkerCompleted); DoWorkEventHandler workEventHandler = new DoWorkEventHandler(this.pVersionChecker_DoWork); if (this._pVersionChecker != null) { this._pVersionChecker.RunWorkerCompleted -= completedEventHandler; this._pVersionChecker.DoWork -= workEventHandler; } this._pVersionChecker = value; if (this._pVersionChecker == null) return; this._pVersionChecker.RunWorkerCompleted += completedEventHandler; this._pVersionChecker.DoWork += workEventHandler; } } internal virtual CacheManager pCache { get { return this._pCache; } [MethodImpl(MethodImplOptions.Synchronized)] set { CacheManager.ResourceChangedEventHandler changedEventHandler = new CacheManager.ResourceChangedEventHandler(this.Cache_RemoteResourceChanged); if (this._pCache != null) this._pCache.ResourceChanged -= changedEventHandler; this._pCache = value; if (this._pCache == null) return; this._pCache.ResourceChanged += changedEventHandler; } } protected override void WndProc(ref Message m) { if (m.Msg == TaskbarManager.TaskbarButtonCreatedMessage) this.pTaskbarButtonCreated = true; base.WndProc(ref m); } public bool TaskbarButtonCreated { get { return this.pTaskbarButtonCreated; } } public ConnectionSettingBase CurrentConnectionSetting { get { return this.pCurrentConnectionSetting; } } public ResourceId CurrentId { get { if (this.CurrentInfo == null) return (ResourceId) null; return this.CurrentInfo.Id; } } public ResourceInfo CurrentInfo { get { if (this.pCurrentResourceInfos == null) return (ResourceInfo) null; return this.pCurrentResourceInfos[0]; } } public ResourceInfo[] CurrentResourceInfos { get { return this.pCurrentResourceInfos; } } public bool IsConnected { get { return (object) this.CurrentId != null; } } public bool IsTemporaryConnection { get { return this.pIsTemporaryConnection; } } public MainForm() { this.DragDrop += new DragEventHandler(this.MainForm_DragDrop); this.DragEnter += new DragEventHandler(this.MainForm_DragEnter); this.Load += new EventHandler(this.MainForm_Load); this.DragOver += new DragEventHandler(this.MainForm_DragOver); this.DragLeave += new EventHandler(this.MainForm_DragLeave); this.Activated += new EventHandler(this.MainForm_Activated); this.Shown += new EventHandler(this.MainForm_Shown); this.ResizeEnd += new EventHandler(this.MainForm_ResizeEnd); this.FormClosing += new FormClosingEventHandler(this.MainForm_FormClosing); this.pDataObjectList = new List(); this.WriteLineLogHandler = new MainForm.WriteLineLogDel(this.WriteLineLog); this.pTaskbarButtonCreated = false; this.RemoteResourceChangedHandler = new EventHandler(this.Cache_RemoteResourceChanged); this.InitializeComponent(); checked { ++MainForm.MainFormCounter; } if (MainForm.MainFormCounter != 1) return; MainForm.AppUserModelId = (Application.CompanyName + "." + Application.ProductName).Replace(" ", ""); if (!XmlSettingManager.IsPortable) { TaskbarManager.SetAppUserModelID(MainForm.AppUserModelId); TaskbarManager.SetJumpListKnownCategory(MainForm.AppUserModelId, true); LogWriter.LogFilePath = Path.Combine(Application.StartupPath, "log.txt"); } else LogWriter.LogFilePath = string.Join(Conversions.ToString(Path.DirectorySeparatorChar), new string[4] { Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), Application.CompanyName, Application.ProductName, "log.txt" }); TaskbarManager.RegisterTaskbarMessage(); FsManager.LoadFs(); } private void MainForm_Load(object sender, EventArgs e) { if (this.pSetting == null) { string masterpassword = (string) null; while (true) { try { this.pSetting = XmlSettingManager.LoadSetting(masterpassword); break; } catch (MasterPasswordException ex) { ProjectData.SetProjectError((Exception) ex); MasterPasswordInputForm passwordInputForm = new MasterPasswordInputForm(); passwordInputForm.PasswordInvalid = !string.IsNullOrEmpty(masterpassword); switch (passwordInputForm.ShowDialog()) { case DialogResult.OK: masterpassword = passwordInputForm.MasterPassword; ProjectData.ClearProjectError(); continue; case DialogResult.Ignore: this.pSetting = new WebDAVClientSetting(); break; default: Environment.Exit(1); break; } ProjectData.ClearProjectError(); break; } catch (Exception ex) { ProjectData.SetProjectError(ex); switch (MessageBox.Show("Error occurred during loading settings.\r\n" + ex.Message, "Error", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Hand)) { case DialogResult.Retry: masterpassword = (string) null; ProjectData.ClearProjectError(); continue; case DialogResult.Ignore: this.pSetting = new WebDAVClientSetting(); break; default: Environment.Exit(1); break; } ProjectData.ClearProjectError(); break; } } } this.pCurrentConnectionSetting = (ConnectionSettingBase) null; this.pFs = (FsBase) null; this.pCurrentResourceInfos = (ResourceInfo[]) null; this.pCache = new CacheManager(); this.pUriHistory = new LinkedList(); this.pCurrentHistoryNode = this.pUriHistory.First; this.pDownForms = new Dictionary(); this.pUpForms = new Dictionary(); this.pPropertyForms = new List(); this.Size = this.pSetting.FormSize; this.StatusBarChange(this.pSetting.ShowStatusBar); this.LogViewChange(this.pSetting.ShowLogWindow); this.FileLoggingChange(this.pSetting.EnableFileLogging); Application.Idle += new EventHandler(this.Application_Idle); this.InitImageList(); if (MainForm.MainFormCounter == 1) { string[] commandLineArgs = Environment.GetCommandLineArgs(); if (commandLineArgs.Length >= 2) { int num1 = 0; int num2 = checked (this.pSetting.ConnectionSettings.Count - 1); int index = num1; while (index <= num2) { if (Operators.CompareString(commandLineArgs[1], this.pSetting.ConnectionSettings[index].Name, false) == 0) { this.BootConnection = this.pSetting.ConnectionSettings[index]; break; } checked { ++index; } } } } this.Icon = CarotDAV.My.Resources.Resources.CarotDAV; this.ResourceListView.BeginUpdate(); this.ResourceListView.AutoArrange = true; int num3 = 0; int num4 = checked (MainForm.ResourceListViewColumnNames.Length - 1); int index1 = num3; while (index1 <= num4) { this.ResourceListView.Columns.Add(MainForm.ResourceListViewColumnNames[index1]); checked { ++index1; } } this.ResourceListView.Columns[3].TextAlign = HorizontalAlignment.Right; bool flag = false; this.ResourceListView.View = View.Details; if (this.pSetting.ColumnIndexs.Length == this.ResourceListView.Columns.Count && this.pSetting.ColumnWidth.Length == this.ResourceListView.Columns.Count) { List intList = new List(); int num1 = 0; int num2 = checked (this.ResourceListView.Columns.Count - 1); int num5 = num1; while (num5 <= num2) { intList.Add(num5); checked { ++num5; } } flag = true; int num6 = 0; int num7 = checked (this.ResourceListView.Columns.Count - 1); int index2 = num6; while (index2 <= num7) { if (!intList.Contains(this.pSetting.ColumnIndexs[index2])) { flag = false; break; } intList.Remove(this.pSetting.ColumnIndexs[index2]); if (this.pSetting.ColumnWidth[index2] < 0) this.pSetting.ColumnWidth[index2] = 0; checked { ++index2; } } } if (!flag) { this.pSetting.ColumnIndexs = new int[checked (this.ResourceListView.Columns.Count - 1 + 1)]; this.pSetting.ColumnWidth = new int[checked (this.ResourceListView.Columns.Count - 1 + 1)]; int num1 = 0; int num2 = checked (this.ResourceListView.Columns.Count - 1); int index2 = num1; while (index2 <= num2) { this.pSetting.ColumnIndexs[index2] = index2; this.pSetting.ColumnWidth[index2] = 50; checked { ++index2; } } } int num8 = 0; int num9 = checked (this.ResourceListView.Columns.Count - 1); int index3 = num8; while (index3 <= num9) { this.ResourceListView.Columns[index3].DisplayIndex = this.pSetting.ColumnIndexs[index3]; this.ResourceListView.Columns[index3].Width = this.pSetting.ColumnWidth[index3]; checked { ++index3; } } int num10 = 0; int num11 = checked (this.ResourceListView.Columns.Count - 1); int index4 = num10; while (index4 <= num11) { this.ResourceListView.Columns[index4].DisplayIndex = this.pSetting.ColumnIndexs[index4]; this.ResourceListView.Columns[index4].Width = this.pSetting.ColumnWidth[index4]; checked { ++index4; } } this.ResourceListView.ListViewItemSorter = (IComparer) new MainForm.ResourceListViewItemComparer(this.pSetting.SortString); this.ResourceListView.EndUpdate(); this.CreateAddNewSettingMenu(); this.UpdateResourceListViewItem(new ResourceInfo[0]); this.ShowConnectionSettings((ConnectionSettingBase) null, (ConnectionSettingBase) null); this.UpdateWindow(); this.LoadBackgroundImage(); this.VersionCheck(); this.TestToolStripMenuItem.Visible = false; } private void MainForm_Shown(object sender, EventArgs e) { if (this.BootConnection != null) this.Connect(this.BootConnection, false); if (!this.pSetting.AutoEnableDAVServer || MainForm.MainFormCounter != 0) return; this.EnableDAVServer(); } private void MainForm_ResizeEnd(object sender, EventArgs e) { this.pSetting.FormSize = this.Size; } private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (!this.TryClosePropertyForms()) e.Cancel = true; else if (!this.TryCloseUpDownForms()) e.Cancel = true; else if (!this.TryDisconnectOLE()) { e.Cancel = true; } else { this.SaveCurrentSetting(); Application.Idle -= new EventHandler(this.Application_Idle); this.DisableDAVServer(); } } private void CreateAddNewSettingMenu() { EventHandler eventHandler = new EventHandler(this.AddNewSettingToolStripMenuItem_Click); FsManager.TypeNamePair[] fsNameAndType = FsManager.GetFsNameAndType(); int num1 = 0; int num2 = checked (fsNameAndType.Length - 1); int index = num1; while (index <= num2) { try { ToolStripMenuItem toolStripMenuItem1 = new ToolStripMenuItem(fsNameAndType[index].Name); toolStripMenuItem1.Tag = (object) fsNameAndType[index].Type; using (Icon icon = new Icon(FsManager.GetDefaultFavicon(fsNameAndType[index].Type), 16, 16)) toolStripMenuItem1.Image = (Image) icon.ToBitmap(); toolStripMenuItem1.Click += eventHandler; this.NewConnectionContextMenuItem.DropDownItems.Add((ToolStripItem) toolStripMenuItem1); ToolStripMenuItem toolStripMenuItem2 = new ToolStripMenuItem(fsNameAndType[index].Name); toolStripMenuItem2.Tag = (object) fsNameAndType[index].Type; using (Icon icon = new Icon(FsManager.GetDefaultFavicon(fsNameAndType[index].Type), 16, 16)) toolStripMenuItem2.Image = (Image) icon.ToBitmap(); toolStripMenuItem2.Click += eventHandler; this.NewConnectionToolStripMenuItem.DropDownItems.Add((ToolStripItem) toolStripMenuItem2); ToolStripMenuItem toolStripMenuItem3 = new ToolStripMenuItem(fsNameAndType[index].Name); toolStripMenuItem3.Tag = (object) fsNameAndType[index].Type; using (Icon icon = new Icon(FsManager.GetDefaultFavicon(fsNameAndType[index].Type), 16, 16)) toolStripMenuItem3.Image = (Image) icon.ToBitmap(); toolStripMenuItem3.Click += eventHandler; this.NewConnectionToolStripDropDownButton.DropDownItems.Add((ToolStripItem) toolStripMenuItem3); } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } checked { ++index; } } } private void Connect(ConnectionSettingBase cs, bool istemporary) { this.InnerDisconnect(); this.pCurrentConnectionSetting = cs; this.pIsTemporaryConnection = istemporary; if (istemporary) this.Text = Application.ProductName + " - " + cs.TargetUri.ToString(); else this.Text = Application.ProductName + " - " + this.CurrentConnectionSetting.Name; this.UpdateFavicon(); this.pFs = this.CurrentConnectionSetting.GetClient(); this.pFs.GroupName = "MainUI"; this.pFs.LogMessage += new EventHandler(this.Client_OnMessage); if (!this.ShowEntriesByUri(this.CurrentConnectionSetting.TargetUri, false)) { this.InnerDisconnect(); this.Text = Application.ProductName; this.UpdateWindow(); } else this.StartDownloadFavicon(); } private void TemporaryConnect(Uri target) { ConnectionSettingBase c = (ConnectionSettingBase) null; if (FsManager.TryCreate(target, ref c)) { this.Connect(c, true); } else { int num = (int) MessageBox.Show("unsupported uri", "error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } } private void UpdateFavicon() { if (this.CurrentConnectionSetting != null) { using (Icon favicon = MainForm.GetFavicon(this.CurrentConnectionSetting)) { if (favicon == null) return; if (this.FaviconToolStripButton.Image != null) this.FaviconToolStripButton.Image.Dispose(); using (Icon icon = new Icon(favicon, 16, 16)) this.FaviconToolStripButton.Image = (Image) icon.ToBitmap(); } } else { if (this.FaviconToolStripButton.Image != null) this.FaviconToolStripButton.Image.Dispose(); this.FaviconToolStripButton.Image = (Image) null; } } public static Icon GetFavicon(ConnectionSettingBase cs) { try { if (!string.IsNullOrEmpty(cs.FaviconName)) { string str = Path.Combine(XmlSettingManager.FaviconFolder, cs.FaviconName); if (System.IO.File.Exists(str)) return new Icon(str, 16, 16); } } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } return FsManager.GetDefaultFavicon(cs.GetType()); } private static string GetFaviconPath(ConnectionSettingBase cs) { if (!string.IsNullOrEmpty(cs.FaviconName)) { string path = Path.Combine(XmlSettingManager.FaviconFolder, cs.FaviconName); if (System.IO.File.Exists(path)) return path; } return FsManager.GetDefaultFaviconPath(cs.GetType()); } private void StartDownloadFavicon() { if (this.pFaviconDownloadWorker != null) this.pFaviconDownloadWorker.CancelAsync(); this.pFaviconDownloadWorker = new BackgroundWorker(); this.pFaviconDownloadWorker.WorkerSupportsCancellation = true; FsBase client = this.CurrentConnectionSetting.GetClient(); client.LogMessage += new EventHandler(this.Client_OnMessage); client.GroupName = "MainUI"; this.pFaviconDownloadWorker.RunWorkerAsync((object) new object[3] { (object) client, (object) this.CurrentConnectionSetting, (object) this.pIsTemporaryConnection }); } private void pFaviconDownloadWorker_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker backgroundWorker = (BackgroundWorker) sender; object[] objArray1 = (object[]) e.Argument; FsBase fs = (FsBase) objArray1[0]; ConnectionSettingBase connectionSettingBase = (ConnectionSettingBase) objArray1[1]; object[] objArray2 = new object[4] { (object) fs, (object) connectionSettingBase, RuntimeHelpers.GetObjectValue(objArray1[2]), (object) null }; e.Cancel = false; e.Result = (object) objArray2; Uri targetUri = connectionSettingBase.TargetUri; if ((object) targetUri == null) return; List uriList = new List(); uriList.Add(UriUtil.CombineName(targetUri, "favicon.ico")); Uri uri = UriUtil.CombineName(new Uri(UriUtil.GetAuthority(targetUri)), "favicon.ico"); if (!uriList.Contains(uri)) uriList.Add(uri); byte[] buffer = new byte[4097]; List.Enumerator enumerator = uriList.GetEnumerator(); try { while (enumerator.MoveNext()) { Uri current = enumerator.Current; try { using (Stream stream = this.pCache.OpenRead(fs, current)) { using (MemoryStream memoryStream = new MemoryStream()) { do { int count = stream.Read(buffer, 0, buffer.Length); if (count > 0) { memoryStream.Write(buffer, 0, count); int num=0; checked { num += count; } if (num >= this.pSetting.MaxFaviconSize) throw new Exception("Favicon too large"); } else goto label_13; } while (!backgroundWorker.CancellationPending); e.Cancel = true; break; label_13: memoryStream.Position = 0L; using (new Icon((Stream) memoryStream)) ; buffer = memoryStream.ToArray(); } } objArray2[3] = (object) buffer; break; } catch (RemoteResourceNotFoundException ex) { ProjectData.SetProjectError((Exception) ex); ProjectData.ClearProjectError(); } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; try { this.Invoke((Delegate) this.WriteLineLogHandler, (object) ex2.ToString()); } catch (Exception ex3) { ProjectData.SetProjectError(ex3); ProjectData.ClearProjectError(); } try { LogWriter.WriteException(ex2); } catch (Exception ex3) { ProjectData.SetProjectError(ex3); ProjectData.ClearProjectError(); } ProjectData.ClearProjectError(); } } } finally { enumerator.Dispose(); } } private void pFaviconDownloadWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.pFaviconDownloadWorker = (BackgroundWorker) null; if (e.Cancelled || e.Error != null) return; object[] result = (object[]) e.Result; FsBase fsBase = (FsBase) result[0]; ConnectionSettingBase cs = (ConnectionSettingBase) result[1]; bool flag = (bool) result[2]; byte[] array = (byte[]) result[3]; if (array != null) { try { Random random = new Random(); string path2 = cs.FaviconName; if (string.IsNullOrEmpty(path2)) path2 = DateTime.Now.ToString("yyyyMMddHHmmss") + random.Next(0, 10000).ToString("0000") + ".ico"; string faviconFolder = XmlSettingManager.FaviconFolder; if (!Directory.Exists(faviconFolder)) Directory.CreateDirectory(faviconFolder); string str = Path.Combine(faviconFolder, path2); using (FileStream fileStream = new FileStream(str, FileMode.Create)) fileStream.Write(array, 0, array.Length); using (Icon icon = new Icon(str, 16, 16)) icon.ToBitmap().Dispose(); cs.FaviconName = path2; this.SaveCurrentSetting(); this.UpdateFavicon(); } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; LogWriter.WriteMessage("Main Form", "Invalid favicon"); LogWriter.WriteException(ex2); ProjectData.ClearProjectError(); } } if (XmlSettingManager.IsPortable || flag) return; string arguments = cs.Name; if (arguments.Contains(" ") || arguments.Contains("\"")) arguments = "\"" + cs.Name + "\""; TaskbarManager.AddToRecent(MainForm.AppUserModelId, Application.ExecutablePath, arguments, cs.Name, cs.Name, MainForm.GetFaviconPath(cs), 0); } private void VersionCheck() { if (!this.pSetting.VersionCheckEnabled) return; this.pVersionChecker = new BackgroundWorker(); this.pVersionChecker.RunWorkerAsync(); } private void pVersionChecker_DoWork(object sender, DoWorkEventArgs e) { Assembly executingAssembly = Assembly.GetExecutingAssembly(); string product = ((AssemblyProductAttribute) executingAssembly.GetCustomAttributes(typeof (AssemblyProductAttribute), false)[0]).Product; string str = executingAssembly.GetName().Version.ToString(3); HttpWebRequest httpWebRequest = (HttpWebRequest) WebRequest.Create("http://rei.to/carotdav.version.txt"); httpWebRequest.Method = "GET"; httpWebRequest.UserAgent = product + "/" + str; httpWebRequest.ConnectionGroupName = "VersionChecker"; try { string end; using (HttpWebResponse response = (HttpWebResponse) httpWebRequest.GetResponse()) { using (StreamReader streamReader = new StreamReader(response.GetResponseStream())) end = streamReader.ReadToEnd(); } e.Result = (object) new Version(end); } catch (Exception ex) { ProjectData.SetProjectError(ex); e.Result = (object) null; ProjectData.ClearProjectError(); } } private void pVersionChecker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { Version result = e.Result as Version; if ((object) result == null) return; Assembly executingAssembly = Assembly.GetExecutingAssembly(); if (!(result > executingAssembly.GetName().Version)) return; this.NewVersionToolStripMenuItem.Text = "Version " + result.ToString() + " Available"; this.NewVersionToolStripMenuItem.Visible = true; } private void Disconnect() { this.InnerDisconnect(); this.Text = Application.ProductName; this.UpdateFavicon(); this.ShowConnectionSettings((ConnectionSettingBase) null, (ConnectionSettingBase) null); this.UpdateWindow(); } private void InnerDisconnect() { this.Fs_Reset(); this.pFs = (FsBase) null; this.pCurrentResourceInfos = (ResourceInfo[]) null; this.pCache.RegisterWatchUri((Uri) null); this.pCache.Clear(); this.pUriHistory.Clear(); this.pCurrentHistoryNode = (LinkedListNode) null; if (this.pCurrentConnectionSetting != null) this.pCurrentConnectionSetting.Reset(); this.pCurrentConnectionSetting = (ConnectionSettingBase) null; this.pIsTemporaryConnection = false; this.UriToolStripTextBox.Text = string.Empty; } private bool TryDisconnectOLE() { return OleStream.OpenCount == 0 || (OleStream.OpenCount == 0 || MessageBox.Show("Data transfer via DragDrop or Clipboard is in progress. Close forcibly?", "Close", MessageBoxButtons.OKCancel) == DialogResult.OK); } private bool ShowEntriesByUri(Uri targeturi, bool enablecache) { this.pCache.RegisterWatchUri((Uri) null); return this.InnerShowEntries(this.Fs_GetInfoAndInnerEntries(targeturi, (ResourceId) null, (ResourceId) null, enablecache)); } private bool ShowEntriesById(ResourceId id, bool enablecache) { this.pCache.RegisterWatchUri((Uri) null); return this.InnerShowEntries(this.Fs_GetInfoAndInnerEntries((Uri) null, id, (ResourceId) null, enablecache)); } private bool ShowEntriesByParent(ResourceId id, bool enablecache) { this.pCache.RegisterWatchUri((Uri) null); return this.InnerShowEntries(this.Fs_GetInfoAndInnerEntries((Uri) null, (ResourceId) null, id, enablecache)); } private bool InnerShowEntries(ResourceInfo[] ris) { if (ris == null) return false; this.pCurrentResourceInfos = ris; this.pCache.RegisterWatchUri(this.CurrentId.Uri); if (this.pCurrentHistoryNode == null) { this.pUriHistory.AddLast(this.CurrentId); this.pCurrentHistoryNode = this.pUriHistory.First; } else if (!(this.pCurrentHistoryNode.Value == this.CurrentId)) { while (this.pUriHistory.Last != this.pCurrentHistoryNode) this.pUriHistory.RemoveLast(); this.pCurrentHistoryNode = this.pUriHistory.AddLast(this.CurrentId); } this.UriToolStripTextBox.Text = this.CurrentId.ToString(); this.UpdateResourceListViewItem(ris); this.UpdateWindow(); this.ResourceListView.Focus(); return true; } private void RefreshResourceListView_All() { this.UpdateResourceListViewItem(this.CurrentResourceInfos); } private void UpdateResourceListViewItem(ResourceInfo[] ris) { List uriList = new List(); int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index1 = num1; while (index1 <= num2) { ResourceInfo tag = this.ResourceListView.SelectedItems[index1].Tag as ResourceInfo; if (tag != null) uriList.Add(tag.Id.Uri); checked { ++index1; } } Uri uri = (Uri) null; if (this.ResourceListView.FocusedItem != null) { ResourceInfo tag = this.ResourceListView.FocusedItem.Tag as ResourceInfo; if (tag != null) uri = tag.Id.Uri; } ListViewItem listViewItem = (ListViewItem) null; this.ResourceListView.BeginUpdate(); this.ResourceListView.Items.Clear(); int num3 = 0; int num4 = checked (ris.Length - 1); int index2 = num3; while (index2 <= num4) { if (!(ris[index2].Id == ris[0].Id) || !ris[index2].IsCollection) { ListViewItem itemFromResource = MainForm.CreateListItemFromResource(ris[index2]); if (uriList.Contains(ris[index2].Id.Uri)) itemFromResource.Selected = true; if (ris[index2].Id.Uri == uri) listViewItem = itemFromResource; this.ResourceListView.Items.Add(itemFromResource); this.ResourceListView.SetTileVisibleColumn(itemFromResource.Index, new int[2] { 3, 4 }); if (ris[index2].IsEncrypted) WallMarkListView.ListViewOverlay(itemFromResource, 1U); } checked { ++index2; } } this.UpdateResourceListViewGroup(); this.UpdateResourceListViewView(); this.ResourceListView.FocusedItem = listViewItem; this.ResourceListView.EndUpdate(); } private static ListViewItem CreateListItemFromResource(ResourceInfo ri) { ListViewItem listViewItem = new ListViewItem(); listViewItem.Tag = (object) ri; listViewItem.Text = UriUtil.GetLastName(ri.Id.Uri); listViewItem.SubItems.Add(ri.Id.Uri.AbsolutePath); listViewItem.ToolTipText = ri.Id.Uri.AbsolutePath; listViewItem.SubItems.Add(ri.StatusDescription); if (ri.Size >= 0L) listViewItem.SubItems.Add(ri.Size.ToString("#,0")); else listViewItem.SubItems.Add("?"); listViewItem.SubItems.Add(ri.LastModifiedTime.ToString()); listViewItem.SubItems.Add(ri.CreationTime.ToString()); if (ri.IsSplitted) listViewItem.ForeColor = MainForm.SplitColor; if (ri.IsEncrypted) listViewItem.ForeColor = MainForm.EncryptedColor; if (ri.IsMinor) listViewItem.ForeColor = MainForm.MinorColor; listViewItem.ImageKey = !ri.HasError ? (!ri.IsCollection ? (!ri.IsSplitted ? "Resource" : "Split Resource") : "Collection") : "Error"; return listViewItem; } private void UpdateResourceListViewGroup() { this.GroupNoneToolStripMenuItem.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.None; this.GroupNameToolStripMenuItem.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.Name; this.GroupSizeToolStripMenuItem.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.Size; this.GroupTypeToolStripMenuItem.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.Type; this.GroupNoneToolStripMenuItem1.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.None; this.GroupNameToolStripMenuItem1.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.Name; this.GroupSizeToolStripMenuItem1.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.Size; this.GroupTypeToolStripMenuItem1.Checked = this.pSetting.Group == WebDAVClientSetting.GroupType.Type; if (this.pSetting.Group == WebDAVClientSetting.GroupType.None || !OSFeature.Feature.IsPresent(RuntimeHelpers.GetObjectValue(OSFeature.Themes))) { this.ResourceListView.ShowGroups = false; this.ResourceListView.Groups.Clear(); } else { this.ResourceListView.Groups.Clear(); this.ResourceListView.ShowGroups = true; List listViewGroupList = new List(); Dictionary dictionary1 = new Dictionary(); switch (this.pSetting.Group) { case WebDAVClientSetting.GroupType.Name: int num1 = 0; int num2 = checked (MainForm.pNameGroupList.Length - 1); int index1 = num1; while (index1 <= num2) { listViewGroupList.Add(new ListViewGroup(MainForm.pNameGroupList[index1], "")); checked { ++index1; } } try { foreach (ListViewItem key in this.ResourceListView.Items) { ListViewGroup listViewGroup; if (Operators.CompareString(key.Text, "", false) == 0) { listViewGroup = listViewGroupList[4]; } else { switch (char.ToUpper(key.Text[0])) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': listViewGroup = listViewGroupList[0]; break; case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': listViewGroup = listViewGroupList[1]; break; case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': listViewGroup = listViewGroupList[2]; break; case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': listViewGroup = listViewGroupList[3]; break; default: listViewGroup = listViewGroupList[4]; break; } } dictionary1.Add(key, listViewGroup); } break; } finally { //IEnumerator enumerator; //if (enumerator is IDisposable) // (enumerator as IDisposable).Dispose(); } case WebDAVClientSetting.GroupType.Type: if (this.IsConnected) { List stringList = new List(); try { foreach (ListViewItem listViewItem in this.ResourceListView.Items) { string str = string.Join("/", ((ResourceInfo) listViewItem.Tag).Types.ToArray()); if (!stringList.Contains(str)) stringList.Add(str); } } finally { //IEnumerator enumerator; //if (enumerator is IDisposable) // (enumerator as IDisposable).Dispose(); } stringList.Sort(); Dictionary dictionary2 = new Dictionary(); List.Enumerator enumerator1 = stringList.GetEnumerator(); try { while (enumerator1.MoveNext()) { string current = enumerator1.Current; ListViewGroup listViewGroup = new ListViewGroup(current, ""); listViewGroupList.Add(listViewGroup); dictionary2.Add(current, listViewGroup); } } finally { enumerator1.Dispose(); } try { foreach (ListViewItem key in this.ResourceListView.Items) dictionary1.Add(key, dictionary2[string.Join("/", ((ResourceInfo) key.Tag).Types.ToArray())]); break; } finally { //IEnumerator enumerator2; //if (enumerator2 is IDisposable) // (enumerator2 as IDisposable).Dispose(); } } else { List stringList = new List(); Dictionary dictionary2 = new Dictionary(); try { foreach (ListViewItem key in this.ResourceListView.Items) { ConnectionSettingBase tag = (ConnectionSettingBase) key.Tag; string str = ""; PropertyInfo property = tag.GetType().GetProperty("TypeName", BindingFlags.Static | BindingFlags.Public, (Binder) null, typeof (string), new System.Type[0], (ParameterModifier[]) null); if (property != null) str = (string) property.GetValue((object) null, (object[]) null); if (!stringList.Contains(str)) stringList.Add(str); dictionary2.Add(key, str); } } finally { // IEnumerator enumerator; // if (enumerator is IDisposable) // (enumerator as IDisposable).Dispose(); } stringList.Sort(); Dictionary dictionary3 = new Dictionary(); List.Enumerator enumerator1 = stringList.GetEnumerator(); try { while (enumerator1.MoveNext()) { string current = enumerator1.Current; ListViewGroup listViewGroup = new ListViewGroup(current, ""); listViewGroupList.Add(listViewGroup); dictionary3.Add(current, listViewGroup); } } finally { enumerator1.Dispose(); } try { foreach (ListViewItem key in this.ResourceListView.Items) dictionary1.Add(key, dictionary3[dictionary2[key]]); break; } finally { //IEnumerator enumerator2; //if (enumerator2 is IDisposable) // (enumerator2 as IDisposable).Dispose(); } } case WebDAVClientSetting.GroupType.Size: int num3 = 0; int num4 = checked (MainForm.pSizeGroupList.Length - 1); int index2 = num3; while (index2 <= num4) { listViewGroupList.Add(new ListViewGroup(MainForm.pSizeGroupList[index2], "")); checked { ++index2; } } try { foreach (ListViewItem key in this.ResourceListView.Items) { ListViewGroup listViewGroup1 = listViewGroupList[0]; ResourceInfo tag = key.Tag as ResourceInfo; ListViewGroup listViewGroup2; if (tag != null) { long size = tag.Size; listViewGroup2 = size >= 10240L ? (size >= 102400L ? (size >= 1048576L ? (size >= 16777216L ? (size >= 134217728L ? listViewGroupList[5] : listViewGroupList[4]) : listViewGroupList[3]) : listViewGroupList[2]) : listViewGroupList[1]) : listViewGroupList[0]; } else listViewGroup2 = listViewGroupList[6]; dictionary1.Add(key, listViewGroup2); } break; } finally { //IEnumerator enumerator; //if (enumerator is IDisposable) // (enumerator as IDisposable).Dispose(); } } Dictionary dictionary4 = new Dictionary(); List.Enumerator enumerator3 = listViewGroupList.GetEnumerator(); try { while (enumerator3.MoveNext()) { ListViewGroup current = enumerator3.Current; dictionary4.Add(current, 0); } } finally { enumerator3.Dispose(); } try { foreach (ListViewItem index3 in this.ResourceListView.Items) { Dictionary dictionary2 = dictionary4; Dictionary dictionary3 = dictionary2; ListViewGroup index4 = dictionary1[index3]; ListViewGroup index5 = index4; int num5 = checked (dictionary2[index4] + 1); dictionary3[index5] = num5; } } finally { //IEnumerator enumerator1; //if (enumerator1 is IDisposable) // (enumerator1 as IDisposable).Dispose(); } List.Enumerator enumerator4 = listViewGroupList.GetEnumerator(); try { while (enumerator4.MoveNext()) { ListViewGroup current = enumerator4.Current; int num5; if (Operators.CompareString(current.Name, "", false) == 0) { ListViewGroup listViewGroup = current; string str1 = "None"; num5 = dictionary4[current]; string str2 = num5.ToString(" (0)"); string str3 = str1 + str2; listViewGroup.Header = str3; } else { ListViewGroup listViewGroup = current; string name = current.Name; num5 = dictionary4[current]; string str1 = num5.ToString(" (0)"); string str2 = name + str1; listViewGroup.Header = str2; } } } finally { enumerator4.Dispose(); } this.ResourceListView.Groups.AddRange(listViewGroupList.ToArray()); try { foreach (ListViewItem index3 in this.ResourceListView.Items) dictionary1[index3].Items.Add(index3); } finally { //IEnumerator enumerator1; //if (enumerator1 is IDisposable) // (enumerator1 as IDisposable).Dispose(); } } } private void UpdateResourceListViewView() { this.LargeIconToolStripMenuItem.Checked = this.pSetting.View == View.LargeIcon; this.SmallIconToolStripMenuItem.Checked = this.pSetting.View == View.SmallIcon; this.ListToolStripMenuItem.Checked = this.pSetting.View == View.List; this.TileToolStripMenuItem.Checked = this.pSetting.View == View.Tile; this.DetailToolStripMenuItem.Checked = this.pSetting.View == View.Details; this.AutoColumnWidthToolStripMenuItem.Enabled = this.pSetting.View == View.Details; this.AutoColumnWidthToolStripMenuItem.Checked = this.pSetting.AutoColumnWidth; this.LargeIconToolStripMenuItem1.Checked = this.pSetting.View == View.LargeIcon; this.SmallIconToolStripMenuItem1.Checked = this.pSetting.View == View.SmallIcon; this.ListToolStripMenuItem1.Checked = this.pSetting.View == View.List; this.TileToolStripMenuItem1.Checked = this.pSetting.View == View.Tile; this.DetailToolStripMenuItem1.Checked = this.pSetting.View == View.Details; this.AutoColumnWidthToolStripMenuItem1.Enabled = this.pSetting.View == View.Details; this.AutoColumnWidthToolStripMenuItem1.Checked = this.pSetting.AutoColumnWidth; this.LargeIconToolStripMenuItem2.Checked = this.pSetting.View == View.LargeIcon; this.SmallIconToolStripMenuItem2.Checked = this.pSetting.View == View.SmallIcon; this.ListToolStripMenuItem2.Checked = this.pSetting.View == View.List; this.TileToolStripMenuItem2.Checked = this.pSetting.View == View.Tile; this.DetailToolStripMenuItem2.Checked = this.pSetting.View == View.Details; this.AutoColumnWidthToolStripMenuItem2.Enabled = this.pSetting.View == View.Details; this.AutoColumnWidthToolStripMenuItem2.Checked = this.pSetting.AutoColumnWidth; bool flag = OSFeature.Feature.IsPresent(RuntimeHelpers.GetObjectValue(OSFeature.Themes)); this.GroupNoneToolStripMenuItem.Enabled = this.pSetting.View != View.List && flag; this.GroupNameToolStripMenuItem.Enabled = this.pSetting.View != View.List && flag; this.GroupSizeToolStripMenuItem.Enabled = this.pSetting.View != View.List && flag; this.GroupTypeToolStripMenuItem.Enabled = this.pSetting.View != View.List && flag; this.GroupToolStripMenuItem.Enabled = this.pSetting.View != View.List && flag; this.GroupNoneToolStripMenuItem1.Enabled = this.pSetting.View != View.List && flag; this.GroupNameToolStripMenuItem1.Enabled = this.pSetting.View != View.List && flag; this.GroupSizeToolStripMenuItem1.Enabled = this.pSetting.View != View.List && flag; this.GroupTypeToolStripMenuItem1.Enabled = this.pSetting.View != View.List && flag; this.GroupToolStripMenuItem.Enabled = this.pSetting.View != View.List && flag; switch (this.pSetting.View) { case View.LargeIcon: this.ResourceListView.View = this.pSetting.View; this.ResourceListView.ArrangeIcons(ListViewAlignment.Top); break; case View.Details: this.ResourceListView.View = this.pSetting.View; this.ResourceListView.Columns[0].Width = this.pSetting.ColumnWidth[0]; if (!this.pSetting.AutoColumnWidth || this.ResourceListView.Items.Count <= 0) break; this.ResourceListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); break; case View.SmallIcon: this.ResourceListView.View = this.pSetting.View; int num1 = 100; int num2 = 0; int num3 = checked (this.ResourceListView.Items.Count - 1); int index = num2; while (index <= num3) { if (this.ResourceListView.Items[index].Bounds.Width > num1) num1 = this.ResourceListView.Items[index].Bounds.Width; checked { ++index; } } if (num1 > 400) num1 = 400; this.ResourceListView.Columns[0].Width = num1; this.ResourceListView.ArrangeIcons(); break; case View.List: this.ResourceListView.View = this.pSetting.View; if (this.ResourceListView.Columns[0].Width < 200) this.ResourceListView.Columns[0].Width = 200; this.ResourceListView.ArrangeIcons(); break; case View.Tile: this.ResourceListView.View = this.pSetting.View; break; } } private void ShowConnectionSettings(ConnectionSettingBase newsetting = null, ConnectionSettingBase oldsetting = null) { this.UpdateImageList(); this.ResourceListView.BeginUpdate(); if (newsetting == null) this.ResourceListView.Items.Clear(); else this.ResourceListView.SelectedItems.Clear(); int num1 = 0; int num2 = checked (this.pSetting.ConnectionSettings.Count - 1); int index1 = num1; while (index1 <= num2) { if ((newsetting == null || this.pSetting.ConnectionSettings[index1] == newsetting) && this.pSetting.ConnectionSettings[index1].GetType() != typeof (ConnectionSettingBase)) { ListViewItem listitem = new ListViewItem(); listitem.Tag = (object) this.pSetting.ConnectionSettings[index1]; listitem.Text = this.pSetting.ConnectionSettings[index1].Name; listitem.SubItems.Add(this.pSetting.ConnectionSettings[index1].TargetUri.ToString()); listitem.SubItems.Add(""); listitem.SubItems.Add(""); listitem.SubItems.Add(""); listitem.ImageIndex = checked (index1 + 8); if (this.pSetting.ConnectionSettings[index1].AutoSplit) listitem.ForeColor = MainForm.SplitColor; if (this.pSetting.ConnectionSettings[index1].UseEncryption) listitem.ForeColor = MainForm.EncryptedColor; if (oldsetting == null) { this.ResourceListView.Items.Add(listitem); } else { int num3 = 0; int num4 = checked (this.ResourceListView.Items.Count - 1); int index2 = num3; while (index2 <= num4) { if (this.ResourceListView.Items[index2].Tag == oldsetting) { this.ResourceListView.Items[index2] = listitem; break; } checked { ++index2; } } } this.ResourceListView.SetTileVisibleColumn(listitem.Index, new int[1] { 1 }); if (this.pSetting.ConnectionSettings[index1].SecureType == SecureType.None) WallMarkListView.ListViewOverlay(listitem, 2U); else if (this.pSetting.ConnectionSettings[index1].SecureType != SecureType.Secure && this.pSetting.ConnectionSettings[index1].SecureType == SecureType.Warning) WallMarkListView.ListViewOverlay(listitem, 2U); if (newsetting != null) { listitem.Focused = true; listitem.Selected = true; } } checked { ++index1; } } this.UpdateResourceListViewGroup(); this.UpdateResourceListViewView(); if (this.ResourceListView.SelectedIndices.Count > 0) this.ResourceListView.EnsureVisible(this.ResourceListView.SelectedIndices[0]); this.ResourceListView.EndUpdate(); this.UpdateWindow(); } private void InitImageList() { using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Collection, this.LargeImageList.ImageSize)) this.LargeImageList.Images.Add("Collection", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Document, this.LargeImageList.ImageSize)) this.LargeImageList.Images.Add("Resource", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Document_Split, this.LargeImageList.ImageSize)) this.LargeImageList.Images.Add("Split Resource", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources._Error, this.LargeImageList.ImageSize)) this.LargeImageList.Images.Add("Error", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Security_Overlay, this.LargeImageList.ImageSize)) this.LargeImageList.Images.Add("Security Overlay", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Warning_Overlay, this.LargeImageList.ImageSize)) this.LargeImageList.Images.Add("Warning Overlay", (Image) icon.ToBitmap()); this.LargeImageList.Images.Add((Image) new Bitmap(this.LargeImageList.ImageSize.Width, this.LargeImageList.ImageSize.Height)); this.LargeImageList.Images.Add((Image) new Bitmap(this.LargeImageList.ImageSize.Width, this.LargeImageList.ImageSize.Height)); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Collection, this.SmallImageList.ImageSize)) this.SmallImageList.Images.Add("Collection", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Document, this.SmallImageList.ImageSize)) this.SmallImageList.Images.Add("Resource", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Document_Split, this.SmallImageList.ImageSize)) this.SmallImageList.Images.Add("Split Resource", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources._Error, this.SmallImageList.ImageSize)) this.SmallImageList.Images.Add("Error", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Security_Overlay, this.SmallImageList.ImageSize)) this.SmallImageList.Images.Add("Security Overlay", (Image) icon.ToBitmap()); using (Icon icon = new Icon(CarotDAV.My.Resources.Resources.Warning_Overlay, this.SmallImageList.ImageSize)) this.SmallImageList.Images.Add("Warning Overlay", (Image) icon.ToBitmap()); ImageList.ImageCollection images1 = this.SmallImageList.Images; int width1 = this.SmallImageList.ImageSize.Width; Size imageSize = this.SmallImageList.ImageSize; int height1 = imageSize.Height; Bitmap bitmap1 = new Bitmap(width1, height1); images1.Add((Image) bitmap1); ImageList.ImageCollection images2 = this.SmallImageList.Images; int width2 = this.SmallImageList.ImageSize.Width; imageSize = this.SmallImageList.ImageSize; int height2 = imageSize.Height; Bitmap bitmap2 = new Bitmap(width2, height2); images2.Add((Image) bitmap2); WallMarkListView.SetOverlayIcon(this.LargeImageList, 4, 1); WallMarkListView.SetOverlayIcon(this.LargeImageList, 5, 2); WallMarkListView.SetOverlayIcon(this.SmallImageList, 4, 1); WallMarkListView.SetOverlayIcon(this.SmallImageList, 5, 2); } private void UpdateImageList() { while (this.LargeImageList.Images.Count > 8) { Image image = this.LargeImageList.Images[checked (this.LargeImageList.Images.Count - 1)]; this.LargeImageList.Images.RemoveAt(checked (this.LargeImageList.Images.Count - 1)); image.Dispose(); } while (this.SmallImageList.Images.Count > 8) { Image image = this.SmallImageList.Images[checked (this.SmallImageList.Images.Count - 1)]; this.SmallImageList.Images.RemoveAt(checked (this.SmallImageList.Images.Count - 1)); image.Dispose(); } int num1 = 0; int num2 = checked (this.pSetting.ConnectionSettings.Count - 1); int index = num1; while (index <= num2) { using (Icon favicon = MainForm.GetFavicon(this.pSetting.ConnectionSettings[index])) { using (Icon icon = new Icon(favicon, this.LargeImageList.ImageSize)) this.LargeImageList.Images.Add(index.ToString(), (Image) icon.ToBitmap()); using (Icon icon = new Icon(favicon, this.SmallImageList.ImageSize)) this.SmallImageList.Images.Add(index.ToString(), (Image) icon.ToBitmap()); } checked { ++index; } } } private void Cache_RemoteResourceChanged(object sender, ResourceChangedEventArgs e) { if (this.InvokeRequired) { this.BeginInvoke((Delegate) this.RemoteResourceChangedHandler, RuntimeHelpers.GetObjectValue(sender), (object) e); } else { try { ResourceInfo ri = e.ReturnedInfo as ResourceInfo; ResourceId id = e.ReturnedInfo as ResourceId; if (ri == null) { ri = new ResourceInfo(id, UriUtil.EndWithSlash(id.Uri), -1L, DateTime.Now); AutoSplitFs.SplitId splitId = id as AutoSplitFs.SplitId; EncryptFs.EncryptId encryptId; if (splitId != null) { encryptId = splitId.BaseId as EncryptFs.EncryptId; ri.IsSplitted = true; } else encryptId = id as EncryptFs.EncryptId; if (encryptId != null) ri.IsEncrypted = encryptId.Encrypted; ri.CanCopy = (this.pFs.Ability & FsAbility.Copy) != FsAbility.None; ri.CanDelete = (this.pFs.Ability & FsAbility.Delete) != FsAbility.None; ri.CanMove = (this.pFs.Ability & FsAbility.Move) != FsAbility.None; ri.CanRename = (this.pFs.Ability & FsAbility.Rename) != FsAbility.None; ri.CanSetInfo = (this.pFs.Ability & FsAbility.Property) != FsAbility.None; } else id = ri.Id; if (!UriUtil.IsChild(this.CurrentId.Uri, id.Uri)) return; switch (e.Type) { case ResourceChangedEventArgs.ChangeType.Create: int num1 = 0; int num2 = checked (this.ResourceListView.Items.Count - 1); int index1 = num1; while (index1 <= num2) { if (((ResourceInfo) this.ResourceListView.Items[index1].Tag).Id.Uri == id.Uri) { this.ResourceListView.Items.RemoveAt(index1); break; } checked { ++index1; } } ListViewItem itemFromResource1 = MainForm.CreateListItemFromResource(ri); this.ResourceListView.BeginUpdate(); this.ResourceListView.Items.Add(itemFromResource1); this.ResourceListView.SetTileVisibleColumn(itemFromResource1.Index, new int[2] { 3, 4 }); if (ri.IsEncrypted) WallMarkListView.ListViewOverlay(itemFromResource1, 1U); this.UpdateResourceListViewGroup(); this.ResourceListView.EndUpdate(); break; case ResourceChangedEventArgs.ChangeType.Delete: int num3 = 0; int num4 = checked (this.ResourceListView.Items.Count - 1); int index2 = num3; while (index2 <= num4) { if (((ResourceInfo) this.ResourceListView.Items[index2].Tag).Id.Uri == id.Uri) { this.ResourceListView.Items.RemoveAt(index2); break; } checked { ++index2; } } break; case ResourceChangedEventArgs.ChangeType.PropertyUpdate: int num5 = 0; int num6 = checked (this.ResourceListView.Items.Count - 1); int index3 = num5; while (index3 <= num6) { if (((ResourceInfo) this.ResourceListView.Items[index3].Tag).Id.Uri == id.Uri) { bool selected = this.ResourceListView.Items[index3].Selected; ListViewItem itemFromResource2 = MainForm.CreateListItemFromResource(ri); this.ResourceListView.BeginUpdate(); this.ResourceListView.Items[index3] = itemFromResource2; this.ResourceListView.Items[index3].Selected = selected; this.ResourceListView.SetTileVisibleColumn(itemFromResource2.Index, new int[2] { 3, 4 }); if (ri.IsEncrypted) WallMarkListView.ListViewOverlay(itemFromResource2, 1U); this.UpdateResourceListViewGroup(); this.ResourceListView.EndUpdate(); break; } checked { ++index3; } } break; } } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } } } private void GoToParentResource() { if (!this.IsConnected) return; this.ShowEntriesByParent(this.CurrentId, true); } private void OpenResource() { if (this.ResourceListView.SelectedIndices.Count != 1) return; int selectedIndex = this.ResourceListView.SelectedIndices[0]; ResourceInfo tag1 = this.ResourceListView.Items[selectedIndex].Tag as ResourceInfo; if (tag1 != null) { if (!tag1.IsCollection) return; this.ShowEntriesById(tag1.Id, true); } else { ConnectionSettingBase tag2 = this.ResourceListView.Items[selectedIndex].Tag as ConnectionSettingBase; if (tag2 == null) return; this.Connect(tag2, false); } } private void OpenUploadFolderDialog() { if (!this.IsConnected) return; this.FolderBrowserDialog1.ShowNewFolderButton = false; this.FolderBrowserDialog1.Description = "Select a folder from which files will be uploaded."; if (this.FolderBrowserDialog1.ShowDialog((IWin32Window) this) != DialogResult.OK) return; this.Upload(new string[1] { this.FolderBrowserDialog1.SelectedPath }, this.CurrentId, (IDataObject) null, DragDropEffects.None); } private void OpenUploadDialog() { if (!this.IsConnected) return; this.OpenFileDialog1.Title = "Select Upload Files"; this.OpenFileDialog1.Multiselect = true; this.OpenFileDialog1.SupportMultiDottedExtensions = true; this.OpenFileDialog1.Filter = "All Files (*.*)|*.*"; if (this.OpenFileDialog1.ShowDialog((IWin32Window) this) != DialogResult.OK) return; this.Upload(this.OpenFileDialog1.FileNames, this.CurrentId, (IDataObject) null, DragDropEffects.None); } private void OpenDownloadDialog() { if (!this.IsConnected || this.ResourceListView.SelectedIndices.Count < 1) return; this.FolderBrowserDialog1.ShowNewFolderButton = true; this.FolderBrowserDialog1.Description = "Select a folder to which files will be downloaded."; if (this.FolderBrowserDialog1.ShowDialog((IWin32Window) this) != DialogResult.OK) return; ResourceId[] remoteids = new ResourceId[checked (this.ResourceListView.SelectedItems.Count - 1 + 1)]; int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index = num1; while (index <= num2) { remoteids[index] = ((ResourceInfo) this.ResourceListView.SelectedItems[index].Tag).Id; checked { ++index; } } this.Download(remoteids, this.FolderBrowserDialog1.SelectedPath); } private void OpenPropertyDialog() { if (this.IsConnected) { if (this.ResourceListView.SelectedItems.Count != 1) return; this.ShowPropertyForm((ResourceInfo) this.ResourceListView.SelectedItems[0].Tag); } else { if (this.ResourceListView.SelectedIndices.Count != 1) return; this.ShowConnectionSettingForm((ConnectionSettingBase) this.ResourceListView.SelectedItems[0].Tag); } } private void ShowConnectionSettingForm(ConnectionSettingBase csb) { using (Form settingForm = csb.GetSettingForm()) { settingForm.Tag = (object) csb; label_2: if (settingForm.ShowDialog() != DialogResult.OK) return; ConnectionSettingBase tag = (ConnectionSettingBase) settingForm.Tag; int index1 = -1; int num1 = 0; int num2 = checked (this.pSetting.ConnectionSettings.Count - 1); int index2 = num1; while (index2 <= num2) { if (this.pSetting.ConnectionSettings[index2] == csb) index1 = index2; else if (Operators.CompareString(this.pSetting.ConnectionSettings[index2].Name, tag.Name, false) == 0) { int num3 = (int) MessageBox.Show("Setting name is conflicted. Use other name."); goto label_2; } checked { ++index2; } } if (index1 < 0) { csb = (ConnectionSettingBase) null; this.pSetting.ConnectionSettings.Add(tag); } else this.pSetting.ConnectionSettings[index1] = tag; this.SaveCurrentSetting(); this.ShowConnectionSettings(tag, csb); } } private void DeleteResources() { if (this.ResourceListView.SelectedIndices.Count < 1) return; if (this.IsConnected) { if (MessageBox.Show("Selected resources will be deleted.", "Delete Confirm", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2) != DialogResult.OK) return; ResourceId[] resourceIdArray = new ResourceId[checked (this.ResourceListView.SelectedItems.Count - 1 + 1)]; ListViewItem[] listViewItemArray = new ListViewItem[checked (this.ResourceListView.SelectedItems.Count - 1 + 1)]; int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index1 = num1; while (index1 <= num2) { resourceIdArray[index1] = ((ResourceInfo) this.ResourceListView.SelectedItems[index1].Tag).Id; checked { ++index1; } } this.ResourceListView.SelectedItems.CopyTo((Array) listViewItemArray, 0); ConflictPromptManager cm = new ConflictPromptManager(); ErrorPromptManager em = new ErrorPromptManager(); int num3 = 0; int num4 = checked (resourceIdArray.Length - 1); int index2 = num3; while (index2 <= num4 && this.Fs_Delete(resourceIdArray[index2], cm, em)) checked { ++index2; } } else { if (MessageBox.Show("Selected connection setting will be deleted", "Delete Confirm", MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2) != DialogResult.OK) return; while (this.ResourceListView.SelectedIndices.Count > 0) { ListViewItem selectedItem = this.ResourceListView.SelectedItems[0]; ConnectionSettingBase tag = selectedItem.Tag as ConnectionSettingBase; if (tag != null) { try { string faviconName = tag.FaviconName; if (!string.IsNullOrEmpty(faviconName)) System.IO.File.Delete(Path.Combine(XmlSettingManager.FaviconFolder, faviconName)); } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } int num1 = 0; int num2 = checked (this.pSetting.ConnectionSettings.Count - 1); int index = num1; while (index <= num2) { if (this.pSetting.ConnectionSettings[index] == tag) { this.pSetting.ConnectionSettings.RemoveAt(index); break; } checked { ++index; } } } this.ResourceListView.Items.Remove(selectedItem); } this.SaveCurrentSetting(); } } private void CreateCollection() { if (!this.IsConnected) return; string name; using (NewFolderForm newFolderForm = new NewFolderForm()) { if (newFolderForm.ShowDialog((IWin32Window) this) != DialogResult.OK) return; name = newFolderForm.NewFolderName; } if (this.CurrentConnectionSetting.UploadFilenameNormalization != UCSNormalization.None) name = name.Normalize((NormalizationForm) this.CurrentConnectionSetting.UploadFilenameNormalization); this.Fs_CreateCollection(this.CurrentId, name); } private void RefreshResourceListView() { if (this.IsConnected) this.ShowEntriesById(this.CurrentId, false); else this.ShowConnectionSettings((ConnectionSettingBase) null, (ConnectionSettingBase) null); } private void GoToHomeUri() { if (!this.IsConnected) return; this.ShowEntriesByUri(!this.IsTemporaryConnection ? this.CurrentConnectionSetting.TargetUri : new Uri(UriUtil.GetAuthority(this.CurrentId.Uri)), true); } private void GoToTextBoxUri() { Uri result = (Uri) null; if (!Uri.TryCreate(this.UriToolStripTextBox.Text, UriKind.Absolute, out result)) { int num = (int) MessageBox.Show("Enter valid URI.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); } else if (!this.IsConnected || Operators.CompareString(UriUtil.GetAuthority(result), UriUtil.GetAuthority(this.CurrentId.Uri), false) != 0) this.TemporaryConnect(result); else this.ShowEntriesByUri(result, false); } private void StartRename() { if (this.ResourceListView.SelectedItems.Count != 1) return; this.ResourceListView.SelectedItems[0].BeginEdit(); } private bool RenameResource(ListViewItem li, string newname) { if (this.IsConnected) { ResourceInfo tag = (ResourceInfo) li.Tag; if (this.CurrentConnectionSetting.UploadFilenameNormalization != UCSNormalization.None) newname = newname.Normalize((NormalizationForm) this.CurrentConnectionSetting.UploadFilenameNormalization); this.Fs_Rename(tag.Id, newname); return false; } ConnectionSettingBase tag1 = (ConnectionSettingBase) li.Tag; int num1 = 0; int num2 = checked (this.pSetting.ConnectionSettings.Count - 1); int index = num1; while (index <= num2) { if (this.pSetting.ConnectionSettings[index] != tag1 && Operators.CompareString(this.pSetting.ConnectionSettings[index].Name, newname, false) == 0) { int num3 = (int) MessageBox.Show("Cannot make Same name setting"); return false; } checked { ++index; } } tag1.Name = newname; this.SaveCurrentSetting(); return true; } private void Upload(string[] localfiles, ResourceId remotebaseid, IDataObject dobj, DragDropEffects finisheffect) { if (!this.IsConnected) return; this.GetUpDownForm(remotebaseid.Uri, UpDownForm.TransferDirectionType.Upload).Upload(localfiles, remotebaseid, dobj, finisheffect); } private void UploadDescriptors(VirtualFileInfo[] vfinfos, ResourceId remotebaseid, IDataObject dobj, DragDropEffects finisheffect) { this.GetUpDownForm(remotebaseid.Uri, UpDownForm.TransferDirectionType.Upload).UploadDescriptors(vfinfos, remotebaseid, dobj, finisheffect); } private void Download(ResourceId[] remoteids, string localdir) { if (!this.IsConnected) return; this.GetUpDownForm(remoteids[0].Uri, UpDownForm.TransferDirectionType.Download).Download(remoteids, localdir); } private void MainForm_Activated(object sender, EventArgs e) { this.UpdateClipBoard(); } private bool SaveCurrentSetting() { bool flag; while (true) { try { XmlSettingManager.SaveSetting(this.pSetting); break; } catch (Exception ex) { ProjectData.SetProjectError(ex); switch (MessageBox.Show("Error occurred during saving settings", "Error", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Hand)) { case DialogResult.Retry: ProjectData.ClearProjectError(); continue; case DialogResult.Abort: flag = false; ProjectData.ClearProjectError(); goto label_6; default: ProjectData.ClearProjectError(); goto label_5; } } } label_5: return true; label_6: return flag; } internal ResourceInfo Fs_GetInfo(ResourceId id, bool enablecache) { int retryminutes = 1; ResourceInfo info; ResourceInfo resourceInfo; while (true) { try { this.EnterWaitState(); info = this.pCache.GetInfo(this.pFs, id, enablecache); this.LeaveWaitState(); break; } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); ErrorPromptFormResult promptFormResult = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during retrieving properties.", id.ToString(), ex2, ErrorPromptType.RetryCancel, retryminutes); if (promptFormResult.Action == ErrorAction.Retry) ProjectData.ClearProjectError(); else if (promptFormResult.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); } else { resourceInfo = (ResourceInfo) null; ProjectData.ClearProjectError(); goto label_12; } } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return info; label_12: return resourceInfo; } internal ResourceInfo[] Fs_GetInfoAndInnerEntries(Uri uri, ResourceId id, ResourceId parentid, bool enablecache) { Uri target = (Uri) null; int retryminutes = 1; label_1: ResourceInfo[] resourceInfoArray1; ResourceInfo[] resourceInfoArray2; while (true) { try { this.EnterWaitState(); if ((object) uri != null) { target = uri; resourceInfoArray1 = this.pCache.GetInfoAndEntries(this.pFs, uri, enablecache); } else if ((object) id != null) { target = id.Uri; resourceInfoArray1 = this.pCache.GetInfoAndEntries(this.pFs, id, enablecache); } else { target = parentid.Uri; resourceInfoArray1 = this.pCache.GetParentInfoAndEntries(this.pFs, parentid, enablecache); } this.LeaveWaitState(); break; } catch (RemoteCertificateErrorException ex) { ProjectData.SetProjectError((Exception) ex); RemoteCertificateErrorException certificateErrorException = ex; this.LeaveWaitState(); this.WriteLineLog(certificateErrorException.ToString()); LogWriter.WriteException((Exception) certificateErrorException); this.pFs.ResetConnection(); switch (ServerCertErrorPromptForm.ShowDialog((IWin32Window) this, (string) null, certificateErrorException.Errors, target.ToString())) { case DialogResult.Retry: ProjectData.ClearProjectError(); continue; case DialogResult.Ignore: this.pFs.ConnectionSetting.CertErrorIgnores = certificateErrorException.Errors; ProjectData.ClearProjectError(); continue; default: resourceInfoArray2 = (ResourceInfo[]) null; ProjectData.ClearProjectError(); goto label_32; } } catch (UnauthorizedException ex1) { if (!ex1.CanRetry) throw; this.LeaveWaitState(); this.WriteLineLog(ex1.ToString()); LogWriter.WriteException((Exception) ex1); this.pFs.ResetConnection(); while (true) { try { if (this.CurrentConnectionSetting.DoAuthorization(target, !this.IsTemporaryConnection)) { ProjectData.ClearProjectError(); goto label_1; } else break; } catch (Exception ex2) { ProjectData.SetProjectError(ex2); ErrorPromptFormResult promptFormResult = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during authorizing.", target.ToString(), (Exception) ex1, ErrorPromptType.RetryCancel, retryminutes); if (promptFormResult.Action == ErrorAction.Retry) ProjectData.ClearProjectError(); else if (promptFormResult.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); goto label_1; } else { resourceInfoArray2 = (ResourceInfo[]) null; ProjectData.ClearProjectError(); goto label_32; } } } resourceInfoArray2 = (ResourceInfo[]) null; ProjectData.ClearProjectError(); goto label_32; } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); ErrorPromptFormResult promptFormResult = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during retrieving properties.", target.ToString(), ex2, ErrorPromptType.RetryCancel, retryminutes); if (promptFormResult.Action == ErrorAction.Retry) ProjectData.ClearProjectError(); else if (promptFormResult.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); } else { resourceInfoArray2 = (ResourceInfo[]) null; ProjectData.ClearProjectError(); goto label_32; } } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return resourceInfoArray1; label_32: return resourceInfoArray2; } internal bool Fs_CreateCollection(ResourceId parentid, string name) { int retryminutes = 1; bool flag; while (true) { try { this.pCache.CreateCollection(this.pFs, parentid, name); this.LeaveWaitState(); break; } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); ErrorPromptFormResult promptFormResult = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during creating collection.", UriUtil.CombineName(parentid.Uri, name).ToString(), ex2, ErrorPromptType.RetryCancel, retryminutes); if (promptFormResult.Action == ErrorAction.Retry) ProjectData.ClearProjectError(); else if (promptFormResult.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); } else { flag = false; ProjectData.ClearProjectError(); goto label_12; } } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return true; label_12: return flag; } internal bool Fs_Delete(ResourceId id, ConflictPromptManager cm, ErrorPromptManager em) { int retryminutes = 1; bool flag; while (true) { try { this.EnterWaitState(); this.pCache.Delete(this.pFs, id); this.LeaveWaitState(); break; } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); if (!em.IgnoreAll()) { ErrorPromptFormResult r = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during deleting resource.", id.ToString(), ex2, ErrorPromptType.IgnoreRetryCancel, retryminutes); this.Cursor = this.Cursor; em.RegisterAction(r); if (r.Action == ErrorAction.Retry) { ProjectData.ClearProjectError(); continue; } if (r.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); continue; } if (r.Action == ErrorAction.Cancel) { flag = false; ProjectData.ClearProjectError(); goto label_15; } } ProjectData.ClearProjectError(); break; } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return true; label_15: return flag; } internal bool Fs_Rename(ResourceId id, string newname) { int retryminutes = 1; bool flag; while (true) { try { this.EnterWaitState(); this.pCache.Move(this.pFs, id, (ResourceId) null, newname, false); this.LeaveWaitState(); break; } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); ErrorPromptFormResult promptFormResult = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during renaming resource.", id.ToString(), ex2, ErrorPromptType.RetryCancel, retryminutes); this.Cursor = this.Cursor; if (promptFormResult.Action == ErrorAction.Retry) ProjectData.ClearProjectError(); else if (promptFormResult.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); } else { if (promptFormResult.Action != ErrorAction.Cancel) throw new Exception(); flag = false; ProjectData.ClearProjectError(); goto label_14; } } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return true; label_14: return flag; } internal bool Fs_Move(ResourceId id, ResourceId destinationid, string newname, ConflictPromptManager cm, ErrorPromptManager em) { bool overwrite = false; int num = 0; int retryminutes = 1; bool flag; while (true) { try { try { this.EnterWaitState(); this.pCache.Move(this.pFs, id, destinationid, newname, overwrite); this.LeaveWaitState(); break; } catch (DestinationAlreadyExistsException ex1) { if (overwrite) throw; this.LeaveWaitState(); this.WriteLineLog(ex1.ToString()); LogWriter.WriteException((Exception) ex1); if (newname != null) { checked { ++num; } if (num < 20) { newname = UriUtil.CreateNextCopyName(newname); ProjectData.ClearProjectError(); continue; } } try { ResourceInfo ri = (ResourceInfo) null; ConflictAction action; if (cm.IsRegistered(ConflictType.Move)) { action = cm.GetAction(ConflictType.Move); if (action == ConflictAction.DeleteTarget) ri = (object) destinationid != null ? (newname != null ? this.pFs.GetInfo(destinationid, newname) : this.pFs.GetInfo(destinationid, UriUtil.GetLastName(id.Uri))) : this.pFs.GetInfo(UriUtil.CombineName(UriUtil.GetParent(id.Uri), newname)); } else { ResourceInfo info = this.pFs.GetInfo(id); ri = (object) destinationid != null ? (newname != null ? this.pFs.GetInfo(destinationid, newname) : this.pFs.GetInfo(destinationid, UriUtil.GetLastName(id.Uri))) : this.pFs.GetInfo(UriUtil.CombineName(UriUtil.GetParent(id.Uri), newname)); ConflictPromptFormResult r = ConflictPromptForm.ShowDialog((IWin32Window) this, new SimpleResourceInfo(info), new SimpleResourceInfo(ri), ConflictType.Move, false, this.pFs.Ability, retryminutes); this.Cursor = this.Cursor; cm.RegisterAction(r); action = r.Action; } if (action == ConflictAction.Retry) { ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.Overwrite) { overwrite = true; ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.CancelAll) { flag = false; ProjectData.ClearProjectError(); goto label_38; } else { if (action == ConflictAction.ChangeName) { newname = UriUtil.CreateNextCopyName(UriUtil.GetLastName(id.Uri)); ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.DeleteTarget) { this.pFs.Delete(ri.Id); ProjectData.ClearProjectError(); continue; } } } catch (Exception ex2) { ProjectData.SetProjectError(ex2); ProjectData.ClearProjectError(); } throw; } } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); if (!em.IgnoreAll()) { ErrorPromptFormResult r = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during moving resource.", id.ToString(), ex2, ErrorPromptType.RetryCancel, retryminutes); this.Cursor = this.Cursor; em.RegisterAction(r); if (r.Action == ErrorAction.Retry) { ProjectData.ClearProjectError(); continue; } if (r.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); continue; } if (r.Action == ErrorAction.Cancel) { flag = false; ProjectData.ClearProjectError(); goto label_38; } } ProjectData.ClearProjectError(); break; } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return true; label_38: return flag; } internal bool Fs_Copy(ResourceId id, ResourceId destinationid, string newname, ConflictPromptManager cm, ErrorPromptManager em) { bool overwrite = false; int num = 0; int retryminutes = 1; bool flag; while (true) { try { try { this.EnterWaitState(); this.pCache.Copy(this.pFs, id, destinationid, newname, overwrite); this.LeaveWaitState(); break; } catch (DestinationAlreadyExistsException ex1) { if (overwrite) throw; this.LeaveWaitState(); this.WriteLineLog(ex1.ToString()); LogWriter.WriteException((Exception) ex1); if (newname != null) { checked { ++num; } if (num < 20) { newname = UriUtil.CreateNextCopyName(newname); ProjectData.ClearProjectError(); continue; } } try { ResourceInfo ri = (ResourceInfo) null; ConflictAction action; if (cm.IsRegistered(ConflictType.Copy)) { action = cm.GetAction(ConflictType.Copy); if (action == ConflictAction.DeleteTarget) ri = (object) destinationid != null ? (newname != null ? this.pFs.GetInfo(destinationid, newname) : this.pFs.GetInfo(destinationid, UriUtil.GetLastName(id.Uri))) : this.pFs.GetInfo(UriUtil.CombineName(UriUtil.GetParent(id.Uri), newname)); } else { ResourceInfo info = this.pFs.GetInfo(id); ri = (object) destinationid != null ? (newname != null ? this.pFs.GetInfo(destinationid, newname) : this.pFs.GetInfo(destinationid, UriUtil.GetLastName(id.Uri))) : this.pFs.GetInfo(UriUtil.CombineName(UriUtil.GetParent(id.Uri), newname)); ConflictPromptFormResult r = ConflictPromptForm.ShowDialog((IWin32Window) this, new SimpleResourceInfo(info), new SimpleResourceInfo(ri), ConflictType.Copy, false, this.pFs.Ability, retryminutes); this.Cursor = this.Cursor; cm.RegisterAction(r); action = r.Action; } if (action == ConflictAction.Retry) { ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.Overwrite) { overwrite = true; ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.CancelAll) { flag = false; ProjectData.ClearProjectError(); goto label_38; } else { if (action == ConflictAction.ChangeName) { newname = UriUtil.CreateNextCopyName(UriUtil.GetLastName(id.Uri)); ProjectData.ClearProjectError(); continue; } if (action == ConflictAction.DeleteTarget) { this.pFs.Delete(ri.Id); ProjectData.ClearProjectError(); continue; } } } catch (Exception ex2) { ProjectData.SetProjectError(ex2); ProjectData.ClearProjectError(); } throw; } } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); if (!em.IgnoreAll()) { ErrorPromptFormResult r = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during moving resource.", id.ToString(), ex2, ErrorPromptType.RetryCancel, retryminutes); this.Cursor = this.Cursor; em.RegisterAction(r); if (r.Action == ErrorAction.Retry) { ProjectData.ClearProjectError(); continue; } if (r.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); continue; } if (r.Action == ErrorAction.Cancel) { flag = false; ProjectData.ClearProjectError(); goto label_38; } } ProjectData.ClearProjectError(); break; } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return true; label_38: return flag; } internal bool Fs_SetResourceInfo(ResourceInfo newinfo, ResourceInfo originalinfo) { int retryminutes = 1; bool flag; while (true) { try { this.EnterWaitState(); this.pCache.SetResourceInfo(this.pFs, newinfo, originalinfo); this.LeaveWaitState(); break; } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); ErrorPromptFormResult promptFormResult = ErrorPromptForm.ShowDialog((IWin32Window) this, "Error occurred during updating properties.", newinfo.Id.Uri.ToString(), ex2, ErrorPromptType.RetryCancel, retryminutes); if (promptFormResult.Action == ErrorAction.Retry) ProjectData.ClearProjectError(); else if (promptFormResult.Action == ErrorAction.AutoRetry) { checked { retryminutes *= 2; } ProjectData.ClearProjectError(); } else { flag = false; ProjectData.ClearProjectError(); goto label_12; } } } if (this.CurrentConnectionSetting.NeedPersist) { if (!this.IsTemporaryConnection) { this.CurrentConnectionSetting.PersistUserPass(); this.SaveCurrentSetting(); } this.CurrentConnectionSetting.NeedPersist = false; } return true; label_12: return flag; } internal void Fs_Reset() { if (this.pFs == null) return; this.pFs.ResetConnection(); this.CurrentConnectionSetting.Reset(); this.pCache.Clear(); } private void ConnectToolStripItem_Click(object sender, EventArgs e) { this.Disconnect(); } private void ExitToolStripMenuItem_Click(object sender, EventArgs e) { this.Close(); } private void GoToParentToolStripItem_Click(object sender, EventArgs e) { this.GoToParentResource(); } private void RefreshToolStripItem_Click(object sender, EventArgs e) { this.RefreshResourceListView(); } private void NewFolderToolStripItem_Click(object sender, EventArgs e) { this.CreateCollection(); } private void UploadFolderToolStripItem_Click(object sender, EventArgs e) { this.OpenUploadFolderDialog(); } private void UploadToolStripItem_Click(object sender, EventArgs e) { this.OpenUploadDialog(); } private void DownloadToolStripItem_Click(object sender, EventArgs e) { this.OpenDownloadDialog(); } private void DeleteToolStripItem_Click(object sender, EventArgs e) { this.DeleteResources(); } private void RenameToolStripMenuItem_Click(object sender, EventArgs e) { this.StartRename(); } private void SelectAllToolStripMenuItem_Click(object sender, EventArgs e) { int count = this.ResourceListView.Items.Count; int num1 = 0; int num2 = checked (count - 1); int index = num1; while (index <= num2) { this.ResourceListView.Items[index].Selected = true; checked { ++index; } } } private void AddNewSettingToolStripMenuItem_Click(object sender, EventArgs e) { System.Type tag = ((ToolStripItem) sender).Tag as System.Type; if (tag == null || !tag.IsSubclassOf(typeof (ConnectionSettingBase)) || this.IsConnected) return; this.ShowConnectionSettingForm((ConnectionSettingBase) tag.InvokeMember((string) null, BindingFlags.Instance | BindingFlags.Public | BindingFlags.CreateInstance, (Binder) null, (object) null, (object[]) null)); } private void DuplicateToolStripMenuItem_Click(object sender, EventArgs e) { if (this.ResourceListView.SelectedIndices.Count != 1 || this.IsConnected) return; ConnectionSettingBase tag = (ConnectionSettingBase) this.ResourceListView.SelectedItems[0].Tag; int num1 = 1; ConnectionSettingBase csb = XmlSettingManager.CopyConnectionSetting(tag); label_2: csb.Name = num1 != 1 ? tag.Name + string.Format(" (copy {0})", (object) num1.ToString("#")) : tag.Name + " (copy)"; int num2 = 0; int num3 = checked (this.pSetting.ConnectionSettings.Count - 1); int index = num2; while (index <= num3) { if (Operators.CompareString(this.pSetting.ConnectionSettings[index].Name, csb.Name, false) == 0) { checked { ++num1; } goto label_2; } else checked { ++index; } } csb.FaviconName = (string) null; this.ShowConnectionSettingForm(csb); } private void PropertyToolStripItem_Click(object sender, EventArgs e) { this.OpenPropertyDialog(); } private void FaviconToolStripButton_Click(object sender, EventArgs e) { this.GoToHomeUri(); } private void ToolStripGoButton_Click(object sender, EventArgs e) { this.GoToTextBoxUri(); } private void ImportToolStripMenuItem_Click(object sender, EventArgs e) { if (this.IsConnected) return; OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Title = "Import Connection Setting"; openFileDialog.FileName = ""; openFileDialog.DefaultExt = "xml"; openFileDialog.Filter = "XML files (*.xml)|*.xml|Text files (*.txt)|*.txt|All files (*.*)|*.*"; if (openFileDialog.ShowDialog((IWin32Window) this) != DialogResult.OK) return; ConnectionSettingBase csb; try { csb = XmlSettingManager.ImportSetting(openFileDialog.FileName); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show("Error occurred during importing settings"); ProjectData.ClearProjectError(); return; } int num1 = 0; string name = csb.Name; label_6: if (num1 > 0) csb.Name = name + string.Format(" (import {0})", (object) num1.ToString("#")); int num2 = 0; int num3 = checked (this.pSetting.ConnectionSettings.Count - 1); int index = num2; while (index <= num3) { if (Operators.CompareString(this.pSetting.ConnectionSettings[index].Name, csb.Name, false) == 0) { checked { ++num1; } goto label_6; } else checked { ++index; } } this.ShowConnectionSettingForm(csb); } private void ExportToolStripMenuItem_Click(object sender, EventArgs e) { if (this.IsConnected || this.ResourceListView.SelectedItems.Count != 1) return; ConnectionSettingBase tag = (ConnectionSettingBase) this.ResourceListView.SelectedItems[0].Tag; SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Title = "Export Connection Setting"; saveFileDialog.FileName = tag.Name + ".xml"; saveFileDialog.DefaultExt = "xml"; saveFileDialog.Filter = "XML files (*.xml)|*.xml|Text files (*.txt)|*.txt|All files (*.*)|*.*"; if (saveFileDialog.ShowDialog((IWin32Window) this) != DialogResult.OK) return; try { XmlSettingManager.ExportSetting(tag, saveFileDialog.FileName); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show("Error occurred during exporting settings"); ProjectData.ClearProjectError(); } } private void CopyURIContextMenuItem_Click(object sender, EventArgs e) { if (!this.IsConnected || this.ResourceListView.SelectedIndices.Count < 1) return; string[] strArray = new string[checked (this.ResourceListView.SelectedItems.Count - 1 + 1)]; int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index = num1; while (index <= num2) { strArray[index] = ((ResourceInfo) this.ResourceListView.SelectedItems[index].Tag).Id.Uri.AbsoluteUri; checked { ++index; } } Clipboard.SetText(string.Join("\r\n", strArray)); } private void CopyResourceNameContextMenuItem_Click(object sender, EventArgs e) { if (!this.IsConnected || this.ResourceListView.SelectedIndices.Count < 1 || (!this.IsConnected || this.ResourceListView.SelectedIndices.Count < 1)) return; string[] strArray = new string[checked (this.ResourceListView.SelectedItems.Count - 1 + 1)]; int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index = num1; while (index <= num2) { strArray[index] = UriUtil.GetLastName(((ResourceInfo) this.ResourceListView.SelectedItems[index].Tag).Id.Uri); checked { ++index; } } Clipboard.SetText(string.Join("\r\n", strArray)); } private void RefreshToolStripMenuItem_Click(object sender, EventArgs e) { this.RefreshResourceListView(); } private void BackToolStripItem_Click(object sender, EventArgs e) { if (this.pCurrentHistoryNode == null || this.pCurrentHistoryNode.Previous == null) return; this.pCurrentHistoryNode = this.pCurrentHistoryNode.Previous; this.ShowEntriesById(this.pCurrentHistoryNode.Value, true); } private void ForwardToolStripItem_Click(object sender, EventArgs e) { if (this.pCurrentHistoryNode == null || this.pCurrentHistoryNode.Next == null) return; this.pCurrentHistoryNode = this.pCurrentHistoryNode.Next; this.ShowEntriesById(this.pCurrentHistoryNode.Value, true); } private void GoToParentToolStripMenuItem_Click(object sender, EventArgs e) { this.GoToParentResource(); } private void GoToHomeToolStripMenuItem_Click(object sender, EventArgs e) { this.GoToHomeUri(); } private void LargeIconToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.View = View.LargeIcon; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewView(); this.ResourceListView.EndUpdate(); } private void SmallIconToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.View = View.SmallIcon; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewView(); this.ResourceListView.EndUpdate(); } private void ListToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.View = View.List; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewView(); this.ResourceListView.EndUpdate(); } private void TileToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.View = View.Tile; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewView(); this.ResourceListView.EndUpdate(); } private void DetailToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.View = View.Details; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewView(); this.ResourceListView.EndUpdate(); } private void AutoColumnWidthToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.AutoColumnWidth = !((ToolStripMenuItem) sender).Checked; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewView(); this.ResourceListView.EndUpdate(); } private void SortNameToolStripMenuItem_Click(object sender, EventArgs e) { this.ResourceListViewToggleSort(0); } private void SortSizeToolStripMenuItem_Click(object sender, EventArgs e) { this.ResourceListViewToggleSort(3); } private void SortLastModifiedDateToolStripMenuItem_Click(object sender, EventArgs e) { this.ResourceListViewToggleSort(4); } private void SortCreationDateToolStripMenuItem_Click(object sender, EventArgs e) { this.ResourceListViewToggleSort(5); } private void SortStatusToolStripMenuItem_Click(object sender, EventArgs e) { this.ResourceListViewToggleSort(2); } private void SortURIToolStripMenuItem_Click(object sender, EventArgs e) { this.ResourceListViewToggleSort(1); } private void GroupNoneToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.Group = WebDAVClientSetting.GroupType.None; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewGroup(); this.ResourceListView.EndUpdate(); } private void GroupNameToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.Group = WebDAVClientSetting.GroupType.Name; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewGroup(); this.ResourceListView.EndUpdate(); } private void GroupSizeToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.Group = WebDAVClientSetting.GroupType.Size; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewGroup(); this.ResourceListView.EndUpdate(); } private void GroupTypeToolStripMenuItem_Click(object sender, EventArgs e) { this.pSetting.Group = WebDAVClientSetting.GroupType.Type; this.ResourceListView.BeginUpdate(); this.UpdateResourceListViewGroup(); this.ResourceListView.EndUpdate(); } private void LogToolStripMenuItem_Click(object sender, EventArgs e) { this.LogViewChange(!this.pSetting.ShowLogWindow); } private void StatusBarToolStripMenuItem_Click(object sender, EventArgs e) { this.StatusBarChange(!this.pSetting.ShowStatusBar); } private void LogToFileToolStripMenuItem_Click(object sender, EventArgs e) { this.FileLoggingChange(!LogWriter.Enabled); } private void AboutToolStripMenuItem_Click(object sender, EventArgs e) { int num = (int) new AboutForm().ShowDialog((IWin32Window) this); } private void NewVersionToolStripMenuItem_Click(object sender, EventArgs e) { Process.Start("http://rei.to/carotdav.html#download"); } private void UriToolStripTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode != Keys.Return) return; e.Handled = true; e.SuppressKeyPress = true; this.GoToTextBoxUri(); } private void ResourceListView_BeforeLabelEdit(object sender, LabelEditEventArgs e) { this.DeleteToolStripMenuItem.ShortcutKeys = Keys.None; this.CopyToolStripMenuItem.ShortcutKeys = Keys.None; this.CutToolStripMenuItem.ShortcutKeys = Keys.None; } private void ResourceListView_AfterLabelEdit(object sender, LabelEditEventArgs e) { this.DeleteToolStripMenuItem.ShortcutKeys = Keys.Delete; this.CopyToolStripMenuItem.ShortcutKeys = Keys.C | Keys.Control; this.CutToolStripMenuItem.ShortcutKeys = Keys.X | Keys.Control; if (e.Label == null) e.CancelEdit = true; else if (e.Label.Length == 0) e.CancelEdit = true; else e.CancelEdit = !this.RenameResource(this.ResourceListView.Items[e.Item], e.Label); } private void ResourceListView_ColumnClick(object sender, ColumnClickEventArgs e) { this.ResourceListViewToggleSort(e.Column); } private void ResourceListViewToggleSort(int columnindex) { MainForm.ResourceListViewItemComparer listViewItemSorter = (MainForm.ResourceListViewItemComparer) this.ResourceListView.ListViewItemSorter; listViewItemSorter.ToggleColumn(columnindex); if (this.ResourceListView.ShowGroups) { if (Environment.OSVersion.Platform == PlatformID.Win32NT && Environment.OSVersion.Version.Major >= 6) this.ResourceListView.Sort(); else this.RefreshResourceListView_All(); } else this.ResourceListView.Sort(); this.pSetting.SortString = listViewItemSorter.ToString(); } private void ResourceListView_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.Return) { e.Handled = true; this.OpenResource(); } else if (e.KeyData == Keys.Back) { e.Handled = true; this.BackToolStripItem_Click((object) null, EventArgs.Empty); } else { if (e.KeyData != Keys.Delete) return; e.Handled = true; this.DeleteResources(); } } private void ResourceListView_MouseUp(object sender, MouseEventArgs e) { switch (e.Button) { case MouseButtons.XButton1: this.BackToolStripItem_Click((object) null, EventArgs.Empty); break; case MouseButtons.XButton2: this.ForwardToolStripItem_Click((object) null, EventArgs.Empty); break; } } private void ResourceListView_MouseDoubleClick(object sender, MouseEventArgs e) { this.OpenResource(); } private void ResourceListView_SelectedIndexChanged(object sender, EventArgs e) { this.needUpdateWindow = true; } private void ResourceListView_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e) { if (this.ResourceListView.View != View.Details) return; this.pSetting.ColumnWidth[e.ColumnIndex] = this.ResourceListView.Columns[e.ColumnIndex].Width; } private void ResourceListView_ColumnReordered(object sender, ColumnReorderedEventArgs e) { if (this.ResourceListView.View != View.Details) return; int num1 = 0; int num2 = checked (this.ResourceListView.Columns.Count - 1); int index = num1; while (index <= num2) { this.pSetting.ColumnIndexs[index] = this.ResourceListView.Columns[index].DisplayIndex; if (this.pSetting.ColumnIndexs[index] == e.NewDisplayIndex) this.pSetting.ColumnIndexs[index] = e.OldDisplayIndex; else if (this.pSetting.ColumnIndexs[index] == e.OldDisplayIndex) this.pSetting.ColumnIndexs[index] = e.NewDisplayIndex; checked { ++index; } } } private MainForm.ExtractedData ExtractDataObject(IDataObject dobj, DragDropEffects allowedeffect) { MainForm.ExtractedData extractedData = new MainForm.ExtractedData(); DragDropEffects dragDropEffects = DragDropEffects.None; if (dobj.GetDataPresent(DataFormats.FileDrop)) dragDropEffects = dragDropEffects | DragDropEffects.Copy | DragDropEffects.Move; if (dobj.GetDataPresent("FileGroupDescriptorW")) dragDropEffects = dragDropEffects | DragDropEffects.Copy | DragDropEffects.Move; extractedData.PreferEffects = DataObjectHelper.GetPreferredDragEffect(dobj); if (extractedData.PreferEffects == DragDropEffects.None) extractedData.PreferEffects = DragDropEffects.Copy; extractedData.AllowedEffects = dragDropEffects & allowedeffect; return extractedData; } private DragDropEffects CalcDataTransferEffect(MainForm.ExtractedData extd, int keystate, bool self) { DragDropEffects dragDropEffects; if ((keystate & 44) == 32 | (keystate & 44) == 12) dragDropEffects = DragDropEffects.Link; else if ((keystate & 44) == 4) dragDropEffects = DragDropEffects.Move; else if ((keystate & 44) == 8) dragDropEffects = DragDropEffects.Copy; else if (self) { dragDropEffects = DragDropEffects.Move; } else { DragDropEffects preferEffects = extd.PreferEffects; dragDropEffects = preferEffects & (DragDropEffects) checked (-unchecked ((int) preferEffects)); } if ((extd.AllowedEffects & dragDropEffects) != DragDropEffects.None) return dragDropEffects; if ((extd.AllowedEffects & DragDropEffects.Copy) != DragDropEffects.None) return DragDropEffects.Copy; if ((extd.AllowedEffects & DragDropEffects.Move) != DragDropEffects.None) return DragDropEffects.Move; return (extd.AllowedEffects & DragDropEffects.Link) != DragDropEffects.None ? DragDropEffects.Link : DragDropEffects.None; } private DragDropEffects PerformDataTransfer(IDataObject dobj, DragDropEffects effect, ResourceId targetid, bool samefolder, bool IsPaste) { DragDropEffects dragDropEffects = DragDropEffects.None; try { if ((object) targetid == null) { dragDropEffects = DragDropEffects.None; } else { effect &= (DragDropEffects) checked (-unchecked ((int) effect)); if (dobj.GetDataPresent(typeof (CarotDAVDataObject.InterAppDataStore).FullName, true)) { CarotDAVDataObject.InterAppDataStore data = dobj.GetData(typeof (CarotDAVDataObject.InterAppDataStore).FullName) as CarotDAVDataObject.InterAppDataStore; if (Operators.CompareString(XmlSettingManager.XmlSerializeConnectionSetting(this.CurrentConnectionSetting), XmlSettingManager.XmlSerializeConnectionSetting(data.ConnectionSetting), false) == 0) { ConflictPromptManager cm = new ConflictPromptManager(); ErrorPromptManager em = new ErrorPromptManager(); List resourceIdList = new List(this.ResourceListView.Items.Count); if (samefolder) { int num1 = 0; int num2 = checked (this.ResourceListView.Items.Count - 1); int index = num1; while (index <= num2) { resourceIdList.Add(((ResourceInfo) this.ResourceListView.Items[index].Tag).Id); checked { ++index; } } } if (effect == DragDropEffects.Copy && (this.pFs.Ability & FsAbility.Copy) != FsAbility.None) { int num1 = 0; int num2 = checked (data.Files.Count - 1); int index = num1; while (index <= num2) { string newname = (string) null; if (resourceIdList.Contains(data.Files[index])) { string lastName = UriUtil.GetLastName(data.Files[index].Uri); newname = Path.GetFileNameWithoutExtension(lastName) + " copy." + Path.GetExtension(lastName); } if (!this.Fs_Copy(data.Files[index], targetid, newname, cm, em)) { dragDropEffects = DragDropEffects.None; goto label_58; } else checked { ++index; } } DataObjectHelper.SetPerformedDragEffect(dobj, DragDropEffects.Copy); dragDropEffects = DragDropEffects.Copy; goto label_58; } else if (effect == DragDropEffects.Move && (this.pFs.Ability & FsAbility.Move) != FsAbility.None) { int num1 = 0; int num2 = checked (data.Files.Count - 1); int index = num1; while (index <= num2) { if (!this.Fs_Move(data.Files[index], targetid, (string) null, cm, em)) { dragDropEffects = DragDropEffects.None; goto label_58; } else checked { ++index; } } DataObjectHelper.SetPerformedDragEffect(dobj, DragDropEffects.None); dragDropEffects = DragDropEffects.None; goto label_58; } } } if (dobj.GetDataPresent(DataFormats.FileDrop)) { string[] data = dobj.GetData(DataFormats.FileDrop, false) as string[]; if (data != null && effect == DragDropEffects.Copy) { if (IsPaste) { DataObjectHelper.StartAsyncOperation(dobj); this.Upload(data, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Copy); dragDropEffects = DragDropEffects.None; goto label_58; } else { bool flag = false; if (dobj != null) flag = DataObjectHelper.StartAsyncOperation(dobj); this.Upload(data, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Copy); dragDropEffects = flag ? DragDropEffects.None : DragDropEffects.Copy; goto label_58; } } else if (data != null && effect == DragDropEffects.Move) { if (IsPaste) { DataObjectHelper.StartAsyncOperation(dobj); this.Upload(data, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Move); dragDropEffects = DragDropEffects.None; goto label_58; } else { bool flag = false; if (dobj != null) flag = DataObjectHelper.StartAsyncOperation(dobj); if (!flag) throw new Exception("CarotDAV doesn't support \"Synchronous File Move\"."); this.Upload(data, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Move); dragDropEffects = DragDropEffects.None; goto label_58; } } } if (dobj.GetDataPresent("FileGroupDescriptorW")) { VirtualFileInfo[] virtualFileInfo = DataObjectHelper.GetVirtualFileInfo(dobj); if (virtualFileInfo.Length > 0 && effect == DragDropEffects.Copy) { if (IsPaste) { DataObjectHelper.StartAsyncOperation(dobj); this.UploadDescriptors(virtualFileInfo, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Copy); dragDropEffects = DragDropEffects.None; goto label_58; } else { bool flag = false; if (dobj != null) flag = DataObjectHelper.StartAsyncOperation(dobj); if (!flag && dobj != null) throw new Exception("CarotDAV doesn't support \"Synchronous FileDescriptor Copy\"."); DataObjectHelper.StartAsyncOperation(dobj); this.UploadDescriptors(virtualFileInfo, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Copy); dragDropEffects = DragDropEffects.None; goto label_58; } } else if (virtualFileInfo.Length > 0 && effect == DragDropEffects.Move) { if (IsPaste) { DataObjectHelper.StartAsyncOperation(dobj); this.UploadDescriptors(virtualFileInfo, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Move); dragDropEffects = DragDropEffects.None; goto label_58; } else { if (!DataObjectHelper.StartAsyncOperation(dobj)) throw new Exception("CarotDAV doesn't support \"Synchronous FileDescriptor Move\"."); this.UploadDescriptors(virtualFileInfo, targetid, this.InnerCheckSameProcessDataTransfer(dobj, IsPaste), DragDropEffects.Move); dragDropEffects = DragDropEffects.None; goto label_58; } } } Uri uniformResourceLocator = DataObjectHelper.GetUniformResourceLocator(dobj); if ((object) uniformResourceLocator != null) { if (effect == DragDropEffects.Link) { this.TemporaryConnect(uniformResourceLocator); DataObjectHelper.SetPerformedDragEffect(dobj, DragDropEffects.Link); dragDropEffects = DragDropEffects.Link; } } } } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show("Error\r\n" + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand); ProjectData.ClearProjectError(); } label_58: return dragDropEffects; } private IDataObject InnerCheckSameProcessDataTransfer(IDataObject dobj, bool ispaste) { if (!dobj.GetDataPresent(typeof (CarotDAVDataObject.InterAppDataStore).FullName, true) || (dobj.GetData(typeof (CarotDAVDataObject.InterAppDataStore).FullName) as CarotDAVDataObject.InterAppDataStore).ID != (long) Process.GetCurrentProcess().Id) return dobj; if (ispaste) { this.pLastCopyCutDataObject.IsInUsebymyself = true; return (IDataObject) new System.Windows.Forms.DataObject((object) this.pLastCopyCutDataObject); } this.pDraggingDataObject.IsInUsebymyself = true; return (IDataObject) new System.Windows.Forms.DataObject((object) this.pDraggingDataObject); } private void DataObject_Release(object sender, EventArgs e) { CarotDAVDataObject carotDavDataObject = (CarotDAVDataObject) sender; carotDavDataObject.Dispose(); lock (this.pDataObjectList) { this.pDataObjectList.Remove(carotDavDataObject); if (carotDavDataObject != this.pLastCopyCutDataObject) return; this.pLastCopyCutDataObject = (CarotDAVDataObject) null; } } private void MainForm_DragDrop(object sender, DragEventArgs e) { if (this.pDraggingDataObject != null) e.Effect = DragDropEffects.None; else e.Effect = this.PerformDataTransfer(e.Data, e.Effect, this.CurrentId, false, false); } private void MainForm_DragEnter(object sender, DragEventArgs e) { if (this.pDraggingDataObject != null) { e.Effect = DragDropEffects.None; } else { this.pCurrentExtractedData = this.ExtractDataObject(e.Data, e.AllowedEffect); e.Effect = this.CalcDataTransferEffect(this.pCurrentExtractedData, e.KeyState, this.pDraggingDataObject != null); } } private void MainForm_DragOver(object sender, DragEventArgs e) { if (this.pDraggingDataObject != null) e.Effect = DragDropEffects.None; else e.Effect = this.CalcDataTransferEffect(this.pCurrentExtractedData, e.KeyState, this.pDraggingDataObject != null); } private void MainForm_DragLeave(object sender, EventArgs e) { this.pCurrentExtractedData = (MainForm.ExtractedData) null; } private void ResourceListView_DragDrop(object sender, DragEventArgs e) { Point client = this.ResourceListView.PointToClient(new Point(e.X, e.Y)); ListViewItem itemAt = this.ResourceListView.GetItemAt(client.X, client.Y); e.Effect = e.Effect & (DragDropEffects) checked (-unchecked ((int) e.Effect)); e.Effect = this.pDraggingDataObject == null ? (e.Effect == DragDropEffects.Copy || e.Effect == DragDropEffects.Move ? (itemAt == null || !((ResourceInfo) itemAt.Tag).IsCollection ? this.PerformDataTransfer(e.Data, e.Effect, this.CurrentId, false, false) : this.PerformDataTransfer(e.Data, e.Effect, ((ResourceInfo) itemAt.Tag).Id, false, false)) : DragDropEffects.None) : (e.Effect != DragDropEffects.Copy ? (e.Effect != DragDropEffects.Move ? DragDropEffects.None : (itemAt == null || itemAt.Selected || !((ResourceInfo) itemAt.Tag).IsCollection ? DragDropEffects.None : this.PerformDataTransfer(e.Data, e.Effect, ((ResourceInfo) itemAt.Tag).Id, false, false))) : (itemAt == null || itemAt.Selected || !((ResourceInfo) itemAt.Tag).IsCollection ? this.PerformDataTransfer(e.Data, e.Effect, this.CurrentId, true, false) : this.PerformDataTransfer(e.Data, e.Effect, ((ResourceInfo) itemAt.Tag).Id, false, false))); if (this.pCurrentDropHilighted == null) return; if (this.pCurrentDropHilighted.ListView != null) WallMarkListView.ListViewItemSetStateDropHilited(this.pCurrentDropHilighted, false); this.pCurrentDropHilighted = (ListViewItem) null; } private void ResourceListView_DragEnter(object sender, DragEventArgs e) { this.pCurrentExtractedData = this.ExtractDataObject(e.Data, e.AllowedEffect); this.ResourceListView_DragOver(RuntimeHelpers.GetObjectValue(sender), e); } private void ResourceListView_DragOver(object sender, DragEventArgs e) { try { Point client = this.ResourceListView.PointToClient(new Point(e.X, e.Y)); ListViewItem listitem = this.ResourceListView.GetItemAt(client.X, client.Y); e.Effect = this.CalcDataTransferEffect(this.pCurrentExtractedData, e.KeyState, this.pDraggingDataObject != null); if (this.pDraggingDataObject != null) { if (e.Effect == DragDropEffects.Copy && this.pDraggingDataObject.CanCopyInternally) { if (listitem == null || listitem.Selected || !((ResourceInfo) listitem.Tag).IsCollection) { e.Effect = DragDropEffects.None; listitem = (ListViewItem) null; } } else if (e.Effect == DragDropEffects.Move && this.pDraggingDataObject.CanMoveInternally) { if (listitem == null || listitem.Selected || !((ResourceInfo) listitem.Tag).IsCollection) e.Effect = DragDropEffects.None; } else e.Effect = DragDropEffects.None; } else if (e.Effect == DragDropEffects.Copy || e.Effect == DragDropEffects.Move) { if (listitem == null || listitem.Selected || !((ResourceInfo) listitem.Tag).IsCollection) listitem = (ListViewItem) null; } else e.Effect = DragDropEffects.None; if (listitem == this.pCurrentDropHilighted) return; if (this.pCurrentDropHilighted != null && this.pCurrentDropHilighted.ListView != null) WallMarkListView.ListViewItemSetStateDropHilited(this.pCurrentDropHilighted, false); if (listitem != null) WallMarkListView.ListViewItemSetStateDropHilited(listitem, true); this.pCurrentDropHilighted = listitem; } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } } private void ResourceListView_DragLeave(object sender, EventArgs e) { if (this.pCurrentDropHilighted != null) { if (this.pCurrentDropHilighted.ListView != null) WallMarkListView.ListViewItemSetStateDropHilited(this.pCurrentDropHilighted, false); this.pCurrentDropHilighted = (ListViewItem) null; } this.pCurrentExtractedData = (MainForm.ExtractedData) null; } private void ResourceListView_ItemDrag(object sender, ItemDragEventArgs e) { if (!this.IsConnected) return; bool flag = (this.pFs.Ability & FsAbility.Move) != FsAbility.None; ResourceInfo[] resources = new ResourceInfo[checked (this.ResourceListView.SelectedItems.Count - 1 + 1)]; int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index = num1; while (index <= num2) { resources[index] = (ResourceInfo) this.ResourceListView.SelectedItems[index].Tag; if (!resources[index].CanMove) flag = false; checked { ++index; } } DragDropEffects allowedEffects = DragDropEffects.Copy | DragDropEffects.Link; if (flag) allowedEffects |= DragDropEffects.Move; CarotDAVDataObject carotDavDataObject = new CarotDAVDataObject(this.CurrentConnectionSetting, resources, CarotDAVDataObject.CarotDAVDataObjectType.DragDrop, this.pCache); try { carotDavDataObject.Release += new CarotDAVDataObject.ReleaseEventHandler(this.DataObject_Release); carotDavDataObject.SetInDragLoop(true); this.pDraggingDataObject = carotDavDataObject; carotDavDataObject.SetDragDropResult(this.ResourceListView.DoDragDrop((object) carotDavDataObject, allowedEffects)); this.pDraggingDataObject = (CarotDAVDataObject) null; if (carotDavDataObject.IsInOperation) { lock (this.pDataObjectList) this.pDataObjectList.Add(carotDavDataObject); } else carotDavDataObject.Dispose(); } catch (Exception ex) { ProjectData.SetProjectError(ex); if (carotDavDataObject != null) carotDavDataObject.Dispose(); throw; } } private void ResourceListView_QueryContinueDrag(object sender, QueryContinueDragEventArgs e) { if ((e.KeyState & 3) == 3 || (e.KeyState & 17) == 17 || (e.KeyState & 18) == 18) { e.Action = DragAction.Cancel; } else { if (e.Action != DragAction.Drop) return; this.pDraggingDataObject.SetInDragLoop(false); } } private void CutToolStripMenuItem_Click(object sender, EventArgs e) { int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index1 = num1; while (index1 <= num2) { ResourceInfo tag = (ResourceInfo) this.ResourceListView.SelectedItems[index1].Tag; if (!tag.CanDelete || tag.HasError) return; checked { ++index1; } } this.ResourceListView.BeginUpdate(); int num3 = 0; int num4 = checked (this.ResourceListView.Items.Count - 1); int index2 = num3; while (index2 <= num4) { WallMarkListView.ListViewItemSetStateCut(this.ResourceListView.Items[index2], false); checked { ++index2; } } ResourceInfo[] resources = new ResourceInfo[checked (this.ResourceListView.SelectedItems.Count - 1 + 1)]; int num5 = 0; int num6 = checked (this.ResourceListView.SelectedItems.Count - 1); int index3 = num5; while (index3 <= num6) { resources[index3] = (ResourceInfo) this.ResourceListView.SelectedItems[index3].Tag; WallMarkListView.ListViewItemSetStateCut(this.ResourceListView.SelectedItems[index3], true); checked { ++index3; } } this.ResourceListView.EndUpdate(); CarotDAVDataObject carotDavDataObject = new CarotDAVDataObject(this.CurrentConnectionSetting, resources, CarotDAVDataObject.CarotDAVDataObjectType.Cut, this.pCache); CarotDAVDataObject copyCutDataObject = this.pLastCopyCutDataObject; try { carotDavDataObject.Release += new CarotDAVDataObject.ReleaseEventHandler(this.DataObject_Release); carotDavDataObject.AsyncSupported = true; this.pLastCopyCutDataObject = carotDavDataObject; Clipboard.SetDataObject((object) carotDavDataObject); lock (this.pDataObjectList) { this.pDataObjectList.Add(carotDavDataObject); if (this.pDataObjectList.Contains(copyCutDataObject)) { int num7 = Marshal.Release(Marshal.GetIUnknownForObject((object) copyCutDataObject)); if (!copyCutDataObject.IsInUsebymyself) { if (num7 <= 0) this.DataObject_Release((object) copyCutDataObject, EventArgs.Empty); } } } } catch (Exception ex) { ProjectData.SetProjectError(ex); Exception exception = ex; if (carotDavDataObject != null) carotDavDataObject.Dispose(); int num7 = (int) MessageBox.Show("Cannot Set Data to Clipboard\r\n" + exception.ToString()); ProjectData.ClearProjectError(); return; } this.UpdateClipBoard(); } private void CopyToolStripMenuItem_Click(object sender, EventArgs e) { int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index1 = num1; while (index1 <= num2) { ResourceInfo tag = this.ResourceListView.SelectedItems[index1].Tag as ResourceInfo; if (tag != null && tag.HasError) return; checked { ++index1; } } this.ResourceListView.BeginUpdate(); int num3 = 0; int num4 = checked (this.ResourceListView.Items.Count - 1); int index2 = num3; while (index2 <= num4) { WallMarkListView.ListViewItemSetStateCut(this.ResourceListView.Items[index2], false); checked { ++index2; } } List resourceInfoList = new List(); int num5 = 0; int num6 = checked (this.ResourceListView.SelectedItems.Count - 1); int index3 = num5; while (index3 <= num6) { ResourceInfo tag = this.ResourceListView.SelectedItems[index3].Tag as ResourceInfo; if (tag != null) resourceInfoList.Add(tag); checked { ++index3; } } this.ResourceListView.EndUpdate(); if (resourceInfoList.Count > 0) { CarotDAVDataObject carotDavDataObject = new CarotDAVDataObject(this.CurrentConnectionSetting, resourceInfoList.ToArray(), CarotDAVDataObject.CarotDAVDataObjectType.Copy, this.pCache); CarotDAVDataObject copyCutDataObject = this.pLastCopyCutDataObject; try { carotDavDataObject.Release += new CarotDAVDataObject.ReleaseEventHandler(this.DataObject_Release); carotDavDataObject.AsyncSupported = true; this.pLastCopyCutDataObject = carotDavDataObject; Clipboard.SetDataObject((object) carotDavDataObject); lock (this.pDataObjectList) { this.pDataObjectList.Add(carotDavDataObject); if (this.pDataObjectList.Contains(copyCutDataObject)) { int num7 = Marshal.Release(Marshal.GetIUnknownForObject((object) copyCutDataObject)); if (!copyCutDataObject.IsInUsebymyself) { if (num7 <= 0) this.DataObject_Release((object) copyCutDataObject, EventArgs.Empty); } } } } catch (Exception ex) { ProjectData.SetProjectError(ex); Exception exception = ex; if (carotDavDataObject != null) carotDavDataObject.Dispose(); int num7 = (int) MessageBox.Show("Cannot Set Data to Clipboard\r\n" + exception.ToString()); ProjectData.ClearProjectError(); return; } } this.UpdateClipBoard(); } private void PasteToolStripMenuItem_Click(object sender, EventArgs e) { IDataObject dataObject = Clipboard.GetDataObject(); DragDropEffects effect = this.CalcDataTransferEffect(this.ExtractDataObject(dataObject, DragDropEffects.All), 0, false); this.PerformDataTransfer(dataObject, effect, this.CurrentId, false, true); this.UpdateWindow(); } private UpDownForm GetUpDownForm(Uri target, UpDownForm.TransferDirectionType direction) { ConnectionSettingBase connectionSetting = this.CurrentConnectionSetting; Dictionary dictionary = direction != UpDownForm.TransferDirectionType.Download ? this.pUpForms : this.pDownForms; if (!dictionary.ContainsKey(connectionSetting)) { UpDownForm upDownForm = new UpDownForm(); try { upDownForm.FormClosed += new FormClosedEventHandler(this.UpDownForm_FormClosed); upDownForm.TransferFinished += new EventHandler(this.UpDownForm_TransferFinished); upDownForm.RemoteResourceChanged += this.RemoteResourceChangedHandler; upDownForm.MainForm = this; upDownForm.Title = UriUtil.GetAuthority(target); FsBase client = this.CurrentConnectionSetting.GetClient(); client.LogMessage += new EventHandler(this.Client_OnMessage); client.GroupName = "UpDown"; upDownForm.SetClient(direction, client, this.pCache, this.CurrentConnectionSetting.DownloadFilenameNormalization, this.CurrentConnectionSetting.UploadFilenameNormalization); Rectangle workingArea = Screen.GetWorkingArea((Control) this); Point point = new Point(checked (this.Right - upDownForm.Width + 32 * dictionary.Count + 32), checked (this.Bottom - upDownForm.Height + 32 * dictionary.Count + 32)); if (workingArea.Right < checked (point.X + upDownForm.Width)) point.X = checked (workingArea.Right - upDownForm.Width); if (workingArea.Bottom < checked (point.Y + upDownForm.Height)) point.Y = checked (workingArea.Bottom - upDownForm.Height); if (workingArea.Left > point.X) point.X = workingArea.Left; if (workingArea.Top > point.Y) point.Y = workingArea.Top; upDownForm.Location = point; } catch (Exception ex) { ProjectData.SetProjectError(ex); upDownForm.Dispose(); throw; } dictionary.Add(connectionSetting, upDownForm); } dictionary[connectionSetting].Show(); dictionary[connectionSetting].Focus(); return dictionary[connectionSetting]; } private void UpDownForm_FormClosed(object sender, FormClosedEventArgs e) { UpDownForm upDownForm = (UpDownForm) sender; Dictionary.KeyCollection.Enumerator enumerator1 = this.pDownForms.Keys.GetEnumerator(); try { while (enumerator1.MoveNext()) { ConnectionSettingBase current = enumerator1.Current; if (this.pDownForms[current] == upDownForm) { this.pDownForms.Remove(current); break; } } } finally { enumerator1.Dispose(); } Dictionary.KeyCollection.Enumerator enumerator2 = this.pUpForms.Keys.GetEnumerator(); try { while (enumerator2.MoveNext()) { ConnectionSettingBase current = enumerator2.Current; if (this.pUpForms[current] == upDownForm) { this.pUpForms.Remove(current); break; } } } finally { enumerator2.Dispose(); } upDownForm.Dispose(); } private void UpDownForm_TransferFinished(object sender, EventArgs e) { } private bool TryCloseUpDownForms() { UpDownForm[] array1 = new UpDownForm[checked (this.pDownForms.Count - 1 + 1)]; this.pDownForms.Values.CopyTo(array1, 0); UpDownForm[] upDownFormArray1 = array1; int index1 = 0; while (index1 < upDownFormArray1.Length) { upDownFormArray1[index1].Close(); checked { ++index1; } } UpDownForm[] array2 = new UpDownForm[checked (this.pUpForms.Count - 1 + 1)]; this.pUpForms.Values.CopyTo(array2, 0); UpDownForm[] upDownFormArray2 = array2; int index2 = 0; while (index2 < upDownFormArray2.Length) { upDownFormArray2[index2].Close(); checked { ++index2; } } return checked (this.pUpForms.Count + this.pDownForms.Count) <= 0; } private void ShowPropertyForm(ResourceInfo ri) { int num1 = 0; int num2 = checked (this.pPropertyForms.Count - 1); int index = num1; while (index <= num2) { if (this.pPropertyForms[index].Target == ri.Id) { this.pPropertyForms[index].Show(); this.pPropertyForms[index].Focus(); return; } checked { ++index; } } PropertyForm propertyForm = new PropertyForm(); propertyForm.FormClosed += new FormClosedEventHandler(this.PropertyForm_FormClosed); propertyForm.PropertyUpdated += new EventHandler(this.PropertyForm_PropertyUpdated); propertyForm.MainForm = this; propertyForm.Target = ri.Id; propertyForm.ResourceInfo = ri; this.pPropertyForms.Add(propertyForm); propertyForm.Show(); propertyForm.Focus(); } private void PropertyForm_FormClosed(object sender, FormClosedEventArgs e) { PropertyForm propertyForm = (PropertyForm) sender; this.pPropertyForms.Remove(propertyForm); propertyForm.Dispose(); } private void PropertyForm_PropertyUpdated(object sender, EventArgs e) { } private bool TryClosePropertyForms() { PropertyForm[] array = new PropertyForm[checked (this.pPropertyForms.Count - 1 + 1)]; this.pPropertyForms.CopyTo(array, 0); PropertyForm[] propertyFormArray = array; int index = 0; while (index < propertyFormArray.Length) { propertyFormArray[index].Close(); checked { ++index; } } return this.pPropertyForms.Count <= 0; } private void Client_OnMessage(object sender, LogMessageEventArgs e) { if (this.InvokeRequired) { try { this.BeginInvoke((Delegate) new EventHandler(this.Client_OnMessage), RuntimeHelpers.GetObjectValue(sender), (object) e); } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } } else { if (this.pSetting.ShowLogWindow) this.WriteLineLog(e.Message); LogWriter.WriteMessage("http", e.Message); } } private void WriteLineLog(string str) { if (!this.pSetting.ShowLogWindow || this.InvokeRequired) return; string str1 = string.Join("", new string[3] { this.LogTextBox.Text, str, "\r\n" }); if (str1.Length > 30000) str1 = str1.Substring(checked (str1.Length - 30000), 30000); this.LogTextBox.Text = str1; this.LogTextBox.Select(checked (str1.Length - 1), 0); this.LogTextBox.ScrollToCaret(); } private void FileLoggingChange(bool enable) { LogWriter.Enabled = enable; this.LogToFileToolStripMenuItem.Checked = enable; } private void LogViewChange(bool show) { if (show) this.LogTextBox.Text = ""; this.LogToolStripMenuItem.Checked = show; this.SplitContainer1.Panel2Collapsed = !show; this.pSetting.ShowLogWindow = show; if (show) return; this.LogTextBox.Text = ""; } private void StatusBarChange(bool show) { this.StatusBarToolStripMenuItem.Checked = show; this.StatusStrip1.Visible = show; this.pSetting.ShowStatusBar = show; } private void UpdateWindow() { if (this.IsConnected) { int count; switch (this.ResourceListView.Items.Count) { case 0: this.ToolStripTotal.Text = "no resources"; this.SelectAllToolStripMenuItem.Enabled = false; break; case 1: this.ToolStripTotal.Text = "1 resource"; this.SelectAllToolStripMenuItem.Enabled = true; break; default: ToolStripStatusLabel toolStripTotal = this.ToolStripTotal; count = this.ResourceListView.Items.Count; string str1 = count.ToString() + " resources"; toolStripTotal.Text = str1; this.SelectAllToolStripMenuItem.Enabled = true; break; } this.ConnectToolStripButton.Enabled = true; this.ConnectToolStripMenuItem.Enabled = true; this.GoToParentToolStripMenuItem.Visible = true; this.GoToParentContextMenuItem.Visible = true; if (UriUtil.IsRoot(this.CurrentId.Uri)) { this.GoToParentToolStripButton.Enabled = false; this.GoToParentToolStripMenuItem.Enabled = false; this.GoToParentContextMenuItem.Enabled = false; } else { this.GoToParentToolStripButton.Enabled = true; this.GoToParentToolStripMenuItem.Enabled = true; this.GoToParentContextMenuItem.Enabled = true; } this.FaviconToolStripButton.Enabled = true; this.GoToHomeToolStripMenuItem.Visible = true; this.RefreshToolStripButton.Enabled = true; this.RefreshToolStripMenuItem.Enabled = true; this.RefreshContextMenuItem.Enabled = true; this.NewFolderToolStripButton.Enabled = true; this.NewFolderToolStripMenuItem.Visible = true; this.NewFolderContextMenuItem.Visible = true; this.UploadToolStripButton.Enabled = true; this.UploadToolStripMenuItem.Visible = true; this.UploadFolderToolStripButton.Enabled = true; this.UploadFolderToolStripMenuItem.Visible = true; this.DownloadToolStripMenuItem.Visible = true; this.DownloadContextMenuItem.Visible = true; this.ToolStripMenuSeparatorUpDown.Visible = true; this.ContextMenuSeparatorDownload.Visible = true; this.TestToolStripMenuItem.Enabled = true; if (this.pFs.LastSecureType == SecureType.Secure) { this.SecureToolStripLabel.Image = (Image) CarotDAV.My.Resources.Resources.Lock; this.SecureToolStripLabel.Visible = true; this.UriToolStripTextBox.BackColor = System.Drawing.Color.PaleGreen; } else if (this.pFs.LastSecureType == SecureType.Warning) { this.SecureToolStripLabel.Image = (Image) CarotDAV.My.Resources.Resources.Warning; this.SecureToolStripLabel.Visible = true; this.UriToolStripTextBox.BackColor = System.Drawing.Color.Pink; } else { this.SecureToolStripLabel.Visible = false; this.SecureToolStripLabel.Image = (Image) null; this.UriToolStripTextBox.BackColor = SystemColors.Window; } this.PasteToolStripButton.Enabled = true; this.PasteToolStripMenuItem.Visible = true; this.PasteContextMenuItem.Visible = true; this.CutToolStripMenuItem.Visible = true; this.CutContextMenuItem.Visible = true; this.CopyToolStripMenuItem.Visible = true; this.CopyContextMenuItem.Visible = true; this.CopyResourceNameContextMenuItem.Visible = true; this.CopyURIContextMenuItem.Visible = true; this.ContextMenuSeparatorCopy.Visible = true; if (this.ResourceListView.SelectedIndices.Count == 0) { this.ToolStripSelected.Text = ""; this.DeleteToolStripButton.Enabled = false; this.DeleteToolStripMenuItem.Enabled = false; this.DeleteContextMenuItem.Enabled = false; this.PropertyToolStripButton.Enabled = false; this.PropertyToolStripMenuItem.Enabled = false; this.PropertyContextMenuItem.Enabled = false; this.RenameToolStripMenuItem.Enabled = false; this.RenameContextMenuItem.Enabled = false; this.DownloadToolStripButton.Enabled = false; this.DownloadToolStripMenuItem.Enabled = false; this.DownloadContextMenuItem.Enabled = false; this.CutToolStripButton.Enabled = false; this.CutToolStripMenuItem.Enabled = false; this.CutContextMenuItem.Enabled = false; this.CopyToolStripButton.Enabled = false; this.CopyToolStripMenuItem.Enabled = false; this.CopyContextMenuItem.Enabled = false; this.CopyResourceNameContextMenuItem.Enabled = false; this.CopyURIContextMenuItem.Enabled = false; } else { bool flag1 = true; bool flag2 = true; bool flag3 = true; bool flag4 = this.ResourceListView.SelectedItems.Count == 1; bool flag5 = this.ResourceListView.SelectedItems.Count == 1; int num1 = 0; int num2 = checked (this.ResourceListView.SelectedItems.Count - 1); int index1 = num1; while (index1 <= num2) { ResourceInfo tag = (ResourceInfo) this.ResourceListView.SelectedItems[index1].Tag; flag1 = flag1 && tag.CanCopy; flag2 = flag2 && tag.CanDelete; flag3 = flag3 && tag.CanMove; flag5 = flag5 && tag.CanRename; checked { ++index1; } } ToolStripStatusLabel toolStripSelected = this.ToolStripSelected; string separator = ""; string[] strArray1 = new string[3] { "(", null, null }; string[] strArray2 = strArray1; int index2 = 1; count = this.ResourceListView.SelectedIndices.Count; string str2 = count.ToString(); strArray2[index2] = str2; strArray1[2] = " selected)"; string[] strArray3 = strArray1; string str3 = string.Join(separator, strArray3); toolStripSelected.Text = str3; this.DeleteToolStripButton.Enabled = flag2; this.DeleteToolStripMenuItem.Enabled = flag2; this.DeleteContextMenuItem.Enabled = flag2; this.PropertyToolStripButton.Enabled = flag4; this.PropertyToolStripMenuItem.Enabled = flag4; this.PropertyContextMenuItem.Enabled = flag4; this.RenameToolStripMenuItem.Enabled = flag5; this.RenameContextMenuItem.Enabled = flag5; this.DownloadToolStripButton.Enabled = true; this.DownloadToolStripMenuItem.Enabled = true; this.DownloadContextMenuItem.Enabled = true; this.CutToolStripButton.Enabled = flag3; this.CutToolStripMenuItem.Enabled = flag3; this.CutContextMenuItem.Enabled = flag3; this.CopyToolStripButton.Enabled = flag1; this.CopyToolStripMenuItem.Enabled = flag1; this.CopyContextMenuItem.Enabled = flag1; this.CopyResourceNameContextMenuItem.Enabled = true; this.CopyURIContextMenuItem.Enabled = true; } if (this.pCurrentHistoryNode == null) { this.BackToolStripButton.Enabled = false; this.BackToolStripMenuItem.Enabled = false; this.ForwardToolStripButton.Enabled = false; this.ForwardToolStripMenuItem.Enabled = false; } else { if (this.pCurrentHistoryNode.Previous == null) { this.BackToolStripButton.Enabled = false; this.BackToolStripMenuItem.Enabled = false; } else { this.BackToolStripButton.Enabled = true; this.BackToolStripMenuItem.Enabled = true; } if (this.pCurrentHistoryNode.Next == null) { this.ForwardToolStripButton.Enabled = false; this.ForwardToolStripMenuItem.Enabled = false; } else { this.ForwardToolStripButton.Enabled = true; this.ForwardToolStripMenuItem.Enabled = true; } } this.ImportContextMenuItem.Visible = false; this.ImportToolStripMenuItem.Visible = false; this.ExportContextMenuItem.Visible = false; this.ExportToolStripMenuItem.Visible = false; this.NewConnectionContextMenuItem.Visible = false; this.NewConnectionToolStripMenuItem.Visible = false; this.NewConnectionToolStripDropDownButton.Enabled = false; this.ContextMenuSeparatorConnection.Visible = false; this.DuplicateToolStripMenuItem.Visible = false; this.DuplicateContextMenuItem.Visible = false; } else { switch (this.ResourceListView.Items.Count) { case 0: this.ToolStripTotal.Text = "no connection"; this.SelectAllToolStripMenuItem.Enabled = false; break; case 1: this.ToolStripTotal.Text = "1 connection"; this.SelectAllToolStripMenuItem.Enabled = true; break; default: this.ToolStripTotal.Text = this.ResourceListView.Items.Count.ToString() + " connections"; this.SelectAllToolStripMenuItem.Enabled = true; break; } this.ConnectToolStripButton.Enabled = false; this.ConnectToolStripMenuItem.Enabled = false; this.GoToParentToolStripButton.Enabled = false; this.GoToParentToolStripMenuItem.Visible = false; this.GoToParentContextMenuItem.Visible = false; this.FaviconToolStripButton.Enabled = false; this.GoToHomeToolStripMenuItem.Visible = false; this.RefreshToolStripButton.Enabled = true; this.RefreshToolStripMenuItem.Enabled = true; this.RefreshContextMenuItem.Enabled = true; this.NewFolderToolStripButton.Enabled = false; this.NewFolderToolStripMenuItem.Visible = false; this.NewFolderContextMenuItem.Visible = false; this.UploadToolStripButton.Enabled = false; this.UploadToolStripMenuItem.Visible = false; this.UploadFolderToolStripButton.Enabled = false; this.UploadFolderToolStripMenuItem.Visible = false; this.DownloadToolStripButton.Enabled = false; this.DownloadToolStripMenuItem.Visible = false; this.DownloadContextMenuItem.Visible = false; this.ToolStripMenuSeparatorUpDown.Visible = false; this.ContextMenuSeparatorDownload.Visible = false; this.TestToolStripMenuItem.Enabled = false; this.SecureToolStripLabel.Visible = false; this.SecureToolStripLabel.Image = (Image) null; this.UriToolStripTextBox.BackColor = SystemColors.Window; this.PasteToolStripButton.Enabled = false; this.PasteToolStripMenuItem.Visible = false; this.PasteContextMenuItem.Visible = false; this.CutToolStripButton.Enabled = false; this.CutToolStripMenuItem.Visible = false; this.CutContextMenuItem.Visible = false; this.CopyToolStripButton.Enabled = false; this.CopyToolStripMenuItem.Visible = false; this.CopyContextMenuItem.Visible = false; this.CopyResourceNameContextMenuItem.Visible = false; this.CopyURIContextMenuItem.Visible = false; this.ContextMenuSeparatorCopy.Visible = false; if (this.ResourceListView.SelectedIndices.Count == 0) { this.ToolStripSelected.Text = ""; this.DeleteToolStripButton.Enabled = false; this.DeleteToolStripMenuItem.Enabled = false; this.DeleteContextMenuItem.Enabled = false; this.PropertyToolStripButton.Enabled = false; this.PropertyToolStripMenuItem.Enabled = false; this.PropertyContextMenuItem.Enabled = false; this.RenameToolStripMenuItem.Enabled = false; this.RenameContextMenuItem.Enabled = false; this.DuplicateToolStripMenuItem.Enabled = false; this.DuplicateContextMenuItem.Enabled = false; this.ExportToolStripMenuItem.Enabled = false; this.ExportContextMenuItem.Enabled = false; } else if (this.ResourceListView.SelectedIndices.Count == 1) { this.ToolStripSelected.Text = ""; this.DeleteToolStripButton.Enabled = true; this.DeleteToolStripMenuItem.Enabled = true; this.DeleteContextMenuItem.Enabled = true; this.PropertyToolStripButton.Enabled = true; this.PropertyToolStripMenuItem.Enabled = true; this.PropertyContextMenuItem.Enabled = true; this.RenameToolStripMenuItem.Enabled = true; this.RenameContextMenuItem.Enabled = true; this.DuplicateToolStripMenuItem.Enabled = true; this.DuplicateContextMenuItem.Enabled = true; this.ExportToolStripMenuItem.Enabled = true; this.ExportContextMenuItem.Enabled = true; } else { this.ToolStripSelected.Text = ""; this.DeleteToolStripButton.Enabled = true; this.DeleteToolStripMenuItem.Enabled = true; this.DeleteContextMenuItem.Enabled = true; this.PropertyToolStripButton.Enabled = false; this.PropertyToolStripMenuItem.Enabled = false; this.PropertyContextMenuItem.Enabled = false; this.RenameToolStripMenuItem.Enabled = false; this.RenameContextMenuItem.Enabled = false; this.DuplicateToolStripMenuItem.Enabled = false; this.DuplicateContextMenuItem.Enabled = false; this.ExportToolStripMenuItem.Enabled = false; this.ExportContextMenuItem.Enabled = false; } this.BackToolStripButton.Enabled = false; this.BackToolStripMenuItem.Enabled = false; this.ForwardToolStripButton.Enabled = false; this.ForwardToolStripMenuItem.Enabled = false; this.ImportContextMenuItem.Visible = true; this.ImportToolStripMenuItem.Visible = true; this.ExportContextMenuItem.Visible = true; this.ExportToolStripMenuItem.Visible = true; this.NewConnectionContextMenuItem.Visible = true; this.NewConnectionToolStripMenuItem.Visible = true; this.NewConnectionToolStripDropDownButton.Enabled = true; this.ContextMenuSeparatorConnection.Visible = true; this.DuplicateToolStripMenuItem.Visible = true; this.DuplicateContextMenuItem.Visible = true; } } private void UpdateClipBoard() { bool flag = false; if (this.IsConnected) flag = this.CalcDataTransferEffect(this.ExtractDataObject(Clipboard.GetDataObject(), DragDropEffects.All), 0, false) != DragDropEffects.None; this.PasteToolStripButton.Enabled = flag; this.PasteToolStripMenuItem.Enabled = flag; this.PasteContextMenuItem.Enabled = flag; } private void EnterWaitState() { this.Cursor = Cursors.WaitCursor; try { if (!this.TaskbarButtonCreated) return; TaskbarManager.SetProgressState((Control) this, TaskbarManager.TaskbarProgressBarStatus.Indeterminate); } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } } private void LeaveWaitState() { try { if (this.TaskbarButtonCreated) TaskbarManager.SetProgressState((Control) this, TaskbarManager.TaskbarProgressBarStatus.NoProgress); } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } this.Cursor = Cursors.Default; } private void LoadBackgroundImage() { string settingFolder = XmlSettingManager.SettingFolder; string[] strArray = new string[5] { this.pSetting.BackgroundImagePath, settingFolder + "\\background.bmp", settingFolder + "\\background.png", settingFolder + "\\background.gif", settingFolder + "\\background.jpg" }; Bitmap bitmap = (Bitmap) null; int num1 = 0; int num2 = checked (strArray.Length - 1); int index = num1; while (index <= num2) { try { if (System.IO.File.Exists(strArray[index])) { bitmap = new Bitmap(strArray[index]); break; } } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } checked { ++index; } } using (this.ResourceListView.BackgroundImage) this.ResourceListView.BackgroundImage = (Image) bitmap; } private void TestToolStripMenuItem_Click(object sender, EventArgs e) { if (!this.IsConnected) return; FsTestForm fsTestForm = new FsTestForm(); fsTestForm.Name = this.CurrentConnectionSetting.Name; FsBase client = this.CurrentConnectionSetting.GetClient(); client.LogMessage += new EventHandler(this.Client_OnMessage); client.GroupName = "test"; fsTestForm.SetClient(client, this.pCache, this.CurrentConnectionSetting.DownloadFilenameNormalization, this.CurrentConnectionSetting.UploadFilenameNormalization, this.CurrentConnectionSetting.TargetUri); fsTestForm.SetUri(this.CurrentId.Uri); fsTestForm.Show(); } private void Application_Idle(object sender, EventArgs e) { if (this.needUpdateWindow) { this.needUpdateWindow = false; this.UpdateWindow(); } lock (this.pDataObjectList) { CarotDAVDataObject[] array = this.pDataObjectList.ToArray(); int num1 = 0; int num2 = checked (array.Length - 1); int index = num1; while (index <= num2) { if (!array[index].IsInUsebymyself && Marshal.Release(Marshal.GetIUnknownForObject((object) array[index])) == 0) this.DataObject_Release((object) array[index], EventArgs.Empty); checked { ++index; } } } } private void EnableDAVServer() { Assembly executingAssembly = Assembly.GetExecutingAssembly(); string product = ((AssemblyProductAttribute) executingAssembly.GetCustomAttributes(typeof (AssemblyProductAttribute), false)[0]).Product; string str = executingAssembly.GetName().Version.ToString(3); this.DavServer1.Setting = this.pSetting; this.DavServer1.IpAddress = this.pSetting.ServerIP; this.DavServer1.ServerPort = this.pSetting.ServerPort; this.DavServer1.ServerName = product + "/" + str; try { this.DavServer1.Start(); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show(ex.ToString()); ProjectData.ClearProjectError(); return; } this.EnableWebDAVServerToolStripMenuItem.Checked = true; if (!string.IsNullOrEmpty(this.pSetting.AutoMoundDriveLetter)) this.MountDrive(); if (!this.pSetting.AutoMoundWebFolder) return; this.MapDAVFolder(); } private void DisableDAVServer() { if (!this.DavServer1.IsRunning) return; try { this.DavServer1.Stop(); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show(ex.ToString()); ProjectData.ClearProjectError(); } this.UnmountDrive(); this.UnmapDAVFolder(); this.EnableWebDAVServerToolStripMenuItem.Checked = false; } private void MountDrive() { if ((int) this.pCurrentMountedDrive != 0) return; while (true) { char mountedDriveLetter = NetDriveManager.FindMountedDriveLetter(this.DavServer1.DavUNC); if ((int) mountedDriveLetter != 0) { try { NetDriveManager.UnmountDrive(mountedDriveLetter); } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); break; } } else break; } char minValue = char.MinValue; if (this.pSetting.AutoMoundDriveLetter.Length > 1) { string[] logicalDrives = Environment.GetLogicalDrives(); int num1 = 3; label_7: string str = Conversions.ToString(Strings.Chr(checked (num1 + 65))); int num2 = 0; int num3 = checked (logicalDrives.Length - 1); int index = num2; while (index <= num3) { if (Operators.CompareString(logicalDrives[index].ToUpperInvariant(), str.ToUpperInvariant() + ":\\", false) != 0) { checked { ++index; } } else { checked { ++num1; } if (num1 <= 25) goto label_7; else goto label_14; } } minValue = str[0]; label_14: if ((int) minValue == 0) return; } else minValue = this.pSetting.AutoMoundDriveLetter[0]; this.pCurrentMountedDrive = minValue; try { string str1 = "@" + this.pSetting.ServerIP; string str2 = ""; if (this.pSetting.ServerPort != 80) str2 = ":" + this.pSetting.ServerPort.ToString(); NetDriveManager.MountDrive(this.pCurrentMountedDrive, this.DavServer1.DavUNC, "CarotDAV" + str1 + str2, Application.ExecutablePath, 1); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show(ex.ToString()); ProjectData.ClearProjectError(); } } private void UnmountDrive() { if ((int) this.pCurrentMountedDrive == 0) return; try { NetDriveManager.UnmountDrive(this.pCurrentMountedDrive); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show(ex.ToString()); ProjectData.ClearProjectError(); } this.pCurrentMountedDrive = char.MinValue; } private void MapDAVFolder() { if (!string.IsNullOrEmpty(this.pCurrentMappedFolder)) return; string str1 = "@" + this.pSetting.ServerIP; string str2 = ""; if (this.pSetting.ServerPort != 80) str2 = "@" + this.pSetting.ServerPort.ToString(); this.pCurrentMappedFolder = "CarotDAV" + str1 + str2; try { NetDriveManager.MapFolder(this.DavServer1.DavUNC, this.pCurrentMappedFolder, Application.ExecutablePath, 1); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show(ex.ToString()); ProjectData.ClearProjectError(); } } private void UnmapDAVFolder() { if (string.IsNullOrEmpty(this.pCurrentMappedFolder)) return; try { NetDriveManager.UnmapFolder(this.pCurrentMappedFolder); } catch (Exception ex) { ProjectData.SetProjectError(ex); int num = (int) MessageBox.Show(ex.ToString()); ProjectData.ClearProjectError(); } this.pCurrentMappedFolder = (string) null; } private void EnableWebDAVServerToolStripMenuItem_Click(object sender, EventArgs e) { if (this.DavServer1.IsRunning) this.DisableDAVServer(); else this.EnableDAVServer(); } private void ToolToolStripMenuItem_DropDownOpening(object sender, EventArgs e) { this.EnableWebDAVServerToolStripMenuItem.Checked = this.DavServer1.IsRunning; } private void SettingToolStripMenuItem_Click(object sender, EventArgs e) { WebDAVClientSettingForm clientSettingForm = new WebDAVClientSettingForm(); clientSettingForm.Tag = (object) this.pSetting; if (clientSettingForm.ShowDialog((IWin32Window) this) != DialogResult.OK) return; if (this.DavServer1.IsRunning) this.DisableDAVServer(); this.pSetting = (WebDAVClientSetting) clientSettingForm.Tag; this.SaveCurrentSetting(); if (this.pSetting.AutoEnableDAVServer) this.EnableDAVServer(); this.LoadBackgroundImage(); } private void ContextMenuStrip1_Opening(object sender, CancelEventArgs e) { if (!this.IsConnected) return; List resourceInfoList = new List(); resourceInfoList.Add(this.CurrentInfo); int num1 = 0; int num2 = checked (this.ResourceListView.SelectedIndices.Count - 1); int index1 = num1; while (index1 <= num2) { ResourceInfo tag = this.ResourceListView.Items[this.ResourceListView.SelectedIndices[index1]].Tag as ResourceInfo; if (tag != null) resourceInfoList.Add(tag); checked { ++index1; } } ResourceInfo[] array = resourceInfoList.ToArray(); FsSpecificContextMenuItem[] extensionMethod = this.CurrentConnectionSetting.GetExtensionMethod(array); if (extensionMethod == null || extensionMethod.Length <= 0) return; int num3 = this.ContextMenuStrip1.Items.IndexOfKey("ToolStripSeparatorCustomMenuStart"); int index2 = num3 >= 0 ? checked (num3 + 1) : this.ContextMenuStrip1.Items.Count; int num4 = 0; int num5 = checked (extensionMethod.Length - 1); int index3 = num4; while (index3 <= num5) { ToolStripButton toolStripButton = new ToolStripButton(extensionMethod[index3].Title, extensionMethod[index3].Image, new EventHandler(this.FsSpecificContextMenuItem_Click)); toolStripButton.Tag = (object) extensionMethod[index3]; this.ContextMenuStrip1.Items.Insert(index2, (ToolStripItem) toolStripButton); checked { ++index2; } checked { ++index3; } } ToolStripSeparator toolStripSeparator = new ToolStripSeparator(); toolStripSeparator.Name = "ToolStripSeparatorCustomMenuEnd"; this.ContextMenuStrip1.Items.Insert(index2, (ToolStripItem) toolStripSeparator); this.ContextMenuStrip1.Tag = (object) array; } private void ContextMenuStrip1_Closed(object sender, ToolStripDropDownClosedEventArgs e) { int num = this.ContextMenuStrip1.Items.IndexOfKey("ToolStripSeparatorCustomMenuStart"); if (num < 0) return; while (this.ContextMenuStrip1.Items.IndexOfKey("ToolStripSeparatorCustomMenuEnd") >= 0) { ToolStripItem toolStripItem = this.ContextMenuStrip1.Items[checked (num + 1)]; this.ContextMenuStrip1.Items.RemoveAt(checked (num + 1)); toolStripItem.Dispose(); } } private void FsSpecificContextMenuItem_Click(object sender, EventArgs e) { FsSpecificContextMenuItem tag1 = (FsSpecificContextMenuItem) ((ToolStripItem) sender).Tag; List resourceInfoList = new List(); resourceInfoList.Add(this.CurrentInfo); int num1 = 0; int num2 = checked (this.ResourceListView.SelectedIndices.Count - 1); int index = num1; while (index <= num2) { ResourceInfo tag2 = this.ResourceListView.Items[this.ResourceListView.SelectedIndices[index]].Tag as ResourceInfo; if (tag2 != null) resourceInfoList.Add(tag2); checked { ++index; } } try { if (tag1.UseWaitCursor) this.EnterWaitState(); tag1.Invoke((object) this, this.pFs, resourceInfoList.ToArray()); if (!tag1.UseWaitCursor) return; this.LeaveWaitState(); } catch (Exception ex1) { ProjectData.SetProjectError(ex1); Exception ex2 = ex1; if (tag1.UseWaitCursor) this.LeaveWaitState(); this.WriteLineLog(ex2.ToString()); LogWriter.WriteException(ex2); this.pFs.ResetConnection(); int num3 = (int) MessageBox.Show("unknown error occured."); ProjectData.ClearProjectError(); } } private delegate void Handler(); private delegate void WriteLineLogDel(string message); private class ResourceListViewItemComparer : IComparer { private List _ColumnIndices; private List _IsAscendants; public ResourceListViewItemComparer(string sortstring) { this._ColumnIndices = new List(); this._IsAscendants = new List(); if (sortstring == null) sortstring = ""; string[] strArray = sortstring.Split(','); List intList = new List(); List boolList = new List(); int num1 = 0; int num2 = checked (strArray.Length - 1); int index1 = num1; while (index1 <= num2) { bool flag = true; if (strArray[index1].Contains("DESC")) { flag = false; strArray[index1] = strArray[index1].Replace("DESC", ""); } strArray[index1] = strArray[index1].Trim(); int num3 = 0; int num4 = checked (MainForm.ResourceListViewColumnNames.Length - 1); int index2 = num3; while (index2 <= num4) { if (Operators.CompareString(strArray[index1].ToLower(), MainForm.ResourceListViewColumnNames[index2].ToLower(), false) == 0) { intList.Add(index2); boolList.Add(flag); break; } checked { ++index2; } } checked { ++index1; } } this._ColumnIndices = intList; this._IsAscendants = boolList; } public override string ToString() { List stringList = new List(); Dictionary dictionary = new Dictionary(); int num1 = 0; int num2 = checked (this._ColumnIndices.Count - 1); int index = num1; while (index <= num2) { string listViewColumnName = MainForm.ResourceListViewColumnNames[this._ColumnIndices[index]]; if (!dictionary.ContainsKey(listViewColumnName)) { if (this._IsAscendants[index]) stringList.Add(listViewColumnName); else stringList.Add(listViewColumnName + " DESC"); dictionary.Add(listViewColumnName, 0); } checked { ++index; } } return string.Join(",", stringList.ToArray()); } public void ToggleColumn(int columnindex) { bool flag = true; int index = 0; while (index < checked (this._ColumnIndices.Count - 1)) { if (this._ColumnIndices[index] == columnindex) { flag = this._IsAscendants[index]; if (index == 0) flag = !flag; this._ColumnIndices.RemoveAt(index); this._IsAscendants.RemoveAt(index); } else checked { ++index; } } this._ColumnIndices.Insert(0, columnindex); this._IsAscendants.Insert(0, flag); } public int Compare(object x, object y) { try { int num = 0; ListViewItem listViewItem1 = (ListViewItem) x; ListViewItem listViewItem2 = (ListViewItem) y; ResourceInfo tag1 = listViewItem1.Tag as ResourceInfo; ResourceInfo tag2 = listViewItem2.Tag as ResourceInfo; if (tag1 != null && tag2 != null) { int index = 0; while (num == 0 && index < this._ColumnIndices.Count) { switch (this._ColumnIndices[index]) { case 0: num = !tag1.IsCollection || tag2.IsCollection ? (tag1.IsCollection || !tag2.IsCollection ? MainForm.ResourceListViewItemComparer.StrCmpLogicalW(listViewItem1.SubItems[0].Text, listViewItem2.SubItems[0].Text) : 1) : -1; break; case 1: num = MainForm.ResourceListViewItemComparer.StrCmpLogicalW(listViewItem1.SubItems[1].Text, listViewItem2.SubItems[1].Text); break; case 2: num = string.Compare(listViewItem1.SubItems[2].Text, listViewItem2.SubItems[2].Text, true); break; case 3: num = tag1.Size.CompareTo(tag2.Size); break; case 4: num = tag1.LastModifiedTime.CompareTo(tag2.LastModifiedTime); break; case 5: num = tag1.CreationTime.CompareTo(tag2.CreationTime); break; default: num = string.Compare(listViewItem1.SubItems[this._ColumnIndices[index]].Text, listViewItem1.SubItems[this._ColumnIndices[index]].Text, true); break; } if (!this._IsAscendants[index]) num = checked (-num); checked { ++index; } } return num; } ConnectionSettingBase tag3 = listViewItem1.Tag as ConnectionSettingBase; ConnectionSettingBase tag4 = listViewItem2.Tag as ConnectionSettingBase; if (tag3 != null) { if (tag4 != null) { int index = 0; while (num == 0 && index < this._ColumnIndices.Count) { switch (this._ColumnIndices[index]) { case 0: num = MainForm.ResourceListViewItemComparer.StrCmpLogicalW(listViewItem1.SubItems[0].Text, listViewItem2.SubItems[0].Text); break; case 1: num = MainForm.ResourceListViewItemComparer.StrCmpLogicalW(listViewItem1.SubItems[1].Text, listViewItem2.SubItems[1].Text); break; default: if (listViewItem1.SubItems.Count > this._ColumnIndices[index] && listViewItem2.SubItems.Count > this._ColumnIndices[index]) { num = string.Compare(listViewItem1.SubItems[this._ColumnIndices[index]].Text, listViewItem1.SubItems[this._ColumnIndices[index]].Text, true); break; } break; } if (!this._IsAscendants[index]) num = checked (-num); checked { ++index; } } return num; } } } catch (Exception ex) { ProjectData.SetProjectError(ex); ProjectData.ClearProjectError(); } return 0; } [DllImport("shlwapi.dll", CharSet = CharSet.Unicode)] private static extern int StrCmpLogicalW([MarshalAs(UnmanagedType.LPWStr)] string psz1, [MarshalAs(UnmanagedType.LPWStr)] string psz2); } private class ExtractedData { public CarotDAVDataObject.InterAppDataStore InnerData; public bool IsSameFs; public DragDropEffects PreferEffects; public DragDropEffects AllowedEffects; } internal enum MoveCopyResultType { Ok, Overwritten, Fail, } } }