Skip to content

Commit

Permalink
unused
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Mar 29, 2018
1 parent bd2b5cb commit bb5ad56
Show file tree
Hide file tree
Showing 20 changed files with 85 additions and 127 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
namespace ProEvergreen.ProAddIn {
namespace ProEvergreen.AddIn {
using ArcGIS.Desktop.Framework;
using ArcGIS.Desktop.Framework.Contracts;

internal class Module1 : Module {
private static Module1 _this;
internal class AddinModule : Module {
private static AddinModule _this;

/// <summary>
/// Retrieve the singleton instance to this module here
/// </summary>
public static Module1 Current => _this ?? (_this = (Module1) FrameworkApplication.FindModule("ProAddIn_Module"));
public static AddinModule Current => _this ?? (_this = (AddinModule) FrameworkApplication.FindModule("ProEvergreen_AddIn_Module"));

#region Overrides

Expand All @@ -22,21 +22,19 @@ protected override bool CanUnload() {
return true;
}

public string Version() {
var updator = new SelfUpdate("agrc", "TrailsAddin");
var version = updator.GetCurrentAddInVersion();
#endregion Overrides

public void ShowVersion() {
var updator = new SelfUpdate("steveoh", "pro-evergreen");
var versionInformation = updator.GetCurrentAddInVersion();

var a = new Notification {
Message = version.ToString(),
var version = new Notification {
Message = versionInformation.ToString(),
ImageUrl = "",
Title = "Add in Version Information"
};

FrameworkApplication.AddNotification(a);

return version.ToString();
FrameworkApplication.AddNotification(version);
}

#endregion Overrides
}
}
39 changes: 39 additions & 0 deletions ProEvergreen.AddIn/Config.daml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<ArcGIS defaultAssembly="ProEvergreen.AddIn.dll" defaultNamespace="ProEvergreen.AddIn"
xmlns="http://schemas.esri.com/DADF/Registry" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://schemas.esri.com/DADF/Registry file:///C:/Program%20Files/ArcGIS/Pro/bin/ArcGIS.Desktop.Framework.xsd">
<AddInInfo id="{06c1344d-a9d3-4c36-ae5c-2e9cec65b4a7}" version="1.0" desktopVersion="2.1.10257">
<Name>ProEvergreen.AddIn</Name>
<Description>As addin to test the use of the updator</Description>
<Image>Images\AddinDesktop32.png</Image>
<Author>steveoh</Author>
<Company>agrc</Company>
<Date>3/28/2018 6:40:55 PM, 2018</Date>
<Subject>Framework</Subject>
<!-- Note subject can be one or more of these topics:
Content, Framework, Editing, Geodatabase, Geometry, Geoprocessing, Layouts, Map Authoring, Map Exploration -->
</AddInInfo>
<modules>
<insertModule id="ProEvergreen_AddIn_Module" className="AddinModule" autoLoad="false" caption="AddinModule">
<!-- uncomment to have the control hosted on a separate tab-->
<tabs>
<!--<tab id="ProEvergreen.AddIn_Tab1" caption="New Tab">
<group refID="ProEvergreen.AddIn_Group1"/>
</tab>-->
</tabs>
<groups>
<!-- comment this out if you have no controls on the Addin tab to avoid
an empty group-->
<group id="ProEvergreen_AddIn_Group1" caption="Evergreen" appearsOnAddInTab="true">
<!-- host controls within groups -->
<button refID="ProEvergreen_AddIn_GetVersionButton" size="large" />
</group>
</groups>
<controls>
<!-- add your controls here -->
<button id="ProEvergreen_AddIn_GetVersionButton" caption="Get Version" className="GetVersionButton" loadOnClick="true" smallImage="Images\GenericButtonBlue16.png" largeImage="Images\GenericButtonBlue32.png">
<tooltip heading="Tooltip Heading">Is there a newer version?<disabledText /></tooltip>
</button>
</controls>
</insertModule>
</modules>
</ArcGIS>
9 changes: 9 additions & 0 deletions ProEvergreen.AddIn/GetVersionButton.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace ProEvergreen.AddIn {
using ArcGIS.Desktop.Framework.Contracts;

internal class GetVersionButton : Button {
protected override void OnClick() {
AddinModule.Current.ShowVersion();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{32A819F0-27C4-4166-B49F-E296F159DE62}</ProjectGuid>
<ProjectGuid>{06C1344D-A9D3-4C36-AE5C-2E9CEC65B4A7}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ProEvergreen.ProAddIn</RootNamespace>
<AssemblyName>ProEvergreen.ProAddIn</AssemblyName>
<RootNamespace>ProEvergreen.AddIn</RootNamespace>
<AssemblyName>ProEvergreen.AddIn</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
Expand Down Expand Up @@ -88,17 +88,15 @@
</Reference>
</ItemGroup>
<ItemGroup>
<AddInContent Include="Config.daml">
<SubType>Designer</SubType>
</AddInContent>
<AddInContent Include="Config.daml" />
<AddInContent Include="Images\AddInDesktop16.png" />
<AddInContent Include="Images\AddInDesktop32.png" />
<AddInContent Include="DarkImages\AddInDesktop16.png" />
<AddInContent Include="DarkImages\AddInDesktop32.png" />
</ItemGroup>
<ItemGroup>
<Compile Include="Button1.cs" />
<Compile Include="Module1.cs" />
<Compile Include="GetVersionButton.cs" />
<Compile Include="AddinModule.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand All @@ -115,7 +113,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ProEvergreen\ProEvergreen.csproj">
<Project>{4d7369eb-ef50-4dfd-9a4f-7a51b0e219b0}</Project>
<Project>{4D7369EB-EF50-4DFD-9A4F-7A51B0E219B0}</Project>
<Name>ProEvergreen</Name>
</ProjectReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("ProAddIn")]
[assembly: AssemblyTitle("ProEvergreen.AddIn")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Acme")]
[assembly: AssemblyProduct("ProAddIn")]
[assembly: AssemblyCompany("AGRC")]
[assembly: AssemblyProduct("ProEvergreen.AddIn")]
[assembly: AssemblyCopyright("Copyright © Acme 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -20,7 +19,7 @@
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("32a819f0-27c4-4166-b49f-e296f159de62")]
[assembly: Guid("06c1344d-a9d3-4c36-ae5c-2e9cec65b4a7")]

// Version information for an assembly consists of the following four values:
//
Expand Down
9 changes: 0 additions & 9 deletions ProEvergreen.ProAddIn/Button1.cs

This file was deleted.

37 changes: 0 additions & 37 deletions ProEvergreen.ProAddIn/Config.daml

This file was deleted.

12 changes: 6 additions & 6 deletions ProEvergreen.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ VisualStudioVersion = 15.0.27428.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProEvergreen", "ProEvergreen\ProEvergreen.csproj", "{4D7369EB-EF50-4DFD-9A4F-7A51B0E219B0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProEvergreen.ProAddIn", "ProEvergreen.ProAddIn\ProEvergreen.ProAddIn.csproj", "{32A819F0-27C4-4166-B49F-E296F159DE62}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProEvergreen.tests", "ProEvergreen.tests\ProEvergreen.tests.csproj", "{6E1DF358-59ED-43E2-B509-9C6F163177D4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProEvergreen.AddIn", "ProEvergreen.AddIn\ProEvergreen.AddIn.csproj", "{06C1344D-A9D3-4C36-AE5C-2E9CEC65B4A7}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -19,14 +19,14 @@ Global
{4D7369EB-EF50-4DFD-9A4F-7A51B0E219B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D7369EB-EF50-4DFD-9A4F-7A51B0E219B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D7369EB-EF50-4DFD-9A4F-7A51B0E219B0}.Release|Any CPU.Build.0 = Release|Any CPU
{32A819F0-27C4-4166-B49F-E296F159DE62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32A819F0-27C4-4166-B49F-E296F159DE62}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32A819F0-27C4-4166-B49F-E296F159DE62}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32A819F0-27C4-4166-B49F-E296F159DE62}.Release|Any CPU.Build.0 = Release|Any CPU
{6E1DF358-59ED-43E2-B509-9C6F163177D4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6E1DF358-59ED-43E2-B509-9C6F163177D4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6E1DF358-59ED-43E2-B509-9C6F163177D4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6E1DF358-59ED-43E2-B509-9C6F163177D4}.Release|Any CPU.Build.0 = Release|Any CPU
{06C1344D-A9D3-4C36-AE5C-2E9CEC65B4A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{06C1344D-A9D3-4C36-AE5C-2E9CEC65B4A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{06C1344D-A9D3-4C36-AE5C-2E9CEC65B4A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{06C1344D-A9D3-4C36-AE5C-2E9CEC65B4A7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
7 changes: 3 additions & 4 deletions ProEvergreen.tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("selfupdate.tests")]
[assembly: AssemblyTitle("ProEvergreen.tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("selfupdate.tests")]
[assembly: AssemblyCompany("AGRC")]
[assembly: AssemblyProduct("ProEvergreen")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand Down
2 changes: 1 addition & 1 deletion ProEvergreen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

internal class Program {
private static void Main() {
var updator = new SelfUpdate("steveoh", "ProEvergreen");
var updator = new SelfUpdate("steveoh", "pro-evergreen");
var release = updator.GetLatestReleaseFromGithub().Result;

var version = updator.GetCurrentAddInVersion();
Expand Down
9 changes: 4 additions & 5 deletions ProEvergreen/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("selfupdate.example")]
[assembly: AssemblyTitle("ProEvergreen")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("selfupdate")]
[assembly: AssemblyCompany("AGRC")]
[assembly: AssemblyProduct("ProEvergreen")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
Expand All @@ -20,7 +19,7 @@
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("32a819f0-27c4-4166-b49f-e296f159de62")]
[assembly: Guid("06c1344d-a9d3-4c36-ae5c-2e9cec65b4a7")]

// Version information for an assembly consists of the following four values:
//
Expand Down
37 changes: 0 additions & 37 deletions ProEvergreen/selfupdate.sln

This file was deleted.

0 comments on commit bb5ad56

Please sign in to comment.