示例#1
0
 void OnCollateGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbCollate.Image = e.Item.Image;
     this.ddbCollate.Text = e.Item.Caption;
     this.ddbCollate.Tag = e.Item.Tag;
 }
示例#2
0
 void Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     var portrait = e.Item.Tag as Portrait;
     ShowPreviewImage(portrait);
 }
 void AssociatedObject_ItemChecked(object sender, GalleryItemEventArgs e)
 {
     UpdateSelectedItem(e.Item);
 }
示例#4
0
 void gallery_GalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     if(e.Item.Checked)
         UpdateCheckEditors(e.Item.Tag.ToString());
 }
示例#5
0
 private void galleryControlImage_Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     if (e.Item.Checked)
     {
         btnImageDelete.Enabled = true;
     }
 }
示例#6
0
 void OnOrientationGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     ddbOrientation.Text = e.Item.Caption;
     ddbOrientation.Image = e.Item.Image;
     if(printControl1.PrintingSystem != null)
         this.printControl1.PrintingSystem.PageSettings.Landscape = GetLandscape();
     UpdatePageButtonsEnabledState();
 }
示例#7
0
 void OnPrinterGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbPrinter.Text = e.Item.Caption;
     this.ddbPrinter.Image = e.Item.Image;
 }
示例#8
0
 void OnPrinterGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbPrinter.Text  = e.Item.Caption;
     this.ddbPrinter.Image = e.Item.Image;
 }
示例#9
0
 void OnCollateGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbCollate.Image = e.Item.Image;
     this.ddbCollate.Text  = e.Item.Caption;
     this.ddbCollate.Tag   = e.Item.Tag;
 }
示例#10
0
 private void Context_ItemActivated(object sender, GalleryItemEventArgs e)
 {
     ShowProperties((IStudyComposerItem)e.Item);
 }
示例#11
0
 void OnDuplexGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbDuplex.Text  = e.Item.Caption;
     this.ddbDuplex.Image = e.Item.Image;
     this.ddbDuplex.Tag   = e.Item.Tag;
 }
        void FontFamilyGallery_ItemChecked(object sender, GalleryItemEventArgs e)
        {
            FontFamily newFontFamily = (FontFamily)e.Item.Tag;

            ApplyPropertyValueToSelectedText(TextElement.FontFamilyProperty, newFontFamily);
        }
 private void Gallery_ItemClick(object sender, GalleryItemEventArgs e)
 {
     MessageBox.Show("The " + e.Item.Caption + " item has been clicked");
 }
 void FontFamilyGallery_ItemChecked(object sender, GalleryItemEventArgs e)
 {
     FontFamily newFontFamily = (FontFamily)e.Item.Tag;
     ApplyPropertyValueToSelectedText(TextElement.FontFamilyProperty, newFontFamily);
 }
示例#15
0
 void OnDuplexGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbDuplex.Text = e.Item.Caption;
     this.ddbDuplex.Image = e.Item.Image;
     this.ddbDuplex.Tag = e.Item.Tag;
 }
示例#16
0
 static void Gallery_ItemClick(object sender, GalleryItemEventArgs e)
 {
     ThemeManager.ApplicationThemeName = e.Item.Caption.ToString();
 }
示例#17
0
 void OnMarginsGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbMargins.Image = e.Item.Image;
     this.ddbMargins.Text = e.Item.Caption;
     this.ddbMargins.Tag = e.Item.Tag;
     if(this.printControl1.PrintingSystem != null) {
         Margins margins = GetMargins();
         this.printControl1.PrintingSystem.PageSettings.LeftMargin = margins.Left;
         this.printControl1.PrintingSystem.PageSettings.RightMargin = margins.Right;
         this.printControl1.PrintingSystem.PageSettings.TopMargin = margins.Top;
         this.printControl1.PrintingSystem.PageSettings.BottomMargin = margins.Bottom;
     }
     UpdatePageButtonsEnabledState();
 }
