Execute() public method

public Execute ( IPhoto photos ) : bool
photos IPhoto
return bool
コード例 #1
0
	void HandleUpdateThumbnailCommand (object sender, EventArgs args)
	{
		ThumbnailCommand command = new ThumbnailCommand (main_window);

		int [] selected_ids = SelectedIds ();
		if (command.Execute (SelectedPhotos (selected_ids)))
#if MONO_1_9_0
			query.MarkChanged (selected_ids, new PhotoChanges {DataChanged = true});
#else
		{
			PhotoChanges changes = new PhotoChanges ();
			changes.DataChanged = true;
			query.MarkChanged (selected_ids, changes);
		}
#endif
	}
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: iainlane/f-spot
        void HandleUpdateThumbnailCommand(object sender, EventArgs args)
        {
            ThumbnailCommand command = new ThumbnailCommand (main_window);

            int [] selected_ids = SelectedIds ();
            if (command.Execute (SelectedPhotos (selected_ids)))
                query.MarkChanged (selected_ids, new PhotoChanges {DataChanged = true});
        }
コード例 #3
0
ファイル: MainWindow.cs プロジェクト: mono/f-spot
		void HandleUpdateThumbnailCommand (object sender, EventArgs args)
		{
			ThumbnailCommand command = new ThumbnailCommand (main_window);

			int[] selected_ids = SelectedIds ();
			if (command.Execute (SelectedPhotos (selected_ids)))
				query.MarkChanged (selected_ids, InvalidateData.Instance);
		}
コード例 #4
0
	void HandleUpdateThumbnailCommand (object sende, EventArgs args)
	{
		ThumbnailCommand command = new ThumbnailCommand (main_window);

		int [] selected_ids = SelectedIds ();
		if (command.Execute (SelectedPhotos (selected_ids))) {
			foreach (int num in selected_ids)
				query.MarkChanged (num);
		}
	}