Пример #1
0
 public ImageTileViewModel(wndMainViewModel viewModel, int index)
 {
     this.viewModel = viewModel;
     GetUriToClipboardCommand = new Command(GetUriToClipboard);
     this.AddDownloadQueryItemCommand = new AddDownloadQueryItemCommand(this, viewModel);
     this.CallFullsizeModeCommand = new CallFullsizeModeCommand(viewModel, index);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the MainWindow class.
 /// </summary>
 public wndMain()
 {
     InitializeComponent();
     if (!System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable())
     {
         MessageBox.Show("Network is unreachable. Please check your internet connection", "Error",
             MessageBoxButton.OK,
             MessageBoxImage.Information, MessageBoxResult.OK,
             MessageBoxOptions.DefaultDesktopOnly);
         Dispatcher.InvokeShutdown();
     }
     else
         DataContext = new wndMainViewModel();
 }
Пример #3
0
        public wndFullsizeViewModel(wndMainViewModel viewModel, int index)
        {
            this.viewModel = viewModel;
            UpdateImageCollectionFullsizeCommand = new Command(GetImageCollectionFullsize);
            UpdateTagsCommand = new Command(UpdateTags);
            FlipViewCollection = new ObservableCollection<UIElement>();
            foreach (ImageTileViewModel vm in this.viewModel.ImageViewModelCollection)
                FlipViewCollection.Add(SetTransformationLogic());

            ImageIndex = index;
        }
 /// <summary>
 /// Initializes a new instance of the GetImageCollectionCommand class.
 /// </summary>
 public GetImageCollectionCommand(wndMainViewModel viewModel)
 {
     this.viewModel = viewModel;
 }
 /// <summary>
 /// Initializes a new instance of the SaveConfigurationCommand class.
 /// </summary>
 public SaveConfigurationCommand(wndMainViewModel viewModel)
 {
     this.viewModel = viewModel;
 }
 /// <summary>
 /// Initializes a new instance of the AddDownloadQueryItemCommand class.
 /// </summary>
 public AddDownloadQueryItemCommand(ImageTileViewModel viewModel, wndMainViewModel collectionHandler)
 {
     this.viewModel = viewModel;
     this.collectionHandler = collectionHandler;
 }
 /// <summary>
 /// Initializes a new instance of the CallFullsizeModeCommand class.
 /// </summary>
 public CallFullsizeModeCommand(wndMainViewModel handler, int index)
 {
     this.handler = handler;
     this.index = index;
 }