CarotDav_decompile/CarotDAV/My/MyProject.cs

491 lines
15 KiB
C#
Raw Permalink Normal View History

// 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<MyComputer> m_ComputerObjectProvider = new MyProject.ThreadSafeObjectProvider<MyComputer>();
private static readonly MyProject.ThreadSafeObjectProvider<MyApplication> m_AppObjectProvider = new MyProject.ThreadSafeObjectProvider<MyApplication>();
private static readonly MyProject.ThreadSafeObjectProvider<User> m_UserObjectProvider = new MyProject.ThreadSafeObjectProvider<User>();
private static MyProject.ThreadSafeObjectProvider<MyProject.MyForms> m_MyFormsObjectProvider = new MyProject.ThreadSafeObjectProvider<MyProject.MyForms>();
private static readonly MyProject.ThreadSafeObjectProvider<MyProject.MyWebServices> m_MyWebServicesObjectProvider = new MyProject.ThreadSafeObjectProvider<MyProject.MyWebServices>();
[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__<AboutForm>(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__<AboutForm>(ref this.m_AboutForm);
}
}
public ConflictPromptForm ConflictPromptForm
{
get
{
this.m_ConflictPromptForm = MyProject.MyForms.Create__Instance__<ConflictPromptForm>(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__<ConflictPromptForm>(ref this.m_ConflictPromptForm);
}
}
public DestinationForm DestinationForm
{
get
{
this.m_DestinationForm = MyProject.MyForms.Create__Instance__<DestinationForm>(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__<DestinationForm>(ref this.m_DestinationForm);
}
}
public ErrorPromptForm ErrorPromptForm
{
get
{
this.m_ErrorPromptForm = MyProject.MyForms.Create__Instance__<ErrorPromptForm>(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__<ErrorPromptForm>(ref this.m_ErrorPromptForm);
}
}
public FsTestForm FsTestForm
{
get
{
this.m_FsTestForm = MyProject.MyForms.Create__Instance__<FsTestForm>(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__<FsTestForm>(ref this.m_FsTestForm);
}
}
public MainForm MainForm
{
get
{
this.m_MainForm = MyProject.MyForms.Create__Instance__<MainForm>(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__<MainForm>(ref this.m_MainForm);
}
}
public MasterPasswordChangeForm MasterPasswordChangeForm
{
get
{
this.m_MasterPasswordChangeForm = MyProject.MyForms.Create__Instance__<MasterPasswordChangeForm>(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__<MasterPasswordChangeForm>(ref this.m_MasterPasswordChangeForm);
}
}
public MasterPasswordInputForm MasterPasswordInputForm
{
get
{
this.m_MasterPasswordInputForm = MyProject.MyForms.Create__Instance__<MasterPasswordInputForm>(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__<MasterPasswordInputForm>(ref this.m_MasterPasswordInputForm);
}
}
public NewFolderForm NewFolderForm
{
get
{
this.m_NewFolderForm = MyProject.MyForms.Create__Instance__<NewFolderForm>(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__<NewFolderForm>(ref this.m_NewFolderForm);
}
}
public PropertyForm PropertyForm
{
get
{
this.m_PropertyForm = MyProject.MyForms.Create__Instance__<PropertyForm>(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__<PropertyForm>(ref this.m_PropertyForm);
}
}
public ResouceListingForm ResouceListingForm
{
get
{
this.m_ResouceListingForm = MyProject.MyForms.Create__Instance__<ResouceListingForm>(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__<ResouceListingForm>(ref this.m_ResouceListingForm);
}
}
public ServerCertErrorPromptForm ServerCertErrorPromptForm
{
get
{
this.m_ServerCertErrorPromptForm = MyProject.MyForms.Create__Instance__<ServerCertErrorPromptForm>(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__<ServerCertErrorPromptForm>(ref this.m_ServerCertErrorPromptForm);
}
}
public UpDownForm UpDownForm
{
get
{
this.m_UpDownForm = MyProject.MyForms.Create__Instance__<UpDownForm>(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__<UpDownForm>(ref this.m_UpDownForm);
}
}
public WebDAVClientSettingForm WebDAVClientSettingForm
{
get
{
this.m_WebDAVClientSettingForm = MyProject.MyForms.Create__Instance__<WebDAVClientSettingForm>(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__<WebDAVClientSettingForm>(ref this.m_WebDAVClientSettingForm);
}
}
[DebuggerHidden]
private static T Create__Instance__<T>(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<T>();
}
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__<T>(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>(T instance) where T : new()
{
if ((object) instance == null)
return Activator.CreateInstance<T>();
return instance;
}
[DebuggerHidden]
private void Dispose__Instance__<T>(ref T instance)
{
instance = default (T);
}
[EditorBrowsable(EditorBrowsableState.Never)]
[DebuggerHidden]
public MyWebServices()
{
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
[ComVisible(false)]
internal sealed class ThreadSafeObjectProvider<T> where T : new()
{
private readonly ContextValue<T> m_Context;
internal T GetInstance
{
[DebuggerHidden]
get
{
T instance = this.m_Context.Value;
if ((object)instance == null)
{
instance = Activator.CreateInstance<T>();
this.m_Context.Value = instance;
}
return instance;
}
}
[EditorBrowsable(EditorBrowsableState.Never)]
[DebuggerHidden]
public ThreadSafeObjectProvider()
{
this.m_Context = new ContextValue<T>();
}
}
}
}