public RowFilterDialog(DashboardHelper dashboardHelper, FilterDialogMode pMode, DataFilters filters, bool includeUserDefinedVars) { InitializeComponent(); this.includeUserDefinedVars = includeUserDefinedVars; this.dashboardHelper = dashboardHelper; this.Mode = pMode; Construct(); rfc = new EpiDashboard.RowFilterControl(dashboardHelper, Mode, filters, includeUserDefinedVars); host.Child = rfc; }
public RowFilterDialog(DashboardHelper dashboardHelper, FilterDialogMode pMode, DataFilters filters, bool includeUserDefinedVars) { InitializeComponent(); this.includeUserDefinedVars = includeUserDefinedVars; this.dashboardHelper = dashboardHelper; this.Mode = pMode; Construct(); rfc = new EpiDashboard.RowFilterControl(dashboardHelper, Mode, filters, includeUserDefinedVars); host.Child = rfc; System.Windows.Size elementSize = GetElementPixelSize(host.Child); this.Width = (int)elementSize.Width + 90; this.Height = (int)elementSize.Height + 90; }