コード例 #1
0
 private void Par_ValueChanged(object sender, C1.WPF.PropertyChangedEventArgs <double> e)
 {
     if (_pfs != null)
     {
         _pfs.UpdateData();
     }
 }
コード例 #2
0
        private void BarcodeType_SelectedItemChanged(object sender, C1.WPF.PropertyChangedEventArgs <object> e)
        {
            if (BarcodeType.SelectedItem == null)
            {
                return;
            }
            barCode.Text = "";
            CodeType codetype = (CodeType)BarcodeType.SelectedItem;

            barCode.CodeType = codetype;
            // Change the available text for selected barcode type
            switch (codetype)
            {
            case CodeType.HIBCCode128:
            case CodeType.HIBCCode39:
                BarcodeText.Text = @"A123PROD78905/0123456789DATA";
                break;

            case CodeType.IntelligentMailPackage:
                BarcodeText.Text = "9212391234567812345671";
                break;

            case CodeType.PZN:
                BarcodeText.Text = "01234562";
                break;

            case CodeType.Pharmacode:
                BarcodeText.Text = "131070";
                break;

            case CodeType.SSCC18:
                BarcodeText.Text = "1234t5+678912345678";
                break;

            case CodeType.Bc412:
                BarcodeText.Text = "AQ1557";
                break;

            case CodeType.MicroQRCode:
                BarcodeText.Text = "12345";
                break;

            case CodeType.Iata25:
                BarcodeText.Text = "0123456789";
                break;

            case CodeType.ITF14:
                BarcodeText.Text = "1234567891011";
                break;

            default:
                BarcodeText.Text = "9790123456785";
                break;
            }
            barCode.Text = BarcodeText.Text;
        }
コード例 #3
0
        private void nbOrder_ValueChanged(object sender, C1.WPF.PropertyChangedEventArgs <double> e)
        {
            TrendLine tl = DataContext as TrendLine;

            if (tl != null)
            {
                tl.Order = (int)nbOrder.Value;
                tl.Label = CreateLabel(tl);
            }
        }
コード例 #4
0
        private void nbPeriod_ValueChanged(object sender, C1.WPF.PropertyChangedEventArgs <double> e)
        {
            MovingAverage ms = DataContext as MovingAverage;

            if (ms != null)
            {
                ms.Period = (int)nbPeriod.Value;
                ms.Label  = string.Format("MovAvg {0}", ms.Period);
            }
        }
コード例 #5
0
 void maps_TargetZoomChanged(object sender, C1.WPF.PropertyChangedEventArgs <double> e)
 {
     if (e.NewValue >= 2)
     {
         vl.LabelVisibility = LabelVisibility.AutoHide;
     }
     else
     {
         vl.LabelVisibility = LabelVisibility.Hidden;
     }
 }
コード例 #6
0
 private void displaymode_SelectedIndexChanged(object sender, C1.WPF.PropertyChangedEventArgs <int> e)
 {
     if (displaymode.SelectedIndex == 0)
     {
         datePicker.DisplayMode = CalendarMode.Month;
     }
     else if (displaymode.SelectedIndex == 1)
     {
         datePicker.DisplayMode = CalendarMode.Year;
     }
     else
     {
         datePicker.DisplayMode = CalendarMode.Decade;
     }
 }
コード例 #7
0
 void ZoomCombo_SelectionCommitted(object sender, C1.WPF.PropertyChangedEventArgs <object> e)
 {
     if (!_innerZoomChange)
     {
         var value = zoomCombo.SelectedItem;
         if (value is double)
         {
             _fvp.ZoomFactor = (float)((double)value);
         }
         else if (value is FlexViewerZoomMode)
         {
             _fvp.ZoomMode = (FlexViewerZoomMode)value;
         }
         _fvp.FocusFirstElement();
     }
 }
コード例 #8
0
        void ReportCombo_SelectionCommitted(object sender, C1.WPF.PropertyChangedEventArgs <object> e)
        {
            if (!_loaded || _ssrsDocSource.IsBusy)
            {
                return;
            }
            int index = fv.DocumentListCombo.SelectedIndex;

            if (index >= 0 && index < _catalogItems.Count)
            {
                fv.DocumentSource = null;
                _ssrsDocSource.DocumentLocation = new SSRSReportLocation(_ssrsServerUrl, _catalogItems[index].Path);
                fv.DocumentSource = _ssrsDocSource;
                fv.FocusPane();
            }
        }
コード例 #9
0
        void ReportCombo_SelectionCommitted(object sender, C1.WPF.PropertyChangedEventArgs <object> e)
        {
            if (_flexReport.IsBusy || _flexReport.IsDisposed)
            {
                return;
            }
            var reportName = fv.DocumentListCombo.SelectedItem as string;

            if (!string.IsNullOrEmpty(reportName))
            {
                fv.DocumentSource = null;
                _reportStream.Seek(0, SeekOrigin.Begin);
                _flexReport.Load(_reportStream, reportName);
                fv.DocumentSource = _flexReport;
                fv.FocusPane();
            }
        }
コード例 #10
0
 void column_WidthChanged(object sender, C1.WPF.PropertyChangedEventArgs <C1.WPF.DataGrid.DataGridLength> e)
 {
     SaveDataGridSettingsAsync();
 }
コード例 #11
0
 void c1DataGrid1_FrozenColumnCountChanged(object sender, C1.WPF.PropertyChangedEventArgs <int> e)
 {
     SaveDataGridSettingsAsync();
 }