Пример #1
0
 private void InitPage()
 {
     foreach (ActivityEquipmentInfo equInfo in _equList)
     {
         Canvas    _canvasView = LicenseViewFactory.CreateLicenseViewCanvas(equInfo, _licenseTempleteInfo, (bool)chkIsPrintBg.IsChecked);
         Thickness thick       = new Thickness(12, 12, 0, 0);
         _canvasView.Margin = thick;
         panelView.Children.Add(_canvasView);
     }
 }
Пример #2
0
        /// <summary>
        /// 预览许可证
        /// </summary>
        private void viewLicense()
        {
            ActivityEquipmentInfo equTemp = getTempEquInfo();
            Canvas _viewCanvas            = LicenseViewFactory.CreateLicenseViewCanvas(equTemp, _licenseTempleteInfo, true);

            grpView.Content = _viewCanvas;
            //borderView.Child = _viewCanvas;
            //borderView.Height = _licenseTemplete.Height + 2;
            //borderView.Width = _licenseTemplete.Width + 2;
            //grpView.Width = _licenseTemplete.Width + 20;
            //borderView.Visibility = Visibility.Visible;
        }