Beispiel #1
0
 private void animationType_SelectedIndexChanged(object sender, C1.WPF.PropertyChangedEventArgs <int> e)
 {
     if (sender != null)
     {
         C1ComboBox c     = sender as C1ComboBox;
         int        index = c.SelectedIndex;
         if (index < 0)
         {
             c1Rating.AnimationType = (AnimationType)0;
         }
         else
         {
             c1Rating.AnimationType = (AnimationType)c.SelectedIndex;
         }
     }
 }
        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();
            }
        }