• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# DashboardHelper类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中DashboardHelper的典型用法代码示例。如果您正苦于以下问题:C# DashboardHelper类的具体用法?C# DashboardHelper怎么用?C# DashboardHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DashboardHelper类属于命名空间,在下文中一共展示了DashboardHelper类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: StandardImageControl

 public StandardImageControl(DashboardHelper dashboardHelper, DashboardControl dashboardControl)
 {
     InitializeComponent();
     Construct();
     this.dashboardHelper = dashboardHelper;
     this.dashboardControl = dashboardControl;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:7,代码来源:StandardImageControl.xaml.cs


示例2: AberrationControl

 public AberrationControl(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.dashboardHelper = dashboardHelper;
     Construct();
     FillComboboxes();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:7,代码来源:AberrationControl.xaml.cs


示例3: DuplicatesListControl

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dashboardHelper">The dashboard helper object to attach</param>
 public DuplicatesListControl(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.DashboardHelper = dashboardHelper;
     this.IsHostedByEnter = false;
     Construct();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:DuplicatesListControl.xaml.cs


示例4: ComplexSampleFrequencyControl

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="dashboardHelper">The dashboard helper object to attach</param>
 public ComplexSampleFrequencyControl(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.dashboardHelper = dashboardHelper;
     Construct();
     FillComboboxes();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:ComplexSampleFrequencyControl.xaml.cs


示例5: PMCCControl

 public PMCCControl(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.DashboardHelper = dashboardHelper;
     Construct();
     FillComboboxes();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:7,代码来源:PMCCControl.xaml.cs


示例6: AberrationChartGadget

 public AberrationChartGadget(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.DashboardHelper = dashboardHelper;
     Construct();
     FillComboboxes();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:7,代码来源:AberrationChartGadget.xaml.cs


示例7: ConditionalAssignDialog

 public ConditionalAssignDialog(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.dashboardHelper = dashboardHelper;
     this.DataFilters = new DataFilters(dashboardHelper);
     FillComboBoxes();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:7,代码来源:ConditionalAssignDialog.cs


示例8: DataFilteringControl

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="view">The view to attach</param>
        /// <param name="db">The database to attach</param>
        /// <param name="dashboardHelper">The dashboard helper to attach</param>
        public DataFilteringControl(DashboardHelper dashboardHelper)
        {
            InitializeComponent();
            this.dashboardHelper = dashboardHelper;
            txtTitle.RenderTransform = new RotateTransform(270);
            FillSelectionComboboxes();

            selectionGridHeight = grdSelectionProperties.Height;
            guidedButtonsGridHeight = grdGuidedModeButtons.Height;

            if (dashboardHelper.UseAdvancedUserDataFilter)
            {
                pnlAdvancedMode.Visibility = Visibility.Visible;
                txtAdvancedFilter.Text = dashboardHelper.AdvancedUserDataFilter;
                SetAdvancedFilterMode();
                ApplyAdvancedModeFilter();
            }
            else
            {
                pnlAdvancedMode.Visibility = Visibility.Collapsed;
                txtAdvancedFilter.Text = string.Empty;
                SetGuidedFilterMode();
            }

            UpdateFilterConditions();
            imgClose.MouseUp += new MouseButtonEventHandler(imgClose_MouseUp);

            if (!dashboardHelper.IsUsingEpiProject)
            {
                panelAdvanced.Visibility = Visibility.Collapsed;
            }
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:38,代码来源:DataFilteringControl.xaml.cs


示例9: Rule_ConditionalAssign

        /// <summary>
        /// Constructor for conditional assignment with custom column type
        /// </summary>
        public Rule_ConditionalAssign(DashboardHelper dashboardHelper, string friendlyRule, string destinationColumnName, string destinationColumnType, /*Dictionary<string, object> conditions*/object assignValue, object elseValue, string condition)
        {
            this.friendlyRule = friendlyRule;
            this.destinationColumnName = destinationColumnName;
            this.destinationColumnType = destinationColumnType;
            this.DashboardHelper = dashboardHelper;
            this.condition = condition;

            if (DestinationColumnType.Equals("System.String"))
            {
                this.variableType = DashboardVariableType.Text;
            }
            else if (DestinationColumnType.Equals("System.Boolean"))
            {
                this.variableType = DashboardVariableType.YesNo;
            }
            else
            {
                this.variableType = DashboardVariableType.Numeric;
            }
            //this.conditions = conditions;
            this.assignValue = assignValue;
            this.elseValue = elseValue;
            if (elseValue == null)
            {
                UseElse = false;
            }
            else
            {
                UseElse = true;
            }
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:35,代码来源:Rule_ConditionalAssign.cs


示例10: LogisticRegressionControl

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="db">The database to attach</param>
 /// <param name="view">The view to attach</param>
 public LogisticRegressionControl(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.dashboardHelper = dashboardHelper;
     Construct();
     FillComboboxes();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:LogisticRegressionControl.xaml.cs


示例11: CrosstabControl

 public CrosstabControl(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.DashboardHelper = dashboardHelper;
     Construct();
     //FillComboboxes();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:7,代码来源:CrosstabControl.xaml.cs


示例12: MergeControl

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="view">The view to attach</param>
        /// <param name="db">The database to attach</param>
        /// <param name="dashboardHelper">The dashboard helper to attach</param>
        public MergeControl(DashboardHelper dashboardHelper)
        {
            InitializeComponent();

            pnlTableOverwrite.Visibility = System.Windows.Visibility.Collapsed;
            pnlError.Visibility = System.Windows.Visibility.Collapsed;
            pnlProgress.Visibility = System.Windows.Visibility.Collapsed;

            this.dashboardHelper = dashboardHelper;

            imgClose.MouseEnter += new MouseEventHandler(imgClose_MouseEnter);
            imgClose.MouseLeave += new MouseEventHandler(imgClose_MouseLeave);
            imgClose.MouseDown += new MouseButtonEventHandler(imgClose_MouseDown);

            cmbSourceDataFormat.Items.Clear();
            this.GadgetProgressUpdate += new GadgetProgressUpdateHandler(RequestUpdateStatusMessage);

            foreach (Epi.DataSets.Config.DataDriverRow row in dashboardHelper.Config.DataDrivers)
            {
                ComboBoxItem item = new ComboBoxItem();
                item.Content = row.DisplayName;
                //cmbDataFormats.Items.Add(new ComboBoxItem(row.Type, row.DisplayName, null));
                cmbSourceDataFormat.Items.Add(item);
            }
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:31,代码来源:MergeControl.xaml.cs


示例13: DataRecodingControl

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="view">The view to attach</param>
 /// <param name="db">The database to attach</param>
 /// <param name="dashboardHelper">The dashboard helper to attach</param>
 public DataRecodingControl(DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.dashboardHelper = dashboardHelper;
     txtTitle.RenderTransform = new RotateTransform(90);
     UpdateRules();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:DataRecodingControl.xaml.cs


示例14: ExportWindow

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="view">The view to attach</param>
        /// <param name="db">The database to attach</param>
        /// <param name="dashboardHelper">The dashboard helper to attach</param>
        public ExportWindow(DashboardHelper dashboardHelper)
        {
            InitializeComponent();

            messagePanel.Visibility = System.Windows.Visibility.Collapsed;
            messagePanel.Text = string.Empty;
            messagePanel.HideProgressBar();

            //pnlTableOverwrite.Visibility = System.Windows.Visibility.Collapsed;
            //pnlError.Visibility = System.Windows.Visibility.Collapsed;
            //pnlProgress.Visibility = System.Windows.Visibility.Collapsed;

            this.dashboardHelper = dashboardHelper;
            lbxExportFields.SelectionChanged += new SelectionChangedEventHandler(lbxExportFields_SelectionChanged);
            FillComboboxes();
            exportFields = new List<string>();
            allFieldsSelected = true;

            cmbDataFormats.Items.Clear();
            this.GadgetProgressUpdate += new GadgetProgressUpdateHandler(RequestUpdateStatusMessage);

            foreach (Epi.DataSets.Config.DataDriverRow row in dashboardHelper.Config.DataDrivers)
            {
                ComboBoxItem item = new ComboBoxItem();
                item.Content = row.DisplayName;
                //cmbDataFormats.Items.Add(new ComboBoxItem(row.Type, row.DisplayName, null));
                cmbDataFormats.Items.Add(item);
            }

            cmbDataFormats.SelectionChanged += new SelectionChangedEventHandler(cmbDataFormats_SelectionChanged);

            if (dashboardHelper.IsUsingEpiProject)
            {
                checkboxTabOrder.IsEnabled = true;
                checkboxTabOrder.IsChecked = true;
                checkboxUsePrompts.IsEnabled = true;
            }
            else
            {
                checkboxTabOrder.IsEnabled = false;
                checkboxTabOrder.IsChecked = false;
                checkboxUsePrompts.IsEnabled = false;
                checkboxUsePrompts.IsChecked = false;
            }

            #region Translation
            this.Title = DashboardSharedStrings.EXPORT_WINDOW_TITLE;
            this.tblockOutputFormat.Text = DashboardSharedStrings.EXPORT_OUTPUT_FORMAT;
            this.tblockConnInfo.Text = DashboardSharedStrings.EXPORT_CONN_INFO;
            this.tblockDestinationTable.Text = DashboardSharedStrings.EXPORT_DEST_TABLE;
            this.tblockFields.Text = DashboardSharedStrings.EXPORT_FIELDS_TO_EXPORT;
            this.checkboxTabOrder.Content = DashboardSharedStrings.EXPORT_SORT_BY_TAB_ORDER;
            this.btnCancel.Content = DashboardSharedStrings.EXPORT_BUTTON_CLOSE;
            this.btnExport.Content = DashboardSharedStrings.EXPORT_BUTTON_EXPORT;
            this.btnConnectionBrowse.Content = DashboardSharedStrings.EXPORT_BUTTON_BROWSE;
            #endregion // Translation

            EnableDisableExportButton();
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:65,代码来源:ExportWindow.xaml.cs


示例15: LayerList

 public LayerList(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper)
 {
     InitializeComponent();
     this.myMap = myMap;
     this.view = view;
     this.db = db;
     this.dashboardHelper = dashboardHelper;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:8,代码来源:LayerList.xaml.cs


示例16: Rule_ExpressionAssign

 /// <summary>
 /// Constructor for simple assignment
 /// </summary>
 public Rule_ExpressionAssign(DashboardHelper dashboardHelper, string friendlyRule, string destinationColumnName, string expression)
 {
     this.friendlyRule = friendlyRule;
     this.destinationColumnName = destinationColumnName;
     this.destinationColumnType = "System.Decimal";
     this.DashboardHelper = dashboardHelper;
     this.variableType = DashboardVariableType.Numeric;
     this.expression = expression;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:Rule_ExpressionAssign.cs


示例17: RecodeDialog

 /// <summary>
 /// Constructor
 /// </summary>
 public RecodeDialog(DashboardHelper dashboardHelper)
 {
     this.dashboardHelper = dashboardHelper;
     this.editMode = false;
     InitializeComponent();
     FillComboBoxes();
     this.checkboxMaintainSortOrder.Checked = true;
     this.checkboxUseWildcards.Checked = false;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:RecodeDialog.cs


示例18: PieChart

        public PieChart(DashboardHelper dashboardHelper, PieChartParameters parameters, List<XYColumnChartData> dataList)
        {
            InitializeComponent();
            PieChartParameters = parameters;
            this.DashboardHelper = dashboardHelper;
            SetChartProperties();
            SetChartData(dataList);

            xyChart.Legend.BorderBrush = Brushes.Gray;
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:10,代码来源:PieChart.xaml.cs


示例19: Rule_SimpleAssign

 /// <summary>
 /// Constructor for simple assignment
 /// </summary>
 public Rule_SimpleAssign(DashboardHelper dashboardHelper, string friendlyRule, string destinationColumnName, SimpleAssignType assignmentType, List<string> assignmentParameters)
 {
     this.friendlyRule = friendlyRule;
     this.destinationColumnName = destinationColumnName;
     this.DashboardHelper = dashboardHelper;
     this.variableType = DashboardVariableType.Numeric;
     this.assignmentType = assignmentType;
     this.destinationColumnType = GetDestinationColumnType(this.assignmentType);
     this.assignmentParameters = assignmentParameters;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:Rule_SimpleAssign.cs


示例20: ComplexSampleMeansProperties

        public ComplexSampleMeansProperties(
            DashboardHelper dashboardHelper, 
            IGadget gadget,
            ComplexSampleMeansParameters parameters,
            List<Grid> strataGridList
            )
        {
            InitializeComponent();
            this.DashboardHelper = dashboardHelper;
            this.Gadget = gadget;
            this.Parameters = parameters;

            List<string> fields = new List<string>();
            List<FieldInfo> items = new List<FieldInfo>();
            List<string> crosstabFields = new List<string>();
            List<string> strataFields = new List<string>();

            crosstabFields.Add(string.Empty);
            items.Add(new FieldInfo()
            {
                Name = "",
                DataType = "",
                VariableCategory = VariableCategory.Field
            });

            foreach (string fieldName in DashboardHelper.GetFieldsAsList())
            {
                items.Add(new FieldInfo()
                {
                    Name = fieldName,
                    DataType = DashboardHelper.GetColumnDbType(fieldName).ToString(),
                    VariableCategory = VariableCategory.Field
                });

                fields.Add(fieldName);
                crosstabFields.Add(fieldName);
                strataFields.Add(fieldName);
            }
            fields.Sort();
            crosstabFields.Sort();

            cbxField.ItemsSource = fields;
            cbxFieldWeight.ItemsSource = fields;
            cbxFieldCrosstab.ItemsSource = crosstabFields;
            cbxFieldStrata.ItemsSource = strataFields;
            cbxFieldPSU.ItemsSource = strataFields;

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

            RowFilterControl = new RowFilterControl(this.DashboardHelper, Dialogs.FilterDialogMode.ConditionalMode, (gadget as ComplexSampleMeansControl).DataFilters, true);
            RowFilterControl.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            panelFilters.Children.Add(RowFilterControl);
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:55,代码来源:ComplexSampleMeansProperties.xaml.cs



注:本文中的DashboardHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Data类代码示例发布时间:2022-05-24
下一篇:
C# DashStyle类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap