commit b8af9a1c04c928f203a845abd62e517a5c104a01 Author: Elena Date: Mon Feb 22 22:27:18 2021 +0100 Primer clonado de la prueba para addIn en ArcGIS Pro diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4397fe5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/obj/Debug/* +/bin/* +/.vs/PruebaAddIn/v16/.suo diff --git a/Button1.cs b/Button1.cs new file mode 100644 index 0000000..e63e487 --- /dev/null +++ b/Button1.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ArcGIS.Core.CIM; +using ArcGIS.Core.Data; +using ArcGIS.Core.Geometry; +using ArcGIS.Desktop.Catalog; +using ArcGIS.Desktop.Core; +using ArcGIS.Desktop.Editing; +using ArcGIS.Desktop.Extensions; +using ArcGIS.Desktop.Framework; +using ArcGIS.Desktop.Framework.Contracts; +using ArcGIS.Desktop.Framework.Dialogs; +using ArcGIS.Desktop.Framework.Threading.Tasks; +using ArcGIS.Desktop.Mapping; + +namespace PruebaAddIn +{ + internal class Button1 : Button + { + protected override void OnClick() + { + InicioDlg w1 = new InicioDlg(); + w1.Show(); + } + } +} diff --git a/Config.daml b/Config.daml new file mode 100644 index 0000000..e4a748d --- /dev/null +++ b/Config.daml @@ -0,0 +1,44 @@ + + + PruebaAddIn + PruebaAddIn description + Images\AddinDesktop32.png + Elena + Acme + 03/08/2020 10:46:43, 2020 + Framework + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/DarkImages/AddInDesktop16.png b/DarkImages/AddInDesktop16.png new file mode 100644 index 0000000..0118942 Binary files /dev/null and b/DarkImages/AddInDesktop16.png differ diff --git a/DarkImages/AddInDesktop32.png b/DarkImages/AddInDesktop32.png new file mode 100644 index 0000000..9713e3b Binary files /dev/null and b/DarkImages/AddInDesktop32.png differ diff --git a/DarkImages/GenericButtonBlue16.png b/DarkImages/GenericButtonBlue16.png new file mode 100644 index 0000000..20b1187 Binary files /dev/null and b/DarkImages/GenericButtonBlue16.png differ diff --git a/DarkImages/GenericButtonBlue32.png b/DarkImages/GenericButtonBlue32.png new file mode 100644 index 0000000..e3b26ab Binary files /dev/null and b/DarkImages/GenericButtonBlue32.png differ diff --git a/DarkImages/GenericButtonPurple16.png b/DarkImages/GenericButtonPurple16.png new file mode 100644 index 0000000..013686b Binary files /dev/null and b/DarkImages/GenericButtonPurple16.png differ diff --git a/DarkImages/GenericButtonPurple32.png b/DarkImages/GenericButtonPurple32.png new file mode 100644 index 0000000..7d871f5 Binary files /dev/null and b/DarkImages/GenericButtonPurple32.png differ diff --git a/Dockpane1.xaml b/Dockpane1.xaml new file mode 100644 index 0000000..303b478 --- /dev/null +++ b/Dockpane1.xaml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Dockpane1.xaml.cs b/Dockpane1.xaml.cs new file mode 100644 index 0000000..6d91b68 --- /dev/null +++ b/Dockpane1.xaml.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + + +namespace PruebaAddIn +{ + /// + /// Interaction logic for Dockpane1View.xaml + /// + public partial class Dockpane1View : UserControl + { + public Dockpane1View() + { + InitializeComponent(); + } + } +} diff --git a/Dockpane1ViewModel.cs b/Dockpane1ViewModel.cs new file mode 100644 index 0000000..3779685 --- /dev/null +++ b/Dockpane1ViewModel.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ArcGIS.Core.CIM; +using ArcGIS.Core.Data; +using ArcGIS.Core.Geometry; +using ArcGIS.Desktop.Catalog; +using ArcGIS.Desktop.Core; +using ArcGIS.Desktop.Editing; +using ArcGIS.Desktop.Extensions; +using ArcGIS.Desktop.Framework; +using ArcGIS.Desktop.Framework.Contracts; +using ArcGIS.Desktop.Framework.Dialogs; +using ArcGIS.Desktop.Framework.Threading.Tasks; +using ArcGIS.Desktop.Mapping; + + +namespace PruebaAddIn +{ + internal class Dockpane1ViewModel : DockPane + { + private const string _dockPaneID = "PruebaAddIn_Dockpane1"; + + protected Dockpane1ViewModel() { } + + /// + /// Show the DockPane. + /// + internal static void Show() + { + DockPane pane = FrameworkApplication.DockPaneManager.Find(_dockPaneID); + if (pane == null) + return; + + pane.Activate(); + } + + /// + /// Text shown near the top of the DockPane. + /// + private string _heading = "My DockPane"; + public string Heading + { + get { return _heading; } + set + { + SetProperty(ref _heading, value, () => Heading); + } + } + } + + /// + /// Button implementation to show the DockPane. + /// + internal class Dockpane1_ShowButton : Button + { + protected override void OnClick() + { + Dockpane1ViewModel.Show(); + } + } +} diff --git a/Images/AddInDesktop16.png b/Images/AddInDesktop16.png new file mode 100644 index 0000000..be3cdda Binary files /dev/null and b/Images/AddInDesktop16.png differ diff --git a/Images/AddInDesktop32.png b/Images/AddInDesktop32.png new file mode 100644 index 0000000..b3d5c8e Binary files /dev/null and b/Images/AddInDesktop32.png differ diff --git a/Images/GenericButtonPurple16.png b/Images/GenericButtonPurple16.png new file mode 100644 index 0000000..01b0895 Binary files /dev/null and b/Images/GenericButtonPurple16.png differ diff --git a/Images/GenericButtonPurple32.png b/Images/GenericButtonPurple32.png new file mode 100644 index 0000000..39f62db Binary files /dev/null and b/Images/GenericButtonPurple32.png differ diff --git a/Images/OliviaIconPro16.png b/Images/OliviaIconPro16.png new file mode 100644 index 0000000..be3cdda Binary files /dev/null and b/Images/OliviaIconPro16.png differ diff --git a/Images/OliviaIconPro32.png b/Images/OliviaIconPro32.png new file mode 100644 index 0000000..b3d5c8e Binary files /dev/null and b/Images/OliviaIconPro32.png differ diff --git a/Images/OliviaIconPro32Web.png b/Images/OliviaIconPro32Web.png new file mode 100644 index 0000000..a7bc569 Binary files /dev/null and b/Images/OliviaIconPro32Web.png differ diff --git a/Images/carrito.png b/Images/carrito.png new file mode 100644 index 0000000..73ac8da Binary files /dev/null and b/Images/carrito.png differ diff --git a/Images/contenedor.png b/Images/contenedor.png new file mode 100644 index 0000000..765af6d Binary files /dev/null and b/Images/contenedor.png differ diff --git a/Images/maqueta.png b/Images/maqueta.png new file mode 100644 index 0000000..8c699a3 Binary files /dev/null and b/Images/maqueta.png differ diff --git a/InicioDlg.xaml b/InicioDlg.xaml new file mode 100644 index 0000000..ffc8883 --- /dev/null +++ b/InicioDlg.xaml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + +