Avances ventana Limpieza
parent
49e3a50167
commit
0dca74c4ad
|
|
@ -114,6 +114,9 @@
|
|||
<HintPath>C:\Users\Elena\AppData\Local\Programs\ArcGIS\Pro\bin\ESRI.ArcGIS.ItemIndex.dll</HintPath>
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xceed.Wpf.Toolkit">
|
||||
<HintPath>..\wpftoolkit-master\ExtendedWPFToolkitSolution\Src\Xceed.Wpf.Toolkit\bin\Release\Xceed.Wpf.Toolkit.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AddInContent Include="Config.daml" />
|
||||
|
|
@ -127,10 +130,19 @@
|
|||
<Compile Include="Button\ButtonLimp.cs" />
|
||||
<Compile Include="Button\ButtonMaq.cs" />
|
||||
<Compile Include="Button\ButtonRec.cs" />
|
||||
<Compile Include="View\NumberSpin.cs" />
|
||||
<Compile Include="OptionsMenuItem.cs" />
|
||||
<Compile Include="ViewModel\PaneLimpiezaSub4ViewModel.cs" />
|
||||
<Compile Include="ViewModel\PaneLimpiezaSub3ViewModel.cs" />
|
||||
<Compile Include="ViewModel\PaneLimpiezaSub2ViewModel.cs" />
|
||||
<Compile Include="ViewModel\PaneLimpiezaViewModel.cs" />
|
||||
<Compile Include="ViewModel\PanelViewModelBase.cs" />
|
||||
<Compile Include="View\PaneLimpiezaSub4.xaml.cs">
|
||||
<DependentUpon>PaneLimpiezaSub4.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\PaneLimpiezaSub3.xaml.cs">
|
||||
<DependentUpon>PaneLimpiezaSub3.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="View\PaneLimpiezaSub2.xaml.cs">
|
||||
<DependentUpon>PaneLimpiezaSub2.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
|
@ -178,6 +190,14 @@
|
|||
<Resource Include="OliviaIconPro.ico" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="View\PaneLimpiezaSub4.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="View\PaneLimpiezaSub3.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
<Page Include="View\PaneLimpiezaSub2.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
|
|
|
|||
|
|
@ -60,6 +60,15 @@ namespace OliviaAddInPro {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Busca una cadena traducida similar a Control.
|
||||
/// </summary>
|
||||
internal static string String_ctrol {
|
||||
get {
|
||||
return ResourceManager.GetString("String_ctrol", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Busca una cadena traducida similar a Ya existe una ejecución en marcha.
|
||||
/// </summary>
|
||||
|
|
@ -87,6 +96,15 @@ namespace OliviaAddInPro {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Busca una cadena traducida similar a Tiempos.
|
||||
/// </summary>
|
||||
internal static string String_tiempos {
|
||||
get {
|
||||
return ResourceManager.GetString("String_tiempos", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Busca una cadena traducida similar a Tratamiento.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="String_ctrol" xml:space="preserve">
|
||||
<value>Control</value>
|
||||
</data>
|
||||
<data name="String_existe_ejec" xml:space="preserve">
|
||||
<value>Ya existe una ejecución en marcha</value>
|
||||
</data>
|
||||
|
|
@ -126,6 +129,9 @@
|
|||
<data name="String_selec_capa" xml:space="preserve">
|
||||
<value>Seleccionar capa ...</value>
|
||||
</data>
|
||||
<data name="String_tiempos" xml:space="preserve">
|
||||
<value>Tiempos</value>
|
||||
</data>
|
||||
<data name="String_tto" xml:space="preserve">
|
||||
<value>Tratamiento</value>
|
||||
</data>
|
||||
|
|
|
|||
|
|
@ -21,13 +21,9 @@
|
|||
</DataTemplate>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="1">
|
||||
<ContentPresenter Content="{Binding CurrentPage}"></ContentPresenter>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
<ScrollViewer Height="Auto">
|
||||
<StackPanel>
|
||||
<ContentPresenter Content="{Binding CurrentPage}"></ContentPresenter>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</UserControl>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Xceed.Wpf.Toolkit;
|
||||
|
||||
namespace OliviaAddInPro
|
||||
{
|
||||
class NumberSpin : IntegerUpDown
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300"
|
||||
d:DataContext="{Binding Path=ui.PaneLimpiezaViewModel}">
|
||||
<UserControl.Resources>
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
|
||||
|
|
@ -33,15 +33,20 @@
|
|||
<DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub2ViewModel}">
|
||||
<view:PaneLimpiezaSub2View/>
|
||||
</DataTemplate>
|
||||
<!--DataTemplate DataType="{x:Type viewModel:SubPanel3ViewModel}">
|
||||
<view:SubPanel3View/>
|
||||
</DataTemplate-->
|
||||
<DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub3ViewModel}">
|
||||
<view:PaneLimpiezaSub3View/>
|
||||
</DataTemplate>
|
||||
<DataTemplate DataType="{x:Type viewModel:PaneLimpiezaSub4ViewModel}">
|
||||
<view:PaneLimpiezaSub4View/>
|
||||
</DataTemplate>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<!--TextBlock Text="Add your custom content here" VerticalAlignment="Center" HorizontalAlignment="Center"></-->
|
||||
|
||||
<Grid>
|
||||
<!--TextBlock Text="Add your custom content here" VerticalAlignment="Center" HorizontalAlignment="Center"></-->
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="300"/>
|
||||
<RowDefinition Height="*"/>
|
||||
</Grid.RowDefinitions>
|
||||
<StackPanel Grid.Row="0">
|
||||
|
|
@ -53,8 +58,11 @@
|
|||
SelectedItem="{Binding SelectedOption}">
|
||||
</frameworkControls:TabIndicator>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1">
|
||||
<ContentPresenter Content="{Binding CurrentSubPanelPage}"/>
|
||||
<StackPanel Grid.Row="1">
|
||||
<ContentPresenter Content="{Binding CurrentSubPanelPage}"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="2">
|
||||
<Label Content="botón ejecutar"></Label>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
|
||||
xmlns:ui="clr-namespace:OliviaAddInPro"
|
||||
mc:Ignorable="d" d:DesignWidth="300"
|
||||
d:DataContext="{Binding Path=ui.PaneLimpiezaSub1ViewModel}" Height="343.2">
|
||||
d:DataContext="{Binding Path=ui.PaneLimpiezaSub1ViewModel}" Height="300">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
|
|
@ -14,26 +14,25 @@
|
|||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<ScrollViewer HorizontalAlignment="Left" Margin="0,0,0,0" Width="300" PanningMode="VerticalOnly" Height="366" VerticalAlignment="Top" VerticalScrollBarVisibility="Auto">
|
||||
<StackPanel Orientation="Vertical" Height="266">
|
||||
<Grid Margin="0,5,0,-32">
|
||||
<StackPanel Orientation="Vertical" Height="Auto">
|
||||
<Label Content="Capa de Limpieza" HorizontalAlignment="Left" Margin="15,5,0,0" VerticalAlignment="Top" FontWeight="DemiBold"/>
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="45"/>
|
||||
<ColumnDefinition Width="0*"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="" HorizontalAlignment="Left" Margin="20,10,0,0" VerticalAlignment="Top" Width="16" Height="16" BorderThickness="0">
|
||||
<Button Content="" HorizontalAlignment="Left" Margin="20,3,0,0" VerticalAlignment="Top" Width="16" Height="16" BorderThickness="0">
|
||||
<Button.Background>
|
||||
<ImageBrush ImageSource="openfolder.png"/>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Label Content="{Binding LblCapaLimp}" Grid.Column="1" HorizontalAlignment="Left" Margin="11,0,-231,0" VerticalAlignment="Top" Width="221" Height="30"/>
|
||||
<Label Content="{Binding LblCapaLimp}" Grid.Column="1" HorizontalAlignment="Left" Margin="13,0,0,0" VerticalAlignment="Top" Width="221" Height="30" Grid.ColumnSpan="3"/>
|
||||
</Grid>
|
||||
<Label Content="Tipo de Tratamiento" HorizontalAlignment="Left" Margin="20,35,0,0" VerticalAlignment="Top"/>
|
||||
<ComboBox HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Top" Width="260"/>
|
||||
<Label Content="Ámbitos de Trabajo" HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.391,-0.203"/>
|
||||
<Label Content="Tipo de Tratamiento" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Top" FontWeight="DemiBold"/>
|
||||
<ComboBox HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Top" Width="260" DropDownOpened="ComboBox_DropDownOpened"/>
|
||||
<Label Content="Ámbitos de Trabajo" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Top" RenderTransformOrigin="-0.391,-0.203" FontWeight="DemiBold"/>
|
||||
<ComboBox HorizontalAlignment="Left" Margin="20,0,0,0" VerticalAlignment="Top" Width="260"/>
|
||||
<ListBox HorizontalAlignment="Left" Height="100" Margin="20,2,0,0" VerticalAlignment="Top" Width="260"/>
|
||||
<CheckBox Content="Respeta el sentido de circulación" HorizontalAlignment="Left" Margin="20,2,0,0" VerticalAlignment="Top"/>
|
||||
</StackPanel>
|
||||
</ScrollViewer>
|
||||
</UserControl>
|
||||
|
|
|
|||
|
|
@ -25,5 +25,10 @@ namespace OliviaAddInPro
|
|||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void ComboBox_DropDownOpened(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,18 +8,79 @@
|
|||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300"
|
||||
d:DataContext="{Binding Path=ui.PaneLimpiezaSub2ViewModel}">
|
||||
<UserControl.Resources>
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<Grid>
|
||||
<Border BorderBrush="{DynamicResource Esri_BorderBrush}" >
|
||||
<StackPanel Orientation="Vertical">
|
||||
<TextBlock Text="{Binding DisplayName}" Margin="50" Style="{DynamicResource Esri_TextBlockH4}" HorizontalAlignment="Center"></TextBlock>
|
||||
<Label Margin="15,5,0,0" Content="Restricciones de circulación" FontWeight="DemiBold"/>
|
||||
<Grid Margin="0,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="45"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="" HorizontalAlignment="Left" Margin="20,3,0,0" VerticalAlignment="Top" Width="16" Height="16" BorderThickness="0">
|
||||
<Button.Background>
|
||||
<ImageBrush ImageSource="openfolder.png"/>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Label Content="{Binding LblCapaRestr}" Grid.Column="1" HorizontalAlignment="Left" Margin="13,0,-33,0" VerticalAlignment="Top" Width="221" Height="30" Grid.ColumnSpan="2"/>
|
||||
</Grid>
|
||||
<Label Margin="15,0,0,0" Content="Niveles" FontWeight="DemiBold"/>
|
||||
<Grid Margin="0,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="45"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="" HorizontalAlignment="Left" Margin="20,3,0,0" VerticalAlignment="Top" Width="16" Height="16" BorderThickness="0">
|
||||
<Button.Background>
|
||||
<ImageBrush ImageSource="openfolder.png"/>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Label Content="{Binding LblCapaNiv}" Grid.Column="1" HorizontalAlignment="Left" Margin="13,0,-33,0" VerticalAlignment="Top" Width="221" Height="30" Grid.ColumnSpan="2"/>
|
||||
</Grid>
|
||||
<Label Margin="15,0,0,0" Content="Zonas" FontWeight="DemiBold"/>
|
||||
<Grid Margin="0,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="45"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="" HorizontalAlignment="Left" Margin="20,3,0,0" VerticalAlignment="Top" Width="16" Height="16" BorderThickness="0">
|
||||
<Button.Background>
|
||||
<ImageBrush ImageSource="openfolder.png"/>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Label Content="{Binding LblCapaZon}" Grid.Column="1" HorizontalAlignment="Left" Margin="13,0,-33,0" VerticalAlignment="Top" Width="221" Height="30" Grid.ColumnSpan="2"/>
|
||||
</Grid>
|
||||
<Label Margin="15,0,0,0" Content="Instalación" FontWeight="DemiBold"/>
|
||||
<Grid Margin="0,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="45"/>
|
||||
<ColumnDefinition Width="200"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Content="" HorizontalAlignment="Left" Margin="20,3,0,0" VerticalAlignment="Top" Width="16" Height="16" BorderThickness="0">
|
||||
<Button.Background>
|
||||
<ImageBrush ImageSource="openfolder.png"/>
|
||||
</Button.Background>
|
||||
</Button>
|
||||
<Label Content="{Binding LblCapaInst}" Grid.Column="1" HorizontalAlignment="Left" Margin="13,0,-33,0" VerticalAlignment="Top" Width="221" Height="30" Grid.ColumnSpan="2"/>
|
||||
</Grid>
|
||||
<Grid Margin="0,5,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="140"/>
|
||||
<ColumnDefinition Width="110"/>
|
||||
<ColumnDefinition Width="50"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Margin="15,0,0,0" Content="Buffer de exportación"/>
|
||||
<TextBox Grid.Column="1" Margin="10,2,30,4" TextWrapping="Wrap" Text="{Binding TxtBuffExport}" TextAlignment="Right"/>
|
||||
<Label Grid.Column="2" Content="m" Margin="0,0,0,0"/>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</Border>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,42 @@
|
|||
<UserControl x:Class="OliviaAddInPro.PaneLimpiezaSub3View"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
|
||||
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
|
||||
xmlns:ui="clr-namespace:OliviaAddInPro"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300"
|
||||
d:DataContext="{Binding Path=ui.PaneLimpiezaSub3ViewModel}">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<StackPanel Orientation="Vertical">
|
||||
<Grid Margin="0,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="120"/>
|
||||
<ColumnDefinition Width="180"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="Puntos de control" HorizontalAlignment="Left" Margin="15,5,0,0" VerticalAlignment="Top" Width="177" Height="30" Grid.ColumnSpan="2"/>
|
||||
<xctk:IntegerUpDown Grid.Column="1" Height="20" Width="70" FormatString="N0" Value="3" Increment="1" Maximum="10" Minimum="3" Margin="8,10,102,5"/>
|
||||
</Grid>
|
||||
<Label Content="Sectores" HorizontalAlignment="Left" Margin="15,5,0,0" VerticalAlignment="Top" Width="177" Height="30" FontWeight="DemiBold"/>
|
||||
|
||||
<Grid Margin="0,0,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="110"/>
|
||||
<ColumnDefinition Width="Auto" MinWidth="89"/>
|
||||
<ColumnDefinition Width="Auto" MinWidth="100"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Label Content="Nº de sectores" HorizontalAlignment="Left" Margin="15,0,0,0" VerticalAlignment="Top" Width="90" Height="30"/>
|
||||
<xctk:IntegerUpDown Grid.Column="1" Height="20" Width="70" FormatString="N0" Value="3" Increment="1" Maximum="20" Minimum="1" Margin="17,4,2,6"/>
|
||||
<CheckBox Grid.Column="2" Margin="9,6,9,-1" Content="Automático"/>
|
||||
</Grid>
|
||||
<CheckBox Margin="18,5,0,0" Content="Ajustar sectores a jornada"/>
|
||||
</StackPanel>
|
||||
</UserControl>
|
||||
|
|
@ -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 OliviaAddInPro
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for PaneLimpiezaSub2View.xaml
|
||||
/// </summary>
|
||||
public partial class PaneLimpiezaSub3View : UserControl
|
||||
{
|
||||
public PaneLimpiezaSub3View()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<UserControl x:Class="OliviaAddInPro.PaneLimpiezaSub4View"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
|
||||
xmlns:ui="clr-namespace:OliviaAddInPro"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300"
|
||||
d:DataContext="{Binding Path=ui.PaneLimpiezaSub4ViewModel}">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
|
||||
</UserControl>
|
||||
|
|
@ -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 OliviaAddInPro
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for PaneLimpiezaSub2View.xaml
|
||||
/// </summary>
|
||||
public partial class PaneLimpiezaSub4View : UserControl
|
||||
{
|
||||
public PaneLimpiezaSub4View()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,9 +19,50 @@ namespace OliviaAddInPro
|
|||
{
|
||||
internal class PaneLimpiezaSub2ViewModel : PanelViewModelBase
|
||||
{
|
||||
public PaneLimpiezaSub2ViewModel()
|
||||
{
|
||||
lblCapaRestr= lblCapaNiv= lblCapaZon= lblCapaInst = Resource1.String_selec_capa;
|
||||
txtBuffExport = "1000";
|
||||
}
|
||||
|
||||
|
||||
#region Properties
|
||||
|
||||
public override string DisplayName
|
||||
{
|
||||
get { return "Opción 2 se muestra"; }
|
||||
get { return Resource1.String_zonif; }
|
||||
}
|
||||
|
||||
private string lblCapaRestr;
|
||||
public string LblCapaRestr
|
||||
{
|
||||
get { return lblCapaRestr; }
|
||||
set { LblCapaRestr = lblCapaRestr; }
|
||||
}
|
||||
private string lblCapaNiv;
|
||||
public string LblCapaNiv
|
||||
{
|
||||
get { return lblCapaNiv; }
|
||||
set { LblCapaNiv = lblCapaNiv; }
|
||||
}
|
||||
private string lblCapaZon;
|
||||
public string LblCapaZon
|
||||
{
|
||||
get { return lblCapaZon; }
|
||||
set { LblCapaZon = lblCapaZon; }
|
||||
}
|
||||
private string lblCapaInst;
|
||||
public string LblCapaInst
|
||||
{
|
||||
get { return lblCapaInst; }
|
||||
set { LblCapaInst = lblCapaInst; }
|
||||
}
|
||||
private string txtBuffExport;
|
||||
public string TxtBuffExport
|
||||
{
|
||||
get { return txtBuffExport; }
|
||||
set { TxtBuffExport = txtBuffExport; }
|
||||
}
|
||||
#endregion Properties
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
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 OliviaAddInPro
|
||||
{
|
||||
internal class PaneLimpiezaSub3ViewModel : PanelViewModelBase
|
||||
{
|
||||
public PaneLimpiezaSub3ViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
#region Properties
|
||||
|
||||
public override string DisplayName
|
||||
{
|
||||
get { return Resource1.String_ctrol; }
|
||||
}
|
||||
|
||||
/*private string lblCapaRestr;
|
||||
public string LblCapaRestr
|
||||
{
|
||||
get { return lblCapaRestr; }
|
||||
set { LblCapaRestr = lblCapaRestr; }
|
||||
}*/
|
||||
|
||||
#endregion Properties
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
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 OliviaAddInPro
|
||||
{
|
||||
internal class PaneLimpiezaSub4ViewModel : PanelViewModelBase
|
||||
{
|
||||
public PaneLimpiezaSub4ViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
#region Properties
|
||||
|
||||
public override string DisplayName
|
||||
{
|
||||
get { return Resource1.String_tiempos; }
|
||||
}
|
||||
|
||||
/*private string lblCapaRestr;
|
||||
public string LblCapaRestr
|
||||
{
|
||||
get { return lblCapaRestr; }
|
||||
set { LblCapaRestr = lblCapaRestr; }
|
||||
}*/
|
||||
|
||||
#endregion Properties
|
||||
}
|
||||
}
|
||||
|
|
@ -12,18 +12,21 @@ namespace OliviaAddInPro
|
|||
{
|
||||
private PaneLimpiezaSub1ViewModel _subPanel1ViewModel;
|
||||
private PaneLimpiezaSub2ViewModel _subPanel2ViewModel;
|
||||
//private SubPanel3ViewModel _subPanel3ViewModel;
|
||||
private PaneLimpiezaSub3ViewModel _subPanel3ViewModel;
|
||||
private PaneLimpiezaSub4ViewModel _subPanel4ViewModel;
|
||||
public PaneLimpiezaViewModel()
|
||||
{
|
||||
_subPanel1ViewModel = new PaneLimpiezaSub1ViewModel();
|
||||
_subPanel2ViewModel = new PaneLimpiezaSub2ViewModel();
|
||||
//_subPanel3ViewModel = new SubPanel3ViewModel();
|
||||
_subPanel3ViewModel = new PaneLimpiezaSub3ViewModel();
|
||||
_subPanel4ViewModel = new PaneLimpiezaSub4ViewModel();
|
||||
|
||||
OptionsMenu = new ObservableCollection<OptionsMenuItem>
|
||||
{
|
||||
new OptionsMenuItem(new BitmapImage(new Uri("pack://application:,,,/OliviaAddInPro;component/Resources/Dog32.png")), Resource1.String_tto, _subPanel1ViewModel),
|
||||
new OptionsMenuItem(new BitmapImage(new Uri("pack://application:,,,/OliviaAddInPro;component/Resources/Dino32.png")), Resource1.String_zonif, _subPanel2ViewModel),
|
||||
//new OptionsMenuItem(new BitmapImage(new Uri("pack://application:,,,/CustomCatalog;component/Resources/panda-32.png")), "Option 3", _subPanel3ViewModel)
|
||||
new OptionsMenuItem(new BitmapImage(new Uri("pack://application:,,,/OliviaAddInPro;component/Resources/Cat32.png")), Resource1.String_ctrol, _subPanel3ViewModel),
|
||||
new OptionsMenuItem(new BitmapImage(new Uri("pack://application:,,,/OliviaAddInPro;component/Resources/Panda32.png")), Resource1.String_tiempos, _subPanel4ViewModel)
|
||||
};
|
||||
SelectedOption = OptionsMenu[0];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue