Skip to content

Commit

Permalink
Внесены косметические изменения
Browse files Browse the repository at this point in the history
  • Loading branch information
GASSAG16 committed Sep 23, 2016
1 parent 084a355 commit 0a37369
Show file tree
Hide file tree
Showing 30 changed files with 1,308 additions and 642 deletions.
4 changes: 2 additions & 2 deletions WindowsForms/CustomMarkers/GMapMarkerCircle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GMapMarkerCircle : GMapMarker
/// </summary>
[NonSerialized]
#if !PocketPC
public Brush Fill = new SolidBrush(Color.FromArgb(155, Color.LightSkyBlue));
public Brush Fill = new SolidBrush(Color.FromArgb(155, Color.Transparent));
#else
public Brush Fill = new System.Drawing.SolidBrush(Color.AliceBlue);
#endif
Expand All @@ -47,7 +47,7 @@ public class GMapMarkerCircle : GMapMarker
public GMapMarkerCircle(PointLatLng p)
: base(p)
{
Radius = 150; // 100m
Radius = 300; // 100m
IsHitTestVisible = false;
}

Expand Down
177 changes: 177 additions & 0 deletions WindowsForms/Forms/fmAboutGASSAG.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

105 changes: 105 additions & 0 deletions WindowsForms/Forms/fmAboutGASSAG.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
using System;
using System.Reflection;
using System.Windows.Forms;

namespace WindowsForms.Forms
{
partial class fmAboutGASSAG : Form
{
public fmAboutGASSAG()
{
InitializeComponent();
this.Text = String.Format("О программе {0}", AssemblyTitle);
this.labelProductName.Text = AssemblyProduct;
this.labelVersion.Text = String.Format("Версия {0}", AssemblyVersion);
this.labelCopyright.Text = AssemblyCopyright;
this.textBoxDescription.Text = AssemblyDescription;
}

#region Методы доступа к атрибутам сборки

public string AssemblyTitle
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
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
{
return Assembly.GetExecutingAssembly().GetName().Version.ToString();
}
}

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

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

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

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

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

}
}
Loading

0 comments on commit 0a37369

Please sign in to comment.