Commit 9caa768e authored by Mohamed Guirat's avatar Mohamed Guirat
Browse files

events

parent eece2046
#pragma checksum "..\..\..\pages\Pilulier.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "BFFE3391CD4613D89A6A27B5556C197C"
#pragma checksum "..\..\..\pages\Pilulier.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "15A9563CB7E1E047607E08AD97D9F112"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
......
#pragma checksum "..\..\..\pages\Pilulier.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "BFFE3391CD4613D89A6A27B5556C197C"
#pragma checksum "..\..\..\pages\Pilulier.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "15A9563CB7E1E047607E08AD97D9F112"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
......
......@@ -43,7 +43,7 @@
<Button Width="200" Height="60" VerticalAlignment="Bottom" Margin="0,0,0,30" Background="#FF00C586" Foreground="White" Content="OK" Click="RetournerAcceuil_Click"/>
</Grid>
</Popup>
<Grid x:Name="PilulierPanel" Visibility="Collapsed">
<Grid x:Name="PilulierPanel" Visibility="Visible">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
......@@ -620,7 +620,7 @@
</Grid>
<Grid x:Name="PrescriptonAffichage" Visibility="Visible">
<Grid x:Name="PrescriptonAffichage" Visibility="Collapsed">
<Grid.RowDefinitions>
<RowDefinition Height="90"/>
<RowDefinition Height="*"/>
......
......@@ -55,6 +55,7 @@ namespace consignelaWpf.pages
private Stopwatch _stopwatch;
private int elapsedMs;
int nbrAffPresc = 1, nbrAffPil = 1;
internal List<Etape> listEtapes = new List<Etape>();
Microsoft.Office.Interop.Excel.Application excel;
Microsoft.Office.Interop.Excel.Workbook worKbooK;
......@@ -98,6 +99,7 @@ namespace consignelaWpf.pages
AfficheDate.Text = "Date : "+App.date;
_stopwatch = Stopwatch.StartNew();
saveEvent("Appui boutonDEBUT", "Déclenchement du chronomètre & Affichage1 PRESCRIPTION", "");
//exportToExcel();
if (App.navigation == "activee")
......@@ -114,10 +116,11 @@ namespace consignelaWpf.pages
ExcelDirectory = System.IO.Path.Combine(storageDirectory, "Fichiers_Excel");
Directory.CreateDirectory(ExcelDirectory);
}
public void saveEvent(String action, String codageEvent)
public void saveEvent(String action, String codageEvent,String comment)
{
int tempsEcoule = (int)_stopwatch.ElapsedMilliseconds;
Etape nouvelleEtape = new Etape { Temps_ecoule = tempsEcoule, Action = action, Codage_evenement = codageEvent };
listEtapes.Add(nouvelleEtape);
System.Diagnostics.Debug.WriteLine(nouvelleEtape.Temps_ecoule+" "+nouvelleEtape.Action+" "+nouvelleEtape.Codage_evenement);
}
public void loadPrescriptionVerbale()
......@@ -125,17 +128,17 @@ namespace consignelaWpf.pages
ListViewPrescVerbale.ItemsSource = null;
ListViewPrescVerbale.ItemsSource = listMedicament;
}
public void timer()
{
dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
dispatcherTimer.Interval = new TimeSpan(0, 0, 0,0,1);
dispatcherTimer.Start();
//public void timer()
//{
// dispatcherTimer.Tick += new EventHandler(dispatcherTimer_Tick);
// dispatcherTimer.Interval = new TimeSpan(0, 0, 0,0,1);
// dispatcherTimer.Start();
}
private void dispatcherTimer_Tick(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine(dispatcherTimer.Interval.Milliseconds);
}
//}
//private void dispatcherTimer_Tick(object sender, EventArgs e)
//{
// System.Diagnostics.Debug.WriteLine(dispatcherTimer.Interval.Milliseconds);
//}
public void loadExperienceConf()
{
var storageDirectory = System.IO.Path.Combine(pathFolder, "Consignela");
......@@ -273,7 +276,7 @@ namespace consignelaWpf.pages
PilulierPanel.Visibility = Visibility.Collapsed;
PrescriptonAffichage.Visibility = Visibility.Visible;
saveEvent("Appui ButtonPrescritpion", "Affichage" + nbrAffPresc + "Prescription");
saveEvent("Appui ButtonPrescritpion", "Affichage" + nbrAffPresc + "Prescription","");
nbrAffPresc++;
}
......@@ -356,6 +359,7 @@ namespace consignelaWpf.pages
private void finirExp_Click(object sender, RoutedEventArgs e)
{
saveEvent("Appui boutonFIN", "Fin", "");
int h = 0;
resultatFinal = new Resultat();
resultatFinal.Code_Participant = App.codeParticipant;
......@@ -384,7 +388,7 @@ namespace consignelaWpf.pages
ExpPrescResulat.format = App.format;
ExpPrescResulat.mode = App.mode;
ExpPrescResulat.navigation = App.navigation;
ExpPrescResulat.etapes = new List<Etape>();
ExpPrescResulat.etapes = listEtapes;
ExpPrescResulat.prescription = App.prescriptionTabSelect;
ExpPrescResulat.Resultat = resultatFinal;
......@@ -461,6 +465,7 @@ namespace consignelaWpf.pages
break;
}
}
saveEvent("Appui CORBEILLE", "Suppression du médicament "+ medicamentSelect.nom, "");
gridViewBoiteMedicaments.ItemsSource = null;
gridViewBoiteMedicaments.ItemsSource = listMedicament;
......@@ -468,6 +473,9 @@ namespace consignelaWpf.pages
}
medicamentSelect = null;
}
else
saveEvent("Appui CORBEILLE", "pas d’événement", "");
gridViewBoiteMedicaments.ItemsSource = null;
gridViewBoiteMedicaments.ItemsSource = listMedicament;
}
......@@ -484,26 +492,22 @@ namespace consignelaWpf.pages
{
medicamentChoisi = (Medicament)gridViewBoiteMedicaments.SelectedItem;
j = gridViewBoiteMedicaments.SelectedIndex;
saveEvent("Appui Boite-"+ medicamentChoisi.nom, "Sélection1 UNITE-" + medicamentChoisi.nom, "");
medicamentSelect = null;
}
private void ExecSingleTap(int i, ListView gridviewTab)
private void ExecSingleTap(int i, ListView gridviewTab, String codeAlveole)
{
nvMedicament = true;
if (open[i] == true && listMedicament[j].nbr > 0 && medicamentChoisi != null)
{
System.Diagnostics.Debug.WriteLine(tabListMedicaments[i].Count);
//System.Diagnostics.Debug.WriteLine(tabListMedicaments[i].Count);
//if there is this medecines
for (int k = 0; k < tabListMedicaments[i].Count; k++)
{
if (tabListMedicaments[i][k].nom == medicamentChoisi.nom)
{
tabListMedicaments[i][k].nbrTab++;
//medicamentChoisi.nbrTab = 0;
nvMedicament = false;
break;
......@@ -514,10 +518,9 @@ namespace consignelaWpf.pages
medicamentChoisi.nbrTab = 1;
tabListMedicaments[i].Add(medicamentChoisi);
}
listMedicament[j].nbr--;
saveEvent("Appui ALVEOLE-" + codeAlveole, "Dépôt"+ medicamentChoisi.nbrTab+" UNITE -" + medicamentChoisi.nom, "");
gridViewBoiteMedicaments.ItemsSource = null;
gridViewBoiteMedicaments.ItemsSource = listMedicament;
......@@ -528,6 +531,7 @@ namespace consignelaWpf.pages
}
else if (listMedicament[j].nbr <= 0)
{
saveEvent("Appui ALVEOLE-"+ codeAlveole, "pas d'évennement, la boite du médicament est vide ", "");
//MessageDialog boiteVide = new MessageDialog("La boite de " + listMedicament[j].nom + " est vide");
//boiteVide.ShowAsync();
}
......@@ -536,8 +540,11 @@ namespace consignelaWpf.pages
//MessageDialog selesctMedi = new MessageDialog("choisissez un médicament svp");
//selesctMedi.ShowAsync();
}
else
saveEvent("Appui ALVEOLE-" + codeAlveole, "pas d'évennement, l'alveole-"+ codeAlveole+" est fermée", "");
}
private void ExecDoubleTap(int i, ListView gridviewTab)
private void ExecDoubleTap(int i, ListView gridviewTab, String codeAlveole)
{
if (!open[i])
{
......@@ -546,6 +553,8 @@ namespace consignelaWpf.pages
open[i] = true;
openCase = gridviewTab.Name;
gridviewTab.Background = new SolidColorBrush(Colors.White);
saveEvent("Appui ALVEOLE-"+ codeAlveole, "Ouverture ALVEOLE-"+codeAlveole, "");
}
else
{
......@@ -558,6 +567,7 @@ namespace consignelaWpf.pages
open[i] = false;
openCase = "";
gridviewTab.Background = new SolidColorBrush(Colors.WhiteSmoke);
saveEvent("Appui ALVEOLE-"+ codeAlveole, "Fermeture ALVEOLE-"+ codeAlveole, "");
}
......@@ -569,14 +579,14 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(0, gridViewTabMedicament11);
ExecSingleTap(0, gridViewTabMedicament11, "M1J1");
if(gridViewTabMedicament11.SelectedItem !=null )
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 0;
medicamentSelect = (Medicament)gridViewTabMedicament11.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament11.Items.IndexOf(gridViewTabMedicament11.SelectedItem);
}
......@@ -584,7 +594,7 @@ namespace consignelaWpf.pages
else
{
ExecDoubleTap(0, gridViewTabMedicament11);
ExecDoubleTap(0, gridViewTabMedicament11, "M1J1");
}
}
}
......@@ -595,21 +605,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(1, gridViewTabMedicament12);
ExecSingleTap(1, gridViewTabMedicament12, "M1J2");
if (gridViewTabMedicament12.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 1;
medicamentSelect = (Medicament)gridViewTabMedicament12.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament12.Items.IndexOf(gridViewTabMedicament12.SelectedItem);
}
}
else
{
ExecDoubleTap(1, gridViewTabMedicament12);
ExecDoubleTap(1, gridViewTabMedicament12, "M1J2");
}
}
}
......@@ -620,21 +630,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(2, gridViewTabMedicament13);
ExecSingleTap(2, gridViewTabMedicament13, "M1J3");
if (gridViewTabMedicament13.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 2;
medicamentSelect = (Medicament)gridViewTabMedicament13.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament13.Items.IndexOf(gridViewTabMedicament13.SelectedItem);
}
}
else
{
ExecDoubleTap(2, gridViewTabMedicament13);
ExecDoubleTap(2, gridViewTabMedicament13, "M1J3");
}
}
}
......@@ -645,21 +655,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(3, gridViewTabMedicament14);
ExecSingleTap(3, gridViewTabMedicament14, "M1J4");
if (gridViewTabMedicament14.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 3;
medicamentSelect = (Medicament)gridViewTabMedicament14.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament14.Items.IndexOf(gridViewTabMedicament14.SelectedItem);
}
}
else
{
ExecDoubleTap(3, gridViewTabMedicament14);
ExecDoubleTap(3, gridViewTabMedicament14, "M1J4");
}
}
}
......@@ -670,21 +680,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(4, gridViewTabMedicament15);
ExecSingleTap(4, gridViewTabMedicament15, "M1J5");
if (gridViewTabMedicament15.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 4;
medicamentSelect = (Medicament)gridViewTabMedicament15.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament15.Items.IndexOf(gridViewTabMedicament15.SelectedItem);
}
}
else
{
ExecDoubleTap(4, gridViewTabMedicament15);
ExecDoubleTap(4, gridViewTabMedicament15, "M1J5");
}
}
}
......@@ -695,21 +705,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(5, gridViewTabMedicament16);
ExecSingleTap(5, gridViewTabMedicament16, "M1J6");
if (gridViewTabMedicament16.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 5;
medicamentSelect = (Medicament)gridViewTabMedicament16.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament16.Items.IndexOf(gridViewTabMedicament16.SelectedItem);
}
}
else
{
ExecDoubleTap(5, gridViewTabMedicament16);
ExecDoubleTap(5, gridViewTabMedicament16, "M1J6");
}
}
}
......@@ -720,21 +730,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(6, gridViewTabMedicament17);
ExecSingleTap(6, gridViewTabMedicament17, "M1J7");
if (gridViewTabMedicament17.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 6;
medicamentSelect = (Medicament)gridViewTabMedicament17.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament17.Items.IndexOf(gridViewTabMedicament17.SelectedItem);
}
}
else
{
ExecDoubleTap(6, gridViewTabMedicament17);
ExecDoubleTap(6, gridViewTabMedicament17, "M1J7");
}
}
}
......@@ -745,21 +755,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(7, gridViewTabMedicament21);
ExecSingleTap(7, gridViewTabMedicament21, "M2J1");
if (gridViewTabMedicament21.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 7;
medicamentSelect = (Medicament)gridViewTabMedicament21.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament21.Items.IndexOf(gridViewTabMedicament21.SelectedItem);
}
}
else
{
ExecDoubleTap(7, gridViewTabMedicament21);
ExecDoubleTap(7, gridViewTabMedicament21, "M2J1");
}
}
}
......@@ -770,21 +780,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(8, gridViewTabMedicament22);
ExecSingleTap(8, gridViewTabMedicament22, "M2J2");
if (gridViewTabMedicament22.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 8;
medicamentSelect = (Medicament)gridViewTabMedicament22.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament22.Items.IndexOf(gridViewTabMedicament22.SelectedItem);
}
}
else
{
ExecDoubleTap(8, gridViewTabMedicament22);
ExecDoubleTap(8, gridViewTabMedicament22, "M2J2");
}
}
}
......@@ -795,21 +805,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(9, gridViewTabMedicament23);
ExecSingleTap(9, gridViewTabMedicament23, "M2J3");
if (gridViewTabMedicament23.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 9;
medicamentSelect = (Medicament)gridViewTabMedicament23.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament23.Items.IndexOf(gridViewTabMedicament23.SelectedItem);
}
}
else
{
ExecDoubleTap(9, gridViewTabMedicament23);
ExecDoubleTap(9, gridViewTabMedicament23, "M2J3");
}
}
}
......@@ -820,21 +830,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(10, gridViewTabMedicament24);
ExecSingleTap(10, gridViewTabMedicament24, "M2J4");
if (gridViewTabMedicament24.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 10;
medicamentSelect = (Medicament)gridViewTabMedicament24.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament24.Items.IndexOf(gridViewTabMedicament24.SelectedItem);
}
}
else
{
ExecDoubleTap(10, gridViewTabMedicament24);
ExecDoubleTap(10, gridViewTabMedicament24, "M2J4");
}
}
}
......@@ -845,21 +855,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(11, gridViewTabMedicament25);
ExecSingleTap(11, gridViewTabMedicament25, "M2J5");
if (gridViewTabMedicament25.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 11;
medicamentSelect = (Medicament)gridViewTabMedicament25.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament25.Items.IndexOf(gridViewTabMedicament25.SelectedItem);
}
}
else
{
ExecDoubleTap(11, gridViewTabMedicament25);
ExecDoubleTap(11, gridViewTabMedicament25, "M2J5");
}
}
}
......@@ -870,21 +880,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(12, gridViewTabMedicament26);
ExecSingleTap(12, gridViewTabMedicament26, "M2J6");
if (gridViewTabMedicament26.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 12;
medicamentSelect = (Medicament)gridViewTabMedicament26.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament26.Items.IndexOf(gridViewTabMedicament26.SelectedItem);
}
}
else
{
ExecDoubleTap(12, gridViewTabMedicament26);
ExecDoubleTap(12, gridViewTabMedicament26, "M2J6");
}
}
}
......@@ -895,21 +905,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(13, gridViewTabMedicament27);
ExecSingleTap(13, gridViewTabMedicament27, "M2J7");
if (gridViewTabMedicament27.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 13;
medicamentSelect = (Medicament)gridViewTabMedicament27.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament27.Items.IndexOf(gridViewTabMedicament27.SelectedItem);
}
}
else
{
ExecDoubleTap(13, gridViewTabMedicament27);
ExecDoubleTap(13, gridViewTabMedicament27, "M2J7");
}
}
}
......@@ -920,21 +930,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(14, gridViewTabMedicament31);
ExecSingleTap(14, gridViewTabMedicament31, "M3J1");
if (gridViewTabMedicament31.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 14;
medicamentSelect = (Medicament)gridViewTabMedicament31.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament31.Items.IndexOf(gridViewTabMedicament31.SelectedItem);
}
}
else
{
ExecDoubleTap(14, gridViewTabMedicament31);
ExecDoubleTap(14, gridViewTabMedicament31, "M3J1");
}
}
}
......@@ -945,21 +955,21 @@ namespace consignelaWpf.pages
{
if (e.ClickCount == 1)
{
ExecSingleTap(15, gridViewTabMedicament32);
ExecSingleTap(15, gridViewTabMedicament32, "M3J2");
if (gridViewTabMedicament32.SelectedItem != null)
{
mediSelected = true;
//System.Diagnostics.Debug.WriteLine((Medicament)gridViewTabMedicament11.SelectedItem);
IndexgridviewSelect = 15;
medicamentSelect = (Medicament)gridViewTabMedicament32.SelectedItem;
System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
//System.Diagnostics.Debug.WriteLine(medicamentSelect.nom);
indexMediSelect = gridViewTabMedicament32.Items.IndexOf(gridViewTabMedicament32.SelectedItem);
}
}
else
{
ExecDoubleTap(15, gridViewTabMedicament32);
ExecDoubleTap(15, gridViewTabMedicament32, "M3J2");
}
}
}
......@@ -970,21 +980,21 @@ namespace consignelaWpf.pages