示例#18
0
 private void rgbiSkins_Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     if (!IsFirst)
     {
         CurrUser.Skin = e.Item.Tag.ToString();
         UserLogic.ChangeSkin(CurrUser);
     }
     IsFirst = false;
 }
示例#19
0
 void OnPaperSizeGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbPaperSize.Image = e.Item.Image;
     this.ddbPaperSize.Text = e.Item.Caption;
     this.ddbPaperSize.Tag = e.Item.Tag;
     if(this.printControl1.PrintingSystem != null)
         this.printControl1.PrintingSystem.PageSettings.PaperKind = GetPaperKind();
     UpdatePageButtonsEnabledState();
 }
示例#20
0
 void FontFamilyGallery_ItemChecked(object sender, GalleryItemEventArgs e)
 {
     FontFamily newFontFamily = (FontFamily)e.Item.Tag;
 }
示例#21
0
 void OnPrintStyleGalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     this.ddbPrintStyle.Text = e.Item.Caption;
     this.ddbPrintStyle.Image = e.Item.Image;
     if(printControl1.PrintingSystem != null)
         CreateDocument();
 }
        protected virtual void OnThemeItemClick(object sender, GalleryItemEventArgs e)
        {
            string themeName = (string)e.Item.Tag;

            ThemeManager.ApplicationThemeName = themeName;
        }
示例#23
0
 private void ribbonViewSkins_GalleryItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     if (!isFristLoad)
     {
         DefaultSkinStyle = e.Item.Tag.ToString();
     }
     {
         isFristLoad = false;
     }
 }
示例#24
0
 void Gallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     var portrait = e.Item.Tag as Damany.PortraitCapturer.DAL.DTO.Portrait;
     if (portrait != null)
     {
         wholePicture.Image = portrait.Frame == null ? null : portrait.Frame.ImageCopy;
         currentFace.Image = portrait.ImageCopy;
     }
 }
示例#25
0
 protected virtual void OnThemeItemClick(object sender, GalleryItemEventArgs e)
 {
     string themeName = (string)e.Item.Caption;
     switch (themeName)
     {
         case "Office2007BlueName":
             m_themes = 0;
             ThemeManager.ApplicationThemeName = Theme.Office2007BlueName;
             imgBrush.ImageSource = new BitmapImage(new Uri("/SilverlightQLThuebao;component/Images/background2.jpg", UriKind.Relative));
             grid1.Background = imgBrush;                    
             txtthongbao.Foreground = new SolidColorBrush(Colors.Red);
             SetThemes();
             break;
         case "DeepBlueName":
             m_themes = 1;
             ThemeManager.ApplicationThemeName = Theme.DeepBlueName;
             imgBrush.ImageSource = new BitmapImage(new Uri("/SilverlightQLThuebao;component/Images/background1.jpg", UriKind.Relative));
             grid1.Background = imgBrush;                     
             SetThemes();
             break;
         case "DXStyleName":
             m_themes = 2;
             ThemeManager.ApplicationThemeName = Theme.VS2010Name;
             // grid1.Background = "/SilverlightQLThuebao;component/Images/bg_body-blue.jpg";                   
             imgBrush.ImageSource = new BitmapImage(new Uri("/SilverlightQLThuebao;component/Images/background4.jpg", UriKind.Relative));
             grid1.Background = imgBrush;
             SetThemes();
             break;
     }
 }
示例#26
0
 void SuspectsGallery_ItemCheckedChanged(object sender, GalleryItemEventArgs e)
 {
     if (e.Item.Checked)
     {
         var result = (PersonOfInterestDetectionResult)e.Item.Tag;
         peopleCompare1.pictureEditTarget.Image = result.Target.ImageCopy;
         peopleCompare1.pictureEditSuspect.Image = result.Suspect.GetIpl().ToBitmap();
     }
 }