Commit b0fa5866 by gema

vistas: listado de consultas , crear consulta nueva y detalles de una cosnsulta.

parent 2921a6f4
...@@ -277,7 +277,9 @@ ...@@ -277,7 +277,9 @@
<Compile Include="Renderers\CustomFontLabelRenderer.cs" /> <Compile Include="Renderers\CustomFontLabelRenderer.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.config" /> <None Include="app.config">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Resources\AboutResources.txt" /> <None Include="Resources\AboutResources.txt" />
<None Include="Properties\AndroidManifest.xml" /> <None Include="Properties\AndroidManifest.xml" />
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace inutralia.Properties {
using System;
using System.Reflection;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("inutralia.Properties.Resources", typeof(Resources).GetTypeInfo().Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 1.3
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET Framework object]
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
...@@ -394,7 +394,7 @@ ...@@ -394,7 +394,7 @@
</Label> </Label>
<!--text preguntas al especialista--> <!--text preguntas al especialista-->
<Label Text="Preguntas al Nutricionista" Grid.Row="6" Grid.Column="1" YAlign="Center" FontSize="15" TextColor="{ DynamicResource ListViewItemTextColor }" > <Label Text="Consultas al Nutricionista" Grid.Row="6" Grid.Column="1" YAlign="Center" FontSize="15" TextColor="{ DynamicResource ListViewItemTextColor }" >
<Label.FontSize> <Label.FontSize>
<OnIdiom x:TypeArguments="x:Double" <OnIdiom x:TypeArguments="x:Double"
Phone="15" Phone="15"
......
namespace inutralia.Views namespace inutralia.Views
{ {
using inutralia.Views.Question; using inutralia.Views.Question;
using inutralia.Views.NutriQuestion;
using System; using System;
using Xamarin.Forms; using Xamarin.Forms;
...@@ -50,7 +52,7 @@ ...@@ -50,7 +52,7 @@
void OnTapGestureQuestion(object sender, EventArgs args) void OnTapGestureQuestion(object sender, EventArgs args)
{ {
RootPage?.Navigation<QuestionListView>(); RootPage?.Navigate<NutriQuestionListView>();
} }
} }
} }
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<StackLayout x:Name="btnQuestionSpecialist" Orientation="Horizontal" Padding="10,0,0,0" Spacing="25" > <StackLayout x:Name="btnQuestionSpecialist" Orientation="Horizontal" Padding="10,0,0,0" Spacing="25" >
<Label Text="{ x:Static local:IoniciconsFont.IosChatboxesOutline }" FontSize="40" Style="{StaticResource FontIcon}" HorizontalOptions="Center" VerticalOptions="Center" TextColor="{ DynamicResource ListViewItemTextColor }" /> <Label Text="{ x:Static local:IoniciconsFont.IosChatboxesOutline }" FontSize="40" Style="{StaticResource FontIcon}" HorizontalOptions="Center" VerticalOptions="Center" TextColor="{ DynamicResource ListViewItemTextColor }" />
<Label FontSize="Medium" Text="Preguntas al Nutricionista" TextColor="{ DynamicResource ListViewItemTextColor }" VerticalTextAlignment="Center" /> <Label FontSize="Medium" Text="Consultas al Nutricionista" TextColor="{ DynamicResource ListViewItemTextColor }" VerticalTextAlignment="Center" />
</StackLayout> </StackLayout>
<StackLayout> <StackLayout>
......
namespace inutralia.Views namespace inutralia.Views
{ {
using inutralia.Views.Question; // using inutralia.Views.Question;
using inutralia.Views.NutriQuestion;
using Xamarin.Forms; using Xamarin.Forms;
public partial class MenuView : ContentPage public partial class MenuView : ContentPage
...@@ -82,7 +83,7 @@ ...@@ -82,7 +83,7 @@
void OnBtnQuestionSpecialistClicked() void OnBtnQuestionSpecialistClicked()
{ {
(App.Current.MainPage as RootPage).Navigation<QuestionListView>(); (App.Current.MainPage as RootPage).Navigate<NutriQuestionListView>();
} }
void OnLoginOutClicked() void OnLoginOutClicked()
......
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.Views.NutriQuestion.CreateNutriQuestion"
Title="Crear una Consulta"
BackgroundColor="#ffffff">
<ContentPage.Content >
<StackLayout Orientation="Vertical"
Padding="20"
BackgroundColor="#ffffff"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand">
<Image Source="logo_empresa.png"
Aspect="AspectFit"
WidthRequest="200"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand"/>
<Label Text="Puedes enviar una nueva consulta rellenando este formulario"
HorizontalTextAlignment="Center"
FontSize="Medium"
FontAttributes="Bold" />
<Entry x:Name = "asunto"
Placeholder="Asunto"
Margin="0,30,0,0"/>
<Editor Text="Consulta"
x:Name="consultaEditor"
HeightRequest="100"
VerticalOptions="FillAndExpand" />
<Button Text="ENVIAR CONSULTA >"
HorizontalOptions="FillAndExpand"
BackgroundColor="#333333"
TextColor="#ffffff"
Margin="0,30,0,0" />
</StackLayout>
</ContentPage.Content>
</ContentPage>
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace inutralia.Views.NutriQuestion
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class CreateNutriQuestion : ContentPage
{
public CreateNutriQuestion()
{
InitializeComponent();
/* if (consultaEditor.Text == null)
{
consultaEditor.Placeholder = "Please work";
}*/
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.Views.NutriQuestion.DetailsNutriQuestionListView"
Title="Detalles De La consulta">
<Grid Padding="10,10,10,10">
<Grid.RowDefinitions>
<RowDefinition Height="10*" />
<RowDefinition Height="70*"/>
<RowDefinition Height="20*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<!--cabecera con asunto de consulta-->
<StackLayout Grid.Row="0" Grid.Column="0"
BackgroundColor="#333333">
<Label
Margin="15,15,0,15"
TextColor="#ffffff"
FontAttributes="Bold"
Text="Asunto mi consulta con un texto de longitud media"/>
</StackLayout>
<!--lista con conversación chat-->
<ListView Grid.Row="1" Grid.Column="0"
x:Name="MyListView"
ItemsSource="{Binding Bubbles}"
ItemTapped="Handle_ItemTapped"
CachingStrategy="RecycleElement"
HasUnevenRows ="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid Padding="10,10,10,10">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20*" />
<ColumnDefinition Width="80*" />
</Grid.ColumnDefinitions>
<!-- row 3 span, col 0 icono -->
<Image Grid.RowSpan="2" Grid.Column="0"
Source="{Binding Icono}"
Aspect="AspectFit"
WidthRequest="45"
HorizontalOptions="Start"
VerticalOptions="CenterAndExpand"/>
<!-- row 1 span, col 0 icono -->
<Label Grid.Row="0" Grid.Column="1"
TextColor="#000000"
FontAttributes="Bold"
Text="{Binding Mensaje}"/>
<Label Grid.Row="1" Grid.Column="1"
FontSize="Micro"
TextColor="#000000"
Text="{Binding Fecha}"/>
<Label Grid.Row="1" Grid.Column="1"
XAlign="End"
FontSize="Micro"
TextColor="#000000"
Text="{Binding Leida}"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<StackLayout Grid.Row="2" Grid.Column="0" >
<Editor Text="Escribe un mensaje..."
x:Name="consultaEditor"
HeightRequest="45"
VerticalOptions="FillAndExpand" />
<Button Text="ENVIAR >"
HorizontalOptions="FillAndExpand"
BackgroundColor="#333333"
TextColor="#ffffff"
Margin="0,30,0,0" />
</StackLayout>
</Grid>
</ContentPage>
using System;
using System.Collections.Generic;
using inutralia.Views.NutriQuestion;
using Xamarin.Forms;
public class Bubble
{
public string Id { get; set; }
public string Mensaje { get; set; }
public string Icono { get; set; }
public string Fecha { get; set; }
public string Leida { get; set; }
public override string ToString()
{
return Mensaje;
}
}
namespace inutralia.Views.NutriQuestion
{
public partial class DetailsNutriQuestionListView : ContentPage
{
public IList<Bubble> Bubbles { get; private set; }
public DetailsNutriQuestionListView()
{
InitializeComponent();
Bubbles = new List<Bubble>();
Bubbles.Add(new Bubble
{
Id = "1",
Mensaje = "Consulta del cliente ejemplo afas fdfasd fsadf sdfasdfsdf sdfasdfasdf asdfasdfasdfsdaf",
Icono = "user_chat.png",
Fecha = "29/10/2019 16:17:48",
Leida = "Leída"
});
Bubbles.Add(new Bubble
{
Id = "2",
Mensaje = "Respuesta del Nutricionista ejemplo afas fdfasd fsadf sdfasdfsdf sdfasdfasdf asdfasdfasdfsdaf",
Icono = "nutricionist_chat.png",
Fecha = "30/10/2019 16:17:48",
Leida = "No Leída"
});
Bubbles.Add(new Bubble
{
Id = "3",
Mensaje = "Respuesta del Cliente ejemplo afas fdfasd af sdafsaf adsfasdf asdfasdfasd sdfasdfas sdfasdf sdfdf asdfsafsafasdf dasfasdf dsfasdf sdafasdfasdf sdfasdfasdf sdfas dsfasdfasdf sadfasd fsadf",
Icono = "user_chat.png",
Fecha = "01/11/2019 16:17:48",
Leida = "Leída"
});
Bubbles.Add(new Bubble
{
Id = "4",
Mensaje = "Respuesta del Nutricionista ejemplo afas fdfasd fsadf sdfasdfsdf sdfasdfasdf asdfasdfasdfsdaf",
Icono = "nutricionist_chat.png",
Fecha = "02/11/2019 16:17:48",
Leida = "Leída"
});
Bubbles.Add(new Bubble
{
Id = "5",
Mensaje = "Respuesta del usuario ya par finalizar ",
Icono = "user_chat.png",
Fecha = "02/11/2019 16:17:48",
Leida = "Leída"
});
Bubbles.Add(new Bubble
{
Id = "6",
Mensaje = "ultima respuesta del nutricionista, fin de la converasación, cerrada ",
Icono = "nutricionist_chat.png",
Fecha = "02/11/2019 16:17:48",
Leida = "Leída"
});
BindingContext = this;
}
async void Handle_ItemTapped(object sender, ItemTappedEventArgs e)
{
if (e.Item == null)
return;
await DisplayAlert("Item Tapped", "An item was tapped.", "OK");
//Deselect Item
((ListView)sender).SelectedItem = null;
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.Views.NutriQuestion.NutriQuestionListView"
Title="Consultas">
<StackLayout Padding="15,15,15,30">
<!-- botón superio añadir consulta-->
<Button Text="+ CONSULTA"
VerticalOptions="CenterAndExpand"
HorizontalOptions="End"
BackgroundColor="#333333"
TextColor="#ffffff"
Clicked="NewQuestion_Clicked"
/>
<!--Titulo listado de consultas-->
<StackLayout BackgroundColor="#333333">
<Label
Margin="15,15,0,15"
TextColor="#ffffff"
FontAttributes="Bold"
Text="HISTÓRICO DE MIS CONSULTAS"/>
</StackLayout>
<!-- listView-->
<ListView x:Name="ConsultasListView"
ItemsSource="{Binding Monkeys}"
ItemTapped="Handle_ItemTapped"
CachingStrategy="RecycleElement"
HasUnevenRows ="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<!-- Two-column grid -->
<Grid Padding="10,10,10,10">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70*" />
<ColumnDefinition Width="30*" />
</Grid.ColumnDefinitions>
<!-- row 0 Left column -->
<Label Grid.Row="0" Grid.ColumnSpan="2"
TextColor="#000000"
FontAttributes="Bold"
Text="{Binding Asunto}"/>
<!-- row 0 Right column -->
<!--<Label Grid.Row="0" Grid.Column="1"
TextColor="#000000"
Text="{Binding Leida}"/>-->
<!-- row 1 Left column -->
<Label Grid.Row="1" Grid.Column="0"
FontSize="Micro"
TextColor="#000000"
Text="{Binding Fecha}"/>
<!-- row 1 Right column -->
<Label Grid.Row="1" Grid.Column="1"
XAlign="End"
FontSize="Micro"
TextColor="#000000"
Text="{Binding Estado}"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackLayout>
</ContentPage>
using System;
using System.Collections.Generic;
using inutralia.Views.NutriQuestion;
using Xamarin.Forms;
public class Monkey
{
public string Id { get; set; }
public string Asunto { get; set; }
public string Fecha { get; set; }
public string Estado { get; set; }
public string Leida { get; set; }
public override string ToString()
{
return Asunto;
}
}
namespace inutralia.Views.NutriQuestion
{
public partial class NutriQuestionListView : ContentPage
{
public IList<Monkey> Monkeys { get; private set; }
public NutriQuestionListView()
{
InitializeComponent();
Monkeys = new List<Monkey>();
Monkeys.Add(new Monkey
{
Id="1",
Asunto = "Asunto question 1 que sea un poco larga de más a ver que pasa",
Fecha = "29/10/2019 16:17:48",
Estado="Cerrada",
Leida="Leída"
});
Monkeys.Add(new Monkey
{
Id = "2",
Asunto = "Asunto question 2 Lorem ipsum daet ejemplo de text largo otra vez",
Fecha = "28/10/2019 16:17:48",
Estado = "Pendiente",
Leida = "No Leída"
});
Monkeys.Add(new Monkey
{
Id = "3",
Asunto = "Asunto question 3",
Fecha = "27/10/2019 16:17:48",
Estado = "Respuesta",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "4",
Asunto = "Asunto question 4",
Fecha = "27/10/2019 16:17:48",
Estado = "Pendiente",
Leida = "No Leída"
});
Monkeys.Add(new Monkey
{
Id = "5",
Asunto = "Asunto question 5",
Fecha = "27/10/2019 16:17:48",
Estado = "Pendiente",
Leida = "No Leída"
});
Monkeys.Add(new Monkey
{
Id = "6",
Asunto = "Asunto question 6",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "7",
Asunto = "Asunto question 7",
Fecha = "27/10/2019 16:17:48",
Estado = "Respuesta",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "8",
Asunto = "Asunto question 8",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "9",
Asunto = "Asunto question 9",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "10",
Asunto = "Asunto question 10",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "11",
Asunto = "Asunto question 11",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "12",
Asunto = "Asunto question 12",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "13",
Asunto = "Asunto question 13",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "14",
Asunto = "Asunto question 14",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "15",
Asunto = "Asunto question 15",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "16",
Asunto = "Asunto question 16",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "17",
Asunto = "Asunto question 17",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "18",
Asunto = "Asunto question 18",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída"
});
Monkeys.Add(new Monkey
{
Id = "19",
Asunto = "Asunto question 19",
Fecha = "27/10/2019 16:17:48",
Estado = "Cerrada",
Leida = "Leída,"
});
BindingContext = this;
}
//click item list
void Handle_ItemTapped(object sender, ItemTappedEventArgs e)
{
if (e.Item == null)
return;
//ABRO VISTA DETALLES DE LA CONSULTA
(App.Current.MainPage as RootPage).Navigate<DetailsNutriQuestionListView>();
//Deselect Item
((ListView)sender).SelectedItem = null;
}
//click button create question
private void NewQuestion_Clicked(object sender, EventArgs e)
{
(App.Current.MainPage as RootPage).Navigate<CreateNutriQuestion>();
}
}
}
...@@ -49,6 +49,11 @@ ...@@ -49,6 +49,11 @@
<Compile Include="App.xaml.cs"> <Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon> <DependentUpon>App.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="ViewModels\Menus\CustomMenuViewModel.cs" /> <Compile Include="ViewModels\Menus\CustomMenuViewModel.cs" />
<Compile Include="ViewModels\Menus\RecipeListViewModel.cs" /> <Compile Include="ViewModels\Menus\RecipeListViewModel.cs" />
<Compile Include="ViewModels\QuestionsSpecialist\NewQuestionViewModel.cs" /> <Compile Include="ViewModels\QuestionsSpecialist\NewQuestionViewModel.cs" />
...@@ -67,6 +72,15 @@ ...@@ -67,6 +72,15 @@
<Compile Include="Views\Article\ItemList\ArticleItemTemplate.xaml.cs"> <Compile Include="Views\Article\ItemList\ArticleItemTemplate.xaml.cs">
<DependentUpon>ArticleItemTemplate.xaml</DependentUpon> <DependentUpon>ArticleItemTemplate.xaml</DependentUpon>
</Compile> </Compile>
<Compile Include="Views\NutriQuestion\CreateNutriQuestion.xaml.cs">
<DependentUpon>CreateNutriQuestion.xaml</DependentUpon>
</Compile>
<Compile Include="Views\NutriQuestion\DetailsNutriQuestionListView.xaml.cs">
<DependentUpon>DetailsNutriQuestionListView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\NutriQuestion\NutriQuestionListView.xaml.cs">
<DependentUpon>NutriQuestionListView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\Question\HistoryView.xaml.cs"> <Compile Include="Views\Question\HistoryView.xaml.cs">
<DependentUpon>HistoryView.xaml</DependentUpon> <DependentUpon>HistoryView.xaml</DependentUpon>
</Compile> </Compile>
...@@ -208,6 +222,10 @@ ...@@ -208,6 +222,10 @@
<EmbeddedResource Include="App.xaml"> <EmbeddedResource Include="App.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Views\Common\BrandBlock.xaml"> <EmbeddedResource Include="Views\Common\BrandBlock.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</EmbeddedResource> </EmbeddedResource>
...@@ -474,7 +492,13 @@ ...@@ -474,7 +492,13 @@
<WCFMetadata Include="Connected Services\" /> <WCFMetadata Include="Connected Services\" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="Views\Question\QuestionListView.xaml"> <EmbeddedResource Include="CustomCells\TextInViewCell.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="CustomCells\TextOutViewCell.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
...@@ -486,25 +510,37 @@ ...@@ -486,25 +510,37 @@
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="Views\Question\NewConsultationView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\Question\PendingReadView.xaml"> <EmbeddedResource Include="Views\Question\PendingReadView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="Views\Question\NewConsultationView.xaml"> <EmbeddedResource Include="Views\Question\QuestionListView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="CustomCells\TextInViewCell.xaml"> <EmbeddedResource Include="Views\NutriQuestion\NutriQuestionListView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<EmbeddedResource Include="CustomCells\TextOutViewCell.xaml"> <EmbeddedResource Include="Views\NutriQuestion\DetailsNutriQuestionListView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\NutriQuestion\CreateNutriQuestion.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> <Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
</EmbeddedResource> </EmbeddedResource>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment