private void listViewTweetImage_ItemDoubleClick(object sender, Manina.Windows.Forms.ItemClickEventArgs e)
        {
            var index = listViewTweetImage.Items.Cast <ImageListViewItem>().ToList().IndexOf(e.Item);

            tweetImageQueue.Add(selectedPostImage[index]);
            selectedPostImage.RemoveAt(index);
            ReloadQueueImages();
        }
 private void listViewTweetImage_ItemClick(object sender, Manina.Windows.Forms.ItemClickEventArgs e)
 {
     if (e.Buttons == MouseButtons.Right)
     {
         e.Item.Selected = true;
         metroContextMenu3.Show(Cursor.Position);
     }
 }
Ejemplo n.º 3
0
 private void ilvImages_ItemDoubleClick(object sender, ItemClickEventArgs e)
 {
     him.ShowImagePreview();
 }
		private void OnGalleryItemClick(object sender, ItemClickEventArgs e)
		{
			imageListView.ClearSelection();
			e.Item.Selected = true;
			var linkImage = SelectedImageSource;
			SelectedImageChanged?.Invoke(this, new LinkImageEventArgs { Image = Image.FromFile(linkImage.FilePath), Text = linkImage.FileName });
		}
		private void OnGalleryItemDoubleClick(object sender, ItemClickEventArgs e)
		{
			OnGalleryItemClick(sender, e);
			OnImageDoubleClick?.Invoke(this, EventArgs.Empty);
		}
Ejemplo n.º 6
0
 private void imageListView1_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.Buttons == MouseButtons.Right)
     {
         contextMenuStrip1.Tag = e.Item;
         contextMenuStrip1.Show(MousePosition);                
     }
 }
Ejemplo n.º 7
0
 private void imageListView1_ItemDoubleClick(object sender, ItemClickEventArgs e)
 {
     if (e.Buttons == MouseButtons.Left)
     {
         System.Diagnostics.Process.Start(e.Item.FileName);
     }
 }
Ejemplo n.º 8
0
		private void ImageListViewItem_Click(object sender, ItemClickEventArgs e)
		{
			if (renderer != imageListView1.Renderer) return;
			var item = imageListView1.SelectedItems[0];
			Rectangle? bounds = item.GetBounds();
			if (bounds == null) return;
			int posX = e.Location.X - bounds.Value.Left;
			int posY = e.Location.Y - bounds.Value.Top;
			//Console.WriteLine("mouse: " + posX + " " + posY);
			RectangleF rt = renderer.GetRatingRegionBoundary();
			int ratingImgWidth = imageListView1.RatingImage.Width;
			int ratingRecWidth = ratingImgWidth * 5;
			ushort oldRating = item.Rating;
			if (posX >= rt.Left && posY >= rt.Top && posY <= rt.Bottom)
			{
				if (posX <= rt.Left + ratingRecWidth)
					item.Rating = (ushort)Math.Ceiling((posX - rt.Left) / ratingImgWidth);
				else
					item.Rating = 0;
			}
			if (item.Rating != oldRating)
				ThumbUtility.SaveThumbnail(item.ThumbnailImage, item.Rating, item.FilePath);
		}
Ejemplo n.º 9
0
        private void ilvPreview_ItemDoubleClick(object sender, ItemClickEventArgs e)
        {
            stPreview st = (stPreview)e.Item.Tag;

            if ((st.State != stPreview.DownloadState.None) && (st.State != stPreview.DownloadState.Error))
                return;

            st.State = stPreview.DownloadState.Waiting;
            e.Item.Tag = st;

            stDownload st2 = new stDownload(st.URL, e.Item.FileName);

            lock (downloadSync)
            {
                this.downloadList.Add(st2);

                this.grbDownload.Text = "다운로드 대기 : " + this.downloadList.Count;
            }
        }
Ejemplo n.º 10
0
 private void imageListView1_itemClick(object sender, ItemClickEventArgs e)
 {
     if ((e.Buttons & MouseButtons.Right) != MouseButtons.None)
     {
         
         imageListView_EditProject.ContextMenu = cm;
     }
 }
Ejemplo n.º 11
0
        private void imageListView1_itemDoubleClick(object sender, ItemClickEventArgs e)
        {
            ImageListViewItem item = imageListView_EditProject.SelectedItems[0];

            //string mPath = @"C:\Users\" + Environment.UserName + "\\Dropbox\\IMAGE\\" + item.FolderName + "\\";
            Edit_Image editImage = new Edit_Image(myPath, item.FileName, pData, sData, user_id, total_data);
            editImage.TopLevel = false;
            editImage.AutoScroll = true;
            this.panel_content_right.Controls.Add(editImage);
            editImage.FormBorderStyle = FormBorderStyle.None;
            editImage.Location = new Point(0, 0);
            editImage.Dock = DockStyle.Fill;
            editImage.Show();
            editImage.BringToFront();
            btn_editImage_back.Visible = true;
            btn_editImage_save.Visible = true;
            btnAddImages.Visible = false;


            //panel_editImage_forms.BringToFront();
        }
Ejemplo n.º 12
0
 private void imageListView1_itemClick(object sender, ItemClickEventArgs e)
 {
     if ((e.Buttons & MouseButtons.Right) != MouseButtons.None)
     {
         /*ContextMenu cm = new ContextMenu();
         cm.MenuItems.Add("Delete", new System.EventHandler(this.imageListView_menuItem_delete_click));*/
         imageListView_Main.ContextMenu = cm;
     }
 }
Ejemplo n.º 13
0
        // imagelistView_main double click 시에 반응
        private void imageListView1_itemDoubleClick(object sender, ItemClickEventArgs e)
        {
            ImageListViewItem item = imageListView_Main.SelectedItems[0];

            string mPath = @"C:\Users\" + Environment.UserName + "\\Dropbox\\IMAGE\\" + item.FolderName + "\\";

            //MessageBox.Show(mPath);

            EditProject editProject = new EditProject(mPath, id, item.FolderName);
            editProject.Show();
        }
Ejemplo n.º 14
0
 private void roomList_ItemClick(object sender, Manina.Windows.Forms.ItemClickEventArgs e)
 {
     this.Text = e.Item.Text;
 }
Ejemplo n.º 15
0
 private void imageListView1_ItemClick(object sender, ItemClickEventArgs e)
 {
     Process.Start(@e.Item.FileName.ToString().Replace("/","\\"));
 }
Ejemplo n.º 16
0
		/// <summary>
		/// Raises the ItemDoubleClick event.
		/// </summary>
		/// <param name="e">A ItemClickEventArgs that contains event data.</param>
		protected virtual void OnItemDoubleClick(ItemClickEventArgs e)
		{
			if (ItemDoubleClick != null)
				ItemDoubleClick(this, e);
		}
Ejemplo n.º 17
0
		private void imageListView_ItemDoubleClick(object sender, ItemClickEventArgs e)
		{
			imageListView.ClearSelection();
			e.Item.Selected = true;
			DoubleClicked?.Invoke(this, EventArgs.Empty);
		}
Ejemplo n.º 18
0
		private void imageListView_ItemDoubleClick(object sender, ItemClickEventArgs e)
		{
			slidesListView.ClearSelection();
			e.Item.Selected = true;
			SlidePreview?.Invoke(this, new SlideMasterEventArgs { SlideMaster = (SlideMaster)e.Item.Tag });
		}
Ejemplo n.º 19
0
		private void ImageListViewItem_DoubleClick(object sender, ItemClickEventArgs e)
		{
			OpenSelectedFileInViewer();
		}