/// <summary>
 /// Copy constructor
 /// </summary>
 public AberrationDetectionChartParameters(AberrationDetectionChartParameters parameters)
     : base(parameters)
 {
     LineType = parameters.LineType;
     YAxisFontSize = parameters.YAxisFontSize;
     YAxisLabelFontSize = parameters.YAxisLabelFontSize;
     XAxisFontSize = parameters.XAxisFontSize;
     XAxisLabelFontSize = parameters.XAxisLabelFontSize;
 }
Example #2
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 public AberrationDetectionChartParameters(AberrationDetectionChartParameters parameters)
     : base(parameters)
 {
     LineType           = parameters.LineType;
     YAxisFontSize      = parameters.YAxisFontSize;
     YAxisLabelFontSize = parameters.YAxisLabelFontSize;
     XAxisFontSize      = parameters.XAxisFontSize;
     XAxisLabelFontSize = parameters.XAxisLabelFontSize;
 }
        /// <summary>
        /// Default constructor
        /// </summary>
        public AberrationDetectionChartParametersBase(AberrationDetectionChartParameters parameters)
            : base(parameters)
        {
            LineType = parameters.LineType;
            LineKind = parameters.LineKind;
            Y2LineKind = parameters.Y2LineKind;

            LagTime = parameters.LagTime;
            Deviations = parameters.Deviations;
            TimePeriod = parameters.TimePeriod;
            Aberration = parameters.Aberration;
        }
Example #4
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public AberrationDetectionChartParametersBase(AberrationDetectionChartParameters parameters)
            : base(parameters)
        {
            LineType   = parameters.LineType;
            LineKind   = parameters.LineKind;
            Y2LineKind = parameters.Y2LineKind;

            LagTime    = parameters.LagTime;
            Deviations = parameters.Deviations;
            TimePeriod = parameters.TimePeriod;
            Aberration = parameters.Aberration;
        }
        public void SetChartLabels(AberrationDetectionChartParameters Parameters)
        {
            //EI-98
            xAxisCoordinates.FontSize = Parameters.XAxisFontSize;
            yAxisCoordinates.FontSize = Parameters.YAxisFontSize;

            tblockXAxisLabel.FontSize = Parameters.XAxisLabelFontSize;
            tblockYAxisLabel.FontSize = Parameters.YAxisLabelFontSize;
        }
 /// <summary>
 /// Copy constructor
 /// </summary>
 public AberrationDetectionChartParameters(AberrationDetectionChartParameters parameters)
     : base(parameters)
 {
     LineType = parameters.LineType;
 }
        public AberrationDetectionChartProperties(
            DashboardHelper dashboardHelper,
            IGadget gadget,
            AberrationDetectionChartParameters parameters,
            List<Grid> strataGridList
            )
        {
            InitializeComponent();
            this.DashboardHelper = dashboardHelper;
            this.Gadget = gadget;
            this.Parameters = parameters;
            this.StrataGridList = strataGridList;

            //Variable fields

            List<string> fieldNames = new List<string>();
            List<string> weightFieldNames = new List<string>();
            List<string> strataFieldNames = new List<string>();

            ColumnDataType columnDataType = ColumnDataType.DateTime | ColumnDataType.UserDefined;
            fieldNames = DashboardHelper.GetFieldsAsList(columnDataType);

            weightFieldNames.Add(string.Empty);
            columnDataType = ColumnDataType.Numeric | ColumnDataType.UserDefined;
            weightFieldNames.AddRange(DashboardHelper.GetFieldsAsList(columnDataType));

            strataFieldNames.Add(string.Empty);
            columnDataType = ColumnDataType.Numeric | ColumnDataType.Boolean | ColumnDataType.Text | ColumnDataType.UserDefined;
            strataFieldNames.AddRange(DashboardHelper.GetFieldsAsList(columnDataType));

            fieldNames.Sort();
            weightFieldNames.Sort();
            strataFieldNames.Sort();

            if (fieldNames.Contains("SYSTEMDATE"))
            {
                fieldNames.Remove("SYSTEMDATE");
            }

            if (DashboardHelper.IsUsingEpiProject)
            {
                if (fieldNames.Contains("RecStatus")) fieldNames.Remove("RecStatus");
                if (weightFieldNames.Contains("RecStatus")) weightFieldNames.Remove("RecStatus");

                if (strataFieldNames.Contains("RecStatus")) strataFieldNames.Remove("RecStatus");
                if (strataFieldNames.Contains("FKEY")) strataFieldNames.Remove("FKEY");
                if (strataFieldNames.Contains("GlobalRecordId")) strataFieldNames.Remove("GlobalRecordId");
            }

            cmbField.ItemsSource = fieldNames;
            cmbFieldWeight.ItemsSource = weightFieldNames;
            listboxFieldStrata.ItemsSource = strataFieldNames;

            txtYAxisLabelValue.Text = "Count";
            txtXAxisLabelValue.Text = String.Empty;

            CollectionView view = (CollectionView)CollectionViewSource.GetDefaultView(cmbField.ItemsSource);
            PropertyGroupDescription groupDescription = new PropertyGroupDescription("VariableCategory");
            view.GroupDescriptions.Add(groupDescription);

            RowFilterControl = new RowFilterControl(this.DashboardHelper, Dialogs.FilterDialogMode.ConditionalMode, (gadget as AberrationChartGadget).DataFilters, true);
            RowFilterControl.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            panelFilters.Children.Add(RowFilterControl);

            //EI-98
            txtXAxisFontSize.Text = parameters.XAxisFontSize.ToString();
            txtYAxisFontSize.Text = parameters.YAxisFontSize.ToString();

            txtXAxisLabelFontSize.Text = parameters.XAxisLabelFontSize.ToString();
            txtYAxisLabelFontSize.Text = parameters.YAxisLabelFontSize.ToString();

            txtWidth.PreviewKeyDown += new KeyEventHandler(txtInput_PositiveIntegerOnly_PreviewKeyDown);
            txtHeight.PreviewKeyDown += new KeyEventHandler(txtInput_PositiveIntegerOnly_PreviewKeyDown);
            txtLagTime.PreviewKeyDown += new KeyEventHandler(txtInput_PositiveIntegerOnly_PreviewKeyDown);
            txtDeviations.PreviewKeyDown += new KeyEventHandler(txtInput_PositiveIntegerOnly_PreviewKeyDown);
            txtTimePeriod.PreviewKeyDown += new KeyEventHandler(txtInput_PositiveIntegerOnly_PreviewKeyDown);

            #region Translation

            #endregion // Translation
        }