Skip to content

Commit

Permalink
Format and Clean
Browse files Browse the repository at this point in the history
Added formatting settings export
  • Loading branch information
Juniormunk committed Jun 24, 2024
1 parent 92cb8fc commit a029de7
Show file tree
Hide file tree
Showing 44 changed files with 1,455 additions and 2,828 deletions.
244 changes: 244 additions & 0 deletions Exported-2024-06-23.vssettings

Large diffs are not rendered by default.

65 changes: 0 additions & 65 deletions Motion-Profile-Mapper/Motion-Profile-Mapper/Extensions.cs

This file was deleted.

76 changes: 27 additions & 49 deletions Motion-Profile-Mapper/Motion-Profile-Mapper/Forms/AboutBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MotionProfileMapper
{
partial class AboutBox : Form
{
public AboutBox()
{
namespace MotionProfileMapper {
partial class AboutBox : Form {
public AboutBox() {
InitializeComponent();
this.Text = String.Format("About {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
Expand All @@ -24,86 +21,67 @@ public AboutBox()

#region Assembly Attribute Accessors

public string AssemblyTitle
{
get
{
public string AssemblyTitle {
get {
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (titleAttribute.Title != "")
{
if (attributes.Length > 0) {
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute) attributes[0];
if (titleAttribute.Title != "") {
return titleAttribute.Title;
}
}
return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}

public string AssemblyVersion
{
get
{
public string AssemblyVersion {
get {
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}

public string AssemblyDescription
{
get
{
public string AssemblyDescription {
get {
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
if (attributes.Length == 0)
{
if (attributes.Length == 0) {
return "";
}
return ((AssemblyDescriptionAttribute)attributes[0]).Description;
return ( (AssemblyDescriptionAttribute) attributes[0] ).Description;
}
}

public string AssemblyProduct
{
get
{
public string AssemblyProduct {
get {
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute), false);
if (attributes.Length == 0)
{
if (attributes.Length == 0) {
return "";
}
return ((AssemblyProductAttribute)attributes[0]).Product;
return ( (AssemblyProductAttribute) attributes[0] ).Product;
}
}

public string AssemblyCopyright
{
get
{
public string AssemblyCopyright {
get {
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
if (attributes.Length == 0)
{
if (attributes.Length == 0) {
return "";
}
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
return ( (AssemblyCopyrightAttribute) attributes[0] ).Copyright;
}
}

public string AssemblyCompany
{
get
{
public string AssemblyCompany {
get {
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute), false);
if (attributes.Length == 0)
{
if (attributes.Length == 0) {
return "";
}
return ((AssemblyCompanyAttribute)attributes[0]).Company;
return ( (AssemblyCompanyAttribute) attributes[0] ).Company;
}
}
#endregion

private void okButton_Click(object sender, EventArgs e)
{
private void okButton_Click(object sender, EventArgs e) {
this.Close();
}
}
Expand Down
Loading

0 comments on commit a029de7

Please sign in to comment.