source: extensions/PiwigoLib/PiwigoWpf/MainWindow.xaml.cs @ 11926

Last change on this file since 11926 was 11926, checked in by bayral, 13 years ago

New step for piwigowpf

File size: 1.5 KB
RevLine 
[7150]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
[11904]14using Com.Piwigo.Wpf.Helper;
15using Com.Piwigo.Wpf.Command;
[7150]16
17namespace Com.Piwigo.Wpf
18{
19    /// <summary>
20    /// Interaction logic for MainWindow.xaml
21    /// </summary>
22    public partial class MainWindow : Window
23    {
24        public MainWindow()
25        {
26            InitializeComponent();
[11922]27            PwgCmdEvents.CmdRunningChanged += new PwgCmdEvents.CmdRunningChangedHandler(PwgCmdEventsConsumer.PwgCmdEvents_CmdRunningChanged);
28            PwgCmdEvents.CmdSendUiInfo += new PwgCmdEvents.CmdSendUiInfoHandler(PwgCmdEventsConsumer.PwgCmdEvents_CmdSendUiInfo);
[7150]29        }
[11926]30
[11904]31        private void listViewCategory_MouseDoubleClick(object sender, MouseButtonEventArgs e)
32        {
33            AppHelper.ExecuteCommand<PwgCmdGetImageforCategory>(listViewCategory.SelectedValue);
34        }
[11926]35
36        private void listViewImage_SelectionChanged(object sender, SelectionChangedEventArgs e)
37        {
38            if (PwgCmdSelectImageInCategory.Command.CanExecute(sender))
39            {
40                PwgCmdSelectImageInCategory.Command.Execute(sender);
41            }
42        }
43
44
[7150]45    }
46}
Note: See TracBrowser for help on using the repository browser.