Disassembled CarotDav v1.14.7 with dotPeek 2017.2
This commit is contained in:
233
CarotDAV/AboutForm.cs
Normal file
233
CarotDAV/AboutForm.cs
Normal file
@@ -0,0 +1,233 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: CarotDAV.AboutForm
|
||||
// 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.CompilerServices;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CarotDAV
|
||||
{
|
||||
public class AboutForm : Form
|
||||
{
|
||||
private IContainer components;
|
||||
[AccessedThroughProperty("lblSoftwareName")]
|
||||
private Label _lblSoftwareName;
|
||||
[AccessedThroughProperty("lblCopy")]
|
||||
private Label _lblCopy;
|
||||
[AccessedThroughProperty("PictureBox1")]
|
||||
private PictureBox _PictureBox1;
|
||||
[AccessedThroughProperty("SupportLinkLabel")]
|
||||
private LinkLabel _SupportLinkLabel;
|
||||
|
||||
public AboutForm()
|
||||
{
|
||||
this.Load += new EventHandler(this.AboutForm_Load);
|
||||
this.InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!disposing || this.components == null)
|
||||
return;
|
||||
this.components.Dispose();
|
||||
}
|
||||
finally
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
}
|
||||
|
||||
internal virtual Label lblSoftwareName
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._lblSoftwareName;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
this._lblSoftwareName = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal virtual Label lblCopy
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._lblCopy;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
this._lblCopy = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal virtual PictureBox PictureBox1
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PictureBox1;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
EventHandler eventHandler = new EventHandler(this.PictureBox1_Click);
|
||||
if (this._PictureBox1 != null)
|
||||
this._PictureBox1.Click -= eventHandler;
|
||||
this._PictureBox1 = value;
|
||||
if (this._PictureBox1 == null)
|
||||
return;
|
||||
this._PictureBox1.Click += eventHandler;
|
||||
}
|
||||
}
|
||||
|
||||
internal virtual LinkLabel SupportLinkLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._SupportLinkLabel;
|
||||
}
|
||||
[MethodImpl(MethodImplOptions.Synchronized)] set
|
||||
{
|
||||
EventHandler eventHandler = new EventHandler(this.SupportLinkLabel_Click);
|
||||
if (this._SupportLinkLabel != null)
|
||||
this._SupportLinkLabel.Click -= eventHandler;
|
||||
this._SupportLinkLabel = value;
|
||||
if (this._SupportLinkLabel == null)
|
||||
return;
|
||||
this._SupportLinkLabel.Click += eventHandler;
|
||||
}
|
||||
}
|
||||
|
||||
[DebuggerStepThrough]
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.lblSoftwareName = new Label();
|
||||
this.lblCopy = new Label();
|
||||
this.PictureBox1 = new PictureBox();
|
||||
this.SupportLinkLabel = new LinkLabel();
|
||||
((ISupportInitialize) this.PictureBox1).BeginInit();
|
||||
this.SuspendLayout();
|
||||
this.lblSoftwareName.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||
this.lblSoftwareName.BackColor = Color.Transparent;
|
||||
Label lblSoftwareName1 = this.lblSoftwareName;
|
||||
Point point1 = new Point(8, 12);
|
||||
Point point2 = point1;
|
||||
lblSoftwareName1.Location = point2;
|
||||
this.lblSoftwareName.Name = "lblSoftwareName";
|
||||
Label lblSoftwareName2 = this.lblSoftwareName;
|
||||
Size size1 = new Size(238, 16);
|
||||
Size size2 = size1;
|
||||
lblSoftwareName2.Size = size2;
|
||||
this.lblSoftwareName.TabIndex = 0;
|
||||
this.lblSoftwareName.Text = "Software Name";
|
||||
this.lblCopy.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
|
||||
this.lblCopy.BackColor = Color.Transparent;
|
||||
Label lblCopy1 = this.lblCopy;
|
||||
point1 = new Point(8, 36);
|
||||
Point point3 = point1;
|
||||
lblCopy1.Location = point3;
|
||||
this.lblCopy.Name = "lblCopy";
|
||||
Label lblCopy2 = this.lblCopy;
|
||||
size1 = new Size(238, 16);
|
||||
Size size3 = size1;
|
||||
lblCopy2.Size = size3;
|
||||
this.lblCopy.TabIndex = 1;
|
||||
this.lblCopy.Text = "Copyright";
|
||||
this.PictureBox1.Cursor = Cursors.Hand;
|
||||
this.PictureBox1.Image = (Image) CarotDAV.My.Resources.Resources.logo_w;
|
||||
PictureBox pictureBox1_1 = this.PictureBox1;
|
||||
point1 = new Point(248, 0);
|
||||
Point point4 = point1;
|
||||
pictureBox1_1.Location = point4;
|
||||
this.PictureBox1.Name = "PictureBox1";
|
||||
PictureBox pictureBox1_2 = this.PictureBox1;
|
||||
size1 = new Size(100, 82);
|
||||
Size size4 = size1;
|
||||
pictureBox1_2.Size = size4;
|
||||
this.PictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
|
||||
this.PictureBox1.TabIndex = 5;
|
||||
this.PictureBox1.TabStop = false;
|
||||
LinkLabel supportLinkLabel1 = this.SupportLinkLabel;
|
||||
point1 = new Point(8, 60);
|
||||
Point point5 = point1;
|
||||
supportLinkLabel1.Location = point5;
|
||||
this.SupportLinkLabel.Name = "SupportLinkLabel";
|
||||
LinkLabel supportLinkLabel2 = this.SupportLinkLabel;
|
||||
size1 = new Size(216, 16);
|
||||
Size size5 = size1;
|
||||
supportLinkLabel2.Size = size5;
|
||||
this.SupportLinkLabel.TabIndex = 2;
|
||||
this.SupportLinkLabel.TabStop = true;
|
||||
this.SupportLinkLabel.Text = "Support URI";
|
||||
size1 = new Size(5, 12);
|
||||
this.AutoScaleBaseSize = size1;
|
||||
this.BackColor = Color.White;
|
||||
size1 = new Size(354, 82);
|
||||
this.ClientSize = size1;
|
||||
this.Controls.Add((Control) this.SupportLinkLabel);
|
||||
this.Controls.Add((Control) this.PictureBox1);
|
||||
this.Controls.Add((Control) this.lblCopy);
|
||||
this.Controls.Add((Control) this.lblSoftwareName);
|
||||
this.FormBorderStyle = FormBorderStyle.FixedDialog;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = nameof (AboutForm);
|
||||
this.ShowIcon = false;
|
||||
this.ShowInTaskbar = false;
|
||||
this.StartPosition = FormStartPosition.CenterScreen;
|
||||
this.Text = "About";
|
||||
((ISupportInitialize) this.PictureBox1).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
}
|
||||
|
||||
private void AboutForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
Assembly executingAssembly = Assembly.GetExecutingAssembly();
|
||||
string str = executingAssembly.GetName().Version.ToString(3);
|
||||
string product = ((AssemblyProductAttribute) executingAssembly.GetCustomAttributes(typeof (AssemblyProductAttribute), false)[0]).Product;
|
||||
string copyright = ((AssemblyCopyrightAttribute) executingAssembly.GetCustomAttributes(typeof (AssemblyCopyrightAttribute), false)[0]).Copyright;
|
||||
string description = ((AssemblyDescriptionAttribute) executingAssembly.GetCustomAttributes(typeof (AssemblyDescriptionAttribute), false)[0]).Description;
|
||||
this.lblSoftwareName.Text = product + " " + str;
|
||||
this.lblCopy.Text = copyright;
|
||||
this.SupportLinkLabel.Text = "http://rei.to/";
|
||||
this.PictureBox1.Location = new Point(checked (this.ClientRectangle.Width - this.PictureBox1.Width), checked (this.ClientRectangle.Height - this.PictureBox1.Height));
|
||||
}
|
||||
|
||||
private void SupportLinkLabel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.SupportLinkLabel.LinkVisited = true;
|
||||
try
|
||||
{
|
||||
Process.Start(this.SupportLinkLabel.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ProjectData.SetProjectError(ex);
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
}
|
||||
|
||||
private void PictureBox1_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
Process.Start(this.SupportLinkLabel.Text);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
ProjectData.SetProjectError(ex);
|
||||
ProjectData.ClearProjectError();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user