// Decompiled with JetBrains decompiler // Type: CarotDAV.My.MyProject // 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.ApplicationServices; using Microsoft.VisualBasic.CompilerServices; using System; using System.CodeDom.Compiler; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Windows.Forms; using Microsoft.VisualBasic.MyServices.Internal; namespace CarotDAV.My { [HideModuleName] [StandardModule] [GeneratedCode("MyTemplate", "8.0.0.0")] internal sealed class MyProject { private static readonly MyProject.ThreadSafeObjectProvider m_ComputerObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static readonly MyProject.ThreadSafeObjectProvider m_AppObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static readonly MyProject.ThreadSafeObjectProvider m_UserObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static MyProject.ThreadSafeObjectProvider m_MyFormsObjectProvider = new MyProject.ThreadSafeObjectProvider(); private static readonly MyProject.ThreadSafeObjectProvider m_MyWebServicesObjectProvider = new MyProject.ThreadSafeObjectProvider(); [HelpKeyword("My.Computer")] internal static MyComputer Computer { [DebuggerHidden] get { return MyProject.m_ComputerObjectProvider.GetInstance; } } [HelpKeyword("My.Application")] internal static MyApplication Application { [DebuggerHidden] get { return MyProject.m_AppObjectProvider.GetInstance; } } [HelpKeyword("My.User")] internal static User User { [DebuggerHidden] get { return MyProject.m_UserObjectProvider.GetInstance; } } [HelpKeyword("My.Forms")] internal static MyProject.MyForms Forms { [DebuggerHidden] get { return MyProject.m_MyFormsObjectProvider.GetInstance; } } [HelpKeyword("My.WebServices")] internal static MyProject.MyWebServices WebServices { [DebuggerHidden] get { return MyProject.m_MyWebServicesObjectProvider.GetInstance; } } [EditorBrowsable(EditorBrowsableState.Never)] [MyGroupCollection("System.Windows.Forms.Form", "Create__Instance__", "Dispose__Instance__", "My.MyProject.Forms")] internal sealed class MyForms { public AboutForm m_AboutForm; public ConflictPromptForm m_ConflictPromptForm; public DestinationForm m_DestinationForm; public ErrorPromptForm m_ErrorPromptForm; public FsTestForm m_FsTestForm; public MainForm m_MainForm; public MasterPasswordChangeForm m_MasterPasswordChangeForm; public MasterPasswordInputForm m_MasterPasswordInputForm; public NewFolderForm m_NewFolderForm; public PropertyForm m_PropertyForm; public ResouceListingForm m_ResouceListingForm; public ServerCertErrorPromptForm m_ServerCertErrorPromptForm; public UpDownForm m_UpDownForm; public WebDAVClientSettingForm m_WebDAVClientSettingForm; [ThreadStatic] private static Hashtable m_FormBeingCreated; public AboutForm AboutForm { get { this.m_AboutForm = MyProject.MyForms.Create__Instance__(this.m_AboutForm); return this.m_AboutForm; } set { if (value == this.m_AboutForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_AboutForm); } } public ConflictPromptForm ConflictPromptForm { get { this.m_ConflictPromptForm = MyProject.MyForms.Create__Instance__(this.m_ConflictPromptForm); return this.m_ConflictPromptForm; } set { if (value == this.m_ConflictPromptForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_ConflictPromptForm); } } public DestinationForm DestinationForm { get { this.m_DestinationForm = MyProject.MyForms.Create__Instance__(this.m_DestinationForm); return this.m_DestinationForm; } set { if (value == this.m_DestinationForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_DestinationForm); } } public ErrorPromptForm ErrorPromptForm { get { this.m_ErrorPromptForm = MyProject.MyForms.Create__Instance__(this.m_ErrorPromptForm); return this.m_ErrorPromptForm; } set { if (value == this.m_ErrorPromptForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_ErrorPromptForm); } } public FsTestForm FsTestForm { get { this.m_FsTestForm = MyProject.MyForms.Create__Instance__(this.m_FsTestForm); return this.m_FsTestForm; } set { if (value == this.m_FsTestForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_FsTestForm); } } public MainForm MainForm { get { this.m_MainForm = MyProject.MyForms.Create__Instance__(this.m_MainForm); return this.m_MainForm; } set { if (value == this.m_MainForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_MainForm); } } public MasterPasswordChangeForm MasterPasswordChangeForm { get { this.m_MasterPasswordChangeForm = MyProject.MyForms.Create__Instance__(this.m_MasterPasswordChangeForm); return this.m_MasterPasswordChangeForm; } set { if (value == this.m_MasterPasswordChangeForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_MasterPasswordChangeForm); } } public MasterPasswordInputForm MasterPasswordInputForm { get { this.m_MasterPasswordInputForm = MyProject.MyForms.Create__Instance__(this.m_MasterPasswordInputForm); return this.m_MasterPasswordInputForm; } set { if (value == this.m_MasterPasswordInputForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_MasterPasswordInputForm); } } public NewFolderForm NewFolderForm { get { this.m_NewFolderForm = MyProject.MyForms.Create__Instance__(this.m_NewFolderForm); return this.m_NewFolderForm; } set { if (value == this.m_NewFolderForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_NewFolderForm); } } public PropertyForm PropertyForm { get { this.m_PropertyForm = MyProject.MyForms.Create__Instance__(this.m_PropertyForm); return this.m_PropertyForm; } set { if (value == this.m_PropertyForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_PropertyForm); } } public ResouceListingForm ResouceListingForm { get { this.m_ResouceListingForm = MyProject.MyForms.Create__Instance__(this.m_ResouceListingForm); return this.m_ResouceListingForm; } set { if (value == this.m_ResouceListingForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_ResouceListingForm); } } public ServerCertErrorPromptForm ServerCertErrorPromptForm { get { this.m_ServerCertErrorPromptForm = MyProject.MyForms.Create__Instance__(this.m_ServerCertErrorPromptForm); return this.m_ServerCertErrorPromptForm; } set { if (value == this.m_ServerCertErrorPromptForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_ServerCertErrorPromptForm); } } public UpDownForm UpDownForm { get { this.m_UpDownForm = MyProject.MyForms.Create__Instance__(this.m_UpDownForm); return this.m_UpDownForm; } set { if (value == this.m_UpDownForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_UpDownForm); } } public WebDAVClientSettingForm WebDAVClientSettingForm { get { this.m_WebDAVClientSettingForm = MyProject.MyForms.Create__Instance__(this.m_WebDAVClientSettingForm); return this.m_WebDAVClientSettingForm; } set { if (value == this.m_WebDAVClientSettingForm) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__(ref this.m_WebDAVClientSettingForm); } } [DebuggerHidden] private static T Create__Instance__(T Instance) where T : Form, new() { if ((object) Instance != null && !Instance.IsDisposed) return Instance; if (MyProject.MyForms.m_FormBeingCreated != null) { if (MyProject.MyForms.m_FormBeingCreated.ContainsKey((object) typeof (T))) throw new InvalidOperationException(Utils.GetResourceString("WinForms_RecursiveFormCreate", new string[0])); } else MyProject.MyForms.m_FormBeingCreated = new Hashtable(); MyProject.MyForms.m_FormBeingCreated.Add((object) typeof (T), (object) null); try { return Activator.CreateInstance(); } catch (TargetInvocationException ex) { if (ex.InnerException == null) throw; throw new InvalidOperationException(Utils.GetResourceString("WinForms_SeeInnerException", new string[1] { ex.InnerException.Message }), ex.InnerException); } finally { MyProject.MyForms.m_FormBeingCreated.Remove((object) typeof (T)); } } [DebuggerHidden] private void Dispose__Instance__(ref T instance) where T : Form { instance.Dispose(); instance = default (T); } [DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)] public MyForms() { } [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object o) { return base.Equals(RuntimeHelpers.GetObjectValue(o)); } [EditorBrowsable(EditorBrowsableState.Never)] public override int GetHashCode() { return base.GetHashCode(); } [EditorBrowsable(EditorBrowsableState.Never)] internal new System.Type GetType() { return typeof (MyProject.MyForms); } [EditorBrowsable(EditorBrowsableState.Never)] public override string ToString() { return base.ToString(); } } [MyGroupCollection("System.Web.Services.Protocols.SoapHttpClientProtocol", "Create__Instance__", "Dispose__Instance__", "")] [EditorBrowsable(EditorBrowsableState.Never)] internal sealed class MyWebServices { [DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object o) { return base.Equals(RuntimeHelpers.GetObjectValue(o)); } [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] public override int GetHashCode() { return base.GetHashCode(); } [DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)] internal new System.Type GetType() { return typeof (MyProject.MyWebServices); } [DebuggerHidden] [EditorBrowsable(EditorBrowsableState.Never)] public override string ToString() { return base.ToString(); } [DebuggerHidden] private static T Create__Instance__(T instance) where T : new() { if ((object) instance == null) return Activator.CreateInstance(); return instance; } [DebuggerHidden] private void Dispose__Instance__(ref T instance) { instance = default (T); } [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] public MyWebServices() { } } [EditorBrowsable(EditorBrowsableState.Never)] [ComVisible(false)] internal sealed class ThreadSafeObjectProvider where T : new() { private readonly ContextValue m_Context; internal T GetInstance { [DebuggerHidden] get { T instance = this.m_Context.Value; if ((object)instance == null) { instance = Activator.CreateInstance(); this.m_Context.Value = instance; } return instance; } } [EditorBrowsable(EditorBrowsableState.Never)] [DebuggerHidden] public ThreadSafeObjectProvider() { this.m_Context = new ContextValue(); } } } }