示例#1
0
        private void PictureSchema_DoubleClick(object sender, EventArgs e)
        {
            if (olvBinds.SelectedObject == null || pictureSchema.Image == null)
            {
                return;
            }
            Bind bind = olvBinds.SelectedObject as Bind;

            using (Ookii.Dialogs.ImageViewDialog dlg = new Ookii.Dialogs.ImageViewDialog())
            {
                dlg.Image       = pictureSchema.Image;
                dlg.WindowTitle = dlg.Content = bind.Address.FormattedAddress;
                dlg.ShowDialog(this);
            }
        }
示例#2
0
        private void PictureBox_DoubleClick(object sender, System.EventArgs e)
        {
            PictureBox pic = sender as PictureBox;

            if (pic.Image == null)
            {
                return;
            }

            string description = string.Empty;

            if (pic.Name != "pictureMap")
            {
                description = (olvBoards.SelectedObject as IBoard).Address.FormattedAddress;
            }

            using (Ookii.Dialogs.ImageViewDialog dlg = new Ookii.Dialogs.ImageViewDialog())
            {
                dlg.Image       = pic.Image;
                dlg.WindowTitle = dlg.Content = description;
                dlg.ShowDialog(this);
            }
        }