143 |
143 |
144 private void LayoutRoot_DragLeave(object sender, System.Windows.DragEventArgs e) |
144 private void LayoutRoot_DragLeave(object sender, System.Windows.DragEventArgs e) |
145 { |
145 { |
146 MessageBox.Show(((CustomSurfaceButton)sender).Action); |
146 MessageBox.Show(((CustomSurfaceButton)sender).Action); |
147 } |
147 } |
148 |
|
149 #region Events |
|
150 |
|
151 /* |
|
152 //Annotation |
|
153 private void ButtonAnnotation_Click(object sender, RoutedEventArgs e) |
|
154 { |
|
155 if (PanelAnnotation.Visibility == Visibility.Collapsed) |
|
156 { |
|
157 PanelAnnotation.Visibility = Visibility.Visible; |
|
158 } |
|
159 else |
|
160 { |
|
161 PanelAnnotation.Visibility = Visibility.Collapsed; |
|
162 } |
|
163 } |
|
164 //Recherche |
|
165 private void ButtonRecherche_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
166 { |
|
167 if (PanelRecherche.Visibility == Visibility.Collapsed) |
|
168 { |
|
169 PanelRecherche.Visibility = Visibility.Visible; |
|
170 } |
|
171 else |
|
172 { |
|
173 PanelRecherche.Visibility = Visibility.Collapsed; |
|
174 } |
|
175 } |
|
176 |
|
177 private void ButtonRecherche_Click(object sender, RoutedEventArgs e) |
|
178 { |
|
179 if (PanelRecherche.Visibility == Visibility.Collapsed) |
|
180 { |
|
181 PanelRecherche.Visibility = Visibility.Visible; |
|
182 } |
|
183 else |
|
184 { |
|
185 PanelRecherche.Visibility = Visibility.Collapsed; |
|
186 } |
|
187 } |
|
188 //ChildCine |
|
189 private void ButtonChildCine_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
190 { |
|
191 if (PanelChildCine.Visibility == Visibility.Collapsed) |
|
192 { |
|
193 PanelChildCine.Visibility = Visibility.Visible; |
|
194 } |
|
195 else |
|
196 { |
|
197 PanelChildCine.Visibility = Visibility.Collapsed; |
|
198 } |
|
199 } |
|
200 |
|
201 private void ButtonChildCine_Click(object sender, RoutedEventArgs e) |
|
202 { |
|
203 if (PanelChildCine.Visibility == Visibility.Collapsed) |
|
204 { |
|
205 PanelChildCine.Visibility = Visibility.Visible; |
|
206 } |
|
207 else |
|
208 { |
|
209 PanelChildCine.Visibility = Visibility.Collapsed; |
|
210 } |
|
211 } |
|
212 //ChildCore |
|
213 private void ButtonChildChore_Click(object sender, RoutedEventArgs e) |
|
214 { |
|
215 if (PanelChildChore.Visibility == Visibility.Collapsed) |
|
216 { |
|
217 PanelChildChore.Visibility = Visibility.Visible; |
|
218 } |
|
219 else |
|
220 { |
|
221 PanelChildChore.Visibility = Visibility.Collapsed; |
|
222 } |
|
223 } |
|
224 |
|
225 private void ButtonChildChore_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
226 { |
|
227 if (PanelChildChore.Visibility == Visibility.Collapsed) |
|
228 { |
|
229 PanelChildChore.Visibility = Visibility.Visible; |
|
230 } |
|
231 else |
|
232 { |
|
233 PanelChildChore.Visibility = Visibility.Collapsed; |
|
234 } |
|
235 } |
|
236 //Child1MouvCam |
|
237 private void ButtonChild1MouvCam_Click(object sender, RoutedEventArgs e) |
|
238 { |
|
239 if (PanelChild1MouvCam.Visibility == Visibility.Collapsed) |
|
240 { |
|
241 PanelChild1MouvCam.Visibility = Visibility.Visible; |
|
242 } |
|
243 else |
|
244 { |
|
245 PanelChild1MouvCam.Visibility = Visibility.Collapsed; |
|
246 } |
|
247 } |
|
248 |
|
249 private void ButtonChild1MouvCam_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
250 { |
|
251 if (PanelChild1MouvCam.Visibility == Visibility.Collapsed) |
|
252 { |
|
253 PanelChild1MouvCam.Visibility = Visibility.Visible; |
|
254 } |
|
255 else |
|
256 { |
|
257 PanelChild1MouvCam.Visibility = Visibility.Collapsed; |
|
258 } |
|
259 } |
|
260 //Child1AxeCam |
|
261 private void buttonChild1AxeCam_Click(object sender, RoutedEventArgs e) |
|
262 { |
|
263 if (PanelChild1AxeCam.Visibility == Visibility.Collapsed) |
|
264 { |
|
265 PanelChild1AxeCam.Visibility = Visibility.Visible; |
|
266 } |
|
267 else |
|
268 { |
|
269 PanelChild1AxeCam.Visibility = Visibility.Collapsed; |
|
270 } |
|
271 } |
|
272 |
|
273 private void buttonChild1AxeCam_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
274 { |
|
275 if (PanelChild1AxeCam.Visibility == Visibility.Collapsed) |
|
276 { |
|
277 PanelChild1AxeCam.Visibility = Visibility.Visible; |
|
278 } |
|
279 else |
|
280 { |
|
281 PanelChild1AxeCam.Visibility = Visibility.Collapsed; |
|
282 } |
|
283 } |
|
284 */ |
|
285 |
|
286 #endregion |
|
287 |
|
288 |
|
289 } |
148 } |
290 } |
149 } |