///<summary>Call before form is Shown. Adds the given controls to the list of filter controls. ///We will loop through all the controls in the list to identify the first control that has had its filter change commited for FilterCommitMs. ///Once a filter is commited, the filter action will be invoked and the thread will wait for the next filter change to start the thread again. ///Controls which are not text-based will commit immediately and will not use a thread (ex checkboxes).</summary> protected void SetFilterControlsAndAction(Action action, params Control[] arrayControls) { if (HasShown) { return; } _filterAction = action; foreach (Control control in arrayControls) { //Keep the following if/else block in alphabetical order to it is easy to see which controls are supported. if (control.GetType().IsSubclassOf(typeof(CheckBox)) || control.GetType() == typeof(CheckBox)) { CheckBox checkbox = (CheckBox)control; checkbox.CheckedChanged += Control_FilterCommitImmediate; } else if (control.GetType().IsSubclassOf(typeof(ComboBox)) || control.GetType() == typeof(ComboBox)) { ComboBox comboBox = (ComboBox)control; comboBox.SelectionChangeCommitted += Control_FilterCommitImmediate; } else if (control.GetType().IsSubclassOf(typeof(ComboBoxMulti)) || control.GetType() == typeof(ComboBoxMulti)) { ComboBoxMulti comboBoxMulti = (ComboBoxMulti)control; comboBoxMulti.SelectionChangeCommitted += Control_FilterCommitImmediate; } else if (control.GetType().IsSubclassOf(typeof(ODDateRangePicker)) || control.GetType() == typeof(ODDateRangePicker)) { ODDateRangePicker dateRangePicker = (ODDateRangePicker)control; dateRangePicker.CalendarSelectionChanged += Control_FilterCommitImmediate; } else if (control.GetType().IsSubclassOf(typeof(ODDatePicker)) || control.GetType() == typeof(ODDatePicker)) { ODDatePicker datePicker = (ODDatePicker)control; datePicker.DateTextChanged += Control_FilterChange; } else if (control.GetType().IsSubclassOf(typeof(TextBoxBase)) || control.GetType() == typeof(TextBoxBase)) { //This includes TextBox and RichTextBox, therefore also includes ODtextBox, ValidNum, ValidNumber, ValidDouble. control.TextChanged += Control_FilterChange; } else if (control.GetType().IsSubclassOf(typeof(ListBox)) || control.GetType() == typeof(ListBox)) { control.MouseUp += Control_FilterChange; } else if (control.GetType().IsSubclassOf(typeof(ComboBoxClinicPicker)) || control.GetType() == typeof(ComboBoxClinicPicker)) { ((ComboBoxClinicPicker)control).SelectionChangeCommitted += Control_FilterCommitImmediate; } else if (control.GetType().IsSubclassOf(typeof(ComboBoxPlus)) || control.GetType() == typeof(ComboBoxPlus)) { ((ComboBoxPlus)control).SelectionChangeCommitted += Control_FilterCommitImmediate; } else { throw new NotImplementedException("Filter control of type " + control.GetType().Name + " is undefined. Define it in ODForm.AddFilterControl()."); } _listFilterControls.Add(control); } }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpTreatmentFinder)); this.label1 = new System.Windows.Forms.Label(); this.checkIncludeNoIns = new System.Windows.Forms.CheckBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.comboClinics = new OpenDental.UI.ComboBoxClinicPicker(); this.codeRangeFilter = new OpenDental.UI.ODCodeRangeFilter(); this.checkBenefitAssumeGeneral = new System.Windows.Forms.CheckBox(); this.comboBoxMultiBilling = new OpenDental.UI.ComboBoxMulti(); this.comboBoxMultiProv = new OpenDental.UI.ComboBoxMulti(); this.textOverAmount = new OpenDental.ValidDouble(); this.comboMonthStart = new System.Windows.Forms.ComboBox(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.labelCodeRange = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.textDateStart = new OpenDental.ValidDate(); this.label2 = new System.Windows.Forms.Label(); this.butRefresh = new OpenDental.UI.Button(); this.checkIncludePatsWithApts = new System.Windows.Forms.CheckBox(); this.contextRightClick = new System.Windows.Forms.ContextMenu(); this.menuItemFamily = new System.Windows.Forms.MenuItem(); this.menuItemAccount = new System.Windows.Forms.MenuItem(); this.gridMain = new OpenDental.UI.ODGrid(); this.buttonExport = new OpenDental.UI.Button(); this.butLettersPreview = new OpenDental.UI.Button(); this.butLabelSingle = new OpenDental.UI.Button(); this.butLabelPreview = new OpenDental.UI.Button(); this.butGotoAccount = new OpenDental.UI.Button(); this.butGotoFamily = new OpenDental.UI.Button(); this.butPrint = new OpenDental.UI.Button(); this.butCancel = new OpenDental.UI.Button(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(22, 9); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(872, 29); this.label1.TabIndex = 29; this.label1.Text = resources.GetString("label1.Text"); // // checkIncludeNoIns // this.checkIncludeNoIns.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkIncludeNoIns.Location = new System.Drawing.Point(31, 14); this.checkIncludeNoIns.Name = "checkIncludeNoIns"; this.checkIncludeNoIns.Size = new System.Drawing.Size(214, 18); this.checkIncludeNoIns.TabIndex = 30; this.checkIncludeNoIns.Text = "Include patients without insurance"; this.checkIncludeNoIns.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkIncludeNoIns.UseVisualStyleBackColor = true; // // groupBox1 // this.groupBox1.Controls.Add(this.comboClinics); this.groupBox1.Controls.Add(this.codeRangeFilter); this.groupBox1.Controls.Add(this.checkBenefitAssumeGeneral); this.groupBox1.Controls.Add(this.comboBoxMultiBilling); this.groupBox1.Controls.Add(this.comboBoxMultiProv); this.groupBox1.Controls.Add(this.textOverAmount); this.groupBox1.Controls.Add(this.comboMonthStart); this.groupBox1.Controls.Add(this.label8); this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.labelCodeRange); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.textDateStart); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.butRefresh); this.groupBox1.Controls.Add(this.checkIncludePatsWithApts); this.groupBox1.Controls.Add(this.checkIncludeNoIns); this.groupBox1.Location = new System.Drawing.Point(5, 41); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(1040, 83); this.groupBox1.TabIndex = 33; this.groupBox1.TabStop = false; this.groupBox1.Text = "View"; // // comboClinics // this.comboClinics.IncludeUnassigned = true; this.comboClinics.Location = new System.Drawing.Point(478, 54); this.comboClinics.Name = "comboClinics"; this.comboClinics.Size = new System.Drawing.Size(197, 21); this.comboClinics.TabIndex = 77; // // codeRangeFilter // this.codeRangeFilter.HideExampleText = false; this.codeRangeFilter.Location = new System.Drawing.Point(755, 11); this.codeRangeFilter.MaximumSize = new System.Drawing.Size(300, 37); this.codeRangeFilter.MinimumSize = new System.Drawing.Size(0, 20); this.codeRangeFilter.Name = "codeRangeFilter"; this.codeRangeFilter.Size = new System.Drawing.Size(150, 37); this.codeRangeFilter.TabIndex = 76; // // checkBenefitAssumeGeneral // this.checkBenefitAssumeGeneral.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBenefitAssumeGeneral.Location = new System.Drawing.Point(682, 50); this.checkBenefitAssumeGeneral.Name = "checkBenefitAssumeGeneral"; this.checkBenefitAssumeGeneral.Size = new System.Drawing.Size(226, 18); this.checkBenefitAssumeGeneral.TabIndex = 75; this.checkBenefitAssumeGeneral.Text = "Assume procedures are General"; this.checkBenefitAssumeGeneral.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkBenefitAssumeGeneral.UseVisualStyleBackColor = true; // // comboBoxMultiBilling // this.comboBoxMultiBilling.ArraySelectedIndices = new int[0]; this.comboBoxMultiBilling.BackColor = System.Drawing.SystemColors.Window; this.comboBoxMultiBilling.Items = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiBilling.Items"))); this.comboBoxMultiBilling.Location = new System.Drawing.Point(515, 32); this.comboBoxMultiBilling.Name = "comboBoxMultiBilling"; this.comboBoxMultiBilling.SelectedIndices = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiBilling.SelectedIndices"))); this.comboBoxMultiBilling.Size = new System.Drawing.Size(160, 21); this.comboBoxMultiBilling.TabIndex = 50; this.comboBoxMultiBilling.Leave += new System.EventHandler(this.comboBoxMultiBilling_Leave); // // comboBoxMultiProv // this.comboBoxMultiProv.ArraySelectedIndices = new int[0]; this.comboBoxMultiProv.BackColor = System.Drawing.SystemColors.Window; this.comboBoxMultiProv.Items = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.Items"))); this.comboBoxMultiProv.Location = new System.Drawing.Point(515, 10); this.comboBoxMultiProv.Name = "comboBoxMultiProv"; this.comboBoxMultiProv.SelectedIndices = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.SelectedIndices"))); this.comboBoxMultiProv.Size = new System.Drawing.Size(160, 21); this.comboBoxMultiProv.TabIndex = 49; this.comboBoxMultiProv.Leave += new System.EventHandler(this.comboBoxMultiProv_Leave); // // textOverAmount // this.textOverAmount.Location = new System.Drawing.Point(177, 55); this.textOverAmount.MaxVal = 100000000D; this.textOverAmount.MinVal = -100000000D; this.textOverAmount.Name = "textOverAmount"; this.textOverAmount.Size = new System.Drawing.Size(68, 20); this.textOverAmount.TabIndex = 48; // // comboMonthStart // this.comboMonthStart.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.comboMonthStart.Items.AddRange(new object[] { "Calendar Year", "01 - January", "02 - February", "03 - March", "04 - April", "05 - May", "06 - June", "07 - July", "08 - August", "09 - September", "10 - October", "11 - November", "12 - December" }); this.comboMonthStart.Location = new System.Drawing.Point(346, 32); this.comboMonthStart.MaxDropDownItems = 40; this.comboMonthStart.Name = "comboMonthStart"; this.comboMonthStart.Size = new System.Drawing.Size(98, 21); this.comboMonthStart.TabIndex = 47; // // label8 // this.label8.Location = new System.Drawing.Point(31, 58); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(140, 14); this.label8.TabIndex = 46; this.label8.Text = "Amount remaining over"; this.label8.TextAlign = System.Drawing.ContentAlignment.TopRight; // // label7 // this.label7.Location = new System.Drawing.Point(445, 35); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(70, 14); this.label7.TabIndex = 43; this.label7.Text = "Billing Type"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Location = new System.Drawing.Point(249, 36); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(93, 14); this.label3.TabIndex = 37; this.label3.Text = "Ins Month Start"; this.label3.TextAlign = System.Drawing.ContentAlignment.TopRight; // // labelCodeRange // this.labelCodeRange.Location = new System.Drawing.Point(679, 12); this.labelCodeRange.Name = "labelCodeRange"; this.labelCodeRange.Size = new System.Drawing.Size(77, 17); this.labelCodeRange.TabIndex = 40; this.labelCodeRange.Text = "Code Range"; this.labelCodeRange.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label4 // this.label4.Location = new System.Drawing.Point(445, 14); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(70, 14); this.label4.TabIndex = 35; this.label4.Text = "Provider"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textDateStart // this.textDateStart.Location = new System.Drawing.Point(367, 11); this.textDateStart.Name = "textDateStart"; this.textDateStart.Size = new System.Drawing.Size(77, 20); this.textDateStart.TabIndex = 34; // // label2 // this.label2.Location = new System.Drawing.Point(246, 14); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(119, 14); this.label2.TabIndex = 33; this.label2.Text = "TP Date Since"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // butRefresh // this.butRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.butRefresh.Location = new System.Drawing.Point(346, 55); this.butRefresh.Name = "butRefresh"; this.butRefresh.Size = new System.Drawing.Size(98, 24); this.butRefresh.TabIndex = 32; this.butRefresh.Text = "&Refresh List"; this.butRefresh.Click += new System.EventHandler(this.butRefresh_Click); // // checkIncludePatsWithApts // this.checkIncludePatsWithApts.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkIncludePatsWithApts.Location = new System.Drawing.Point(6, 33); this.checkIncludePatsWithApts.Name = "checkIncludePatsWithApts"; this.checkIncludePatsWithApts.Size = new System.Drawing.Size(239, 18); this.checkIncludePatsWithApts.TabIndex = 30; this.checkIncludePatsWithApts.Text = "Include patients with upcoming appointments"; this.checkIncludePatsWithApts.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkIncludePatsWithApts.UseVisualStyleBackColor = true; // // contextRightClick // this.contextRightClick.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemFamily, this.menuItemAccount }); // // menuItemFamily // this.menuItemFamily.Index = 0; this.menuItemFamily.Text = "See Family"; this.menuItemFamily.Click += new System.EventHandler(this.menuItemFamily_Click); // // menuItemAccount // this.menuItemAccount.Index = 1; this.menuItemAccount.Text = "See Account"; this.menuItemAccount.Click += new System.EventHandler(this.menuItemAccount_Click); // // gridMain // this.gridMain.AllowSortingByColumn = true; this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gridMain.HScrollVisible = true; this.gridMain.Location = new System.Drawing.Point(3, 130); this.gridMain.Name = "gridMain"; this.gridMain.SelectionMode = OpenDental.UI.GridSelectionMode.MultiExtended; this.gridMain.Size = new System.Drawing.Size(1043, 453); this.gridMain.TabIndex = 31; this.gridMain.Title = "Treatment Finder"; this.gridMain.TranslationName = "TableTreatmentFinder"; this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick); this.gridMain.CellClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellClick); // // buttonExport // this.buttonExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.buttonExport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.buttonExport.Location = new System.Drawing.Point(7, 613); this.buttonExport.Name = "buttonExport"; this.buttonExport.Size = new System.Drawing.Size(119, 24); this.buttonExport.TabIndex = 72; this.buttonExport.Text = "Export to File"; this.buttonExport.Click += new System.EventHandler(this.buttonExport_Click); // // butLettersPreview // this.butLettersPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butLettersPreview.Image = global::OpenDental.Properties.Resources.butPreview; this.butLettersPreview.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butLettersPreview.Location = new System.Drawing.Point(7, 587); this.butLettersPreview.Name = "butLettersPreview"; this.butLettersPreview.Size = new System.Drawing.Size(119, 24); this.butLettersPreview.TabIndex = 71; this.butLettersPreview.Text = "Letters Preview"; this.butLettersPreview.Click += new System.EventHandler(this.butLettersPreview_Click); // // butLabelSingle // this.butLabelSingle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butLabelSingle.Image = global::OpenDental.Properties.Resources.butLabel; this.butLabelSingle.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butLabelSingle.Location = new System.Drawing.Point(132, 587); this.butLabelSingle.Name = "butLabelSingle"; this.butLabelSingle.Size = new System.Drawing.Size(119, 24); this.butLabelSingle.TabIndex = 70; this.butLabelSingle.Text = "Single Labels"; this.butLabelSingle.Click += new System.EventHandler(this.butLabelSingle_Click); // // butLabelPreview // this.butLabelPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butLabelPreview.Image = global::OpenDental.Properties.Resources.butLabel; this.butLabelPreview.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butLabelPreview.Location = new System.Drawing.Point(132, 613); this.butLabelPreview.Name = "butLabelPreview"; this.butLabelPreview.Size = new System.Drawing.Size(119, 24); this.butLabelPreview.TabIndex = 69; this.butLabelPreview.Text = "Label Preview"; this.butLabelPreview.Click += new System.EventHandler(this.butLabelPreview_Click); // // butGotoAccount // this.butGotoAccount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butGotoAccount.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butGotoAccount.Location = new System.Drawing.Point(787, 613); this.butGotoAccount.Name = "butGotoAccount"; this.butGotoAccount.Size = new System.Drawing.Size(96, 24); this.butGotoAccount.TabIndex = 68; this.butGotoAccount.Text = "Go to Account"; this.butGotoAccount.Click += new System.EventHandler(this.butGotoAccount_Click); // // butGotoFamily // this.butGotoFamily.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butGotoFamily.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butGotoFamily.Location = new System.Drawing.Point(787, 587); this.butGotoFamily.Name = "butGotoFamily"; this.butGotoFamily.Size = new System.Drawing.Size(96, 24); this.butGotoFamily.TabIndex = 67; this.butGotoFamily.Text = "Go to Family"; this.butGotoFamily.Click += new System.EventHandler(this.butGotoFamily_Click); // // butPrint // this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butPrint.Image = global::OpenDental.Properties.Resources.butPrintSmall; this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(544, 613); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(87, 24); this.butPrint.TabIndex = 34; this.butPrint.Text = "Print List"; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // butCancel // this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butCancel.Location = new System.Drawing.Point(970, 613); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75, 24); this.butCancel.TabIndex = 4; this.butCancel.Text = "&Cancel"; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // FormRpTreatmentFinder // this.ClientSize = new System.Drawing.Size(1049, 641); this.Controls.Add(this.buttonExport); this.Controls.Add(this.butLettersPreview); this.Controls.Add(this.butLabelSingle); this.Controls.Add(this.butLabelPreview); this.Controls.Add(this.butGotoAccount); this.Controls.Add(this.butGotoFamily); this.Controls.Add(this.butPrint); this.Controls.Add(this.groupBox1); this.Controls.Add(this.gridMain); this.Controls.Add(this.label1); this.Controls.Add(this.butCancel); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MinimumSize = new System.Drawing.Size(1065, 309); this.Name = "FormRpTreatmentFinder"; this.Text = "Treatment Finder"; this.Load += new System.EventHandler(this.FormRpTreatmentFinder_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormDeposits)); this.butClose = new OpenDental.UI.Button(); this.grid = new OpenDental.UI.ODGrid(); this.butAdd = new OpenDental.UI.Button(); this.butOK = new OpenDental.UI.Button(); this.labelClinic = new System.Windows.Forms.Label(); this.comboClinic = new OpenDental.UI.ComboBoxMulti(); this.SuspendLayout(); // // butClose // this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butClose.Autosize = true; this.butClose.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClose.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClose.CornerRadius = 4F; this.butClose.Location = new System.Drawing.Point(365, 574); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75, 26); this.butClose.TabIndex = 3; this.butClose.Text = "&Close"; this.butClose.Click += new System.EventHandler(this.butClose_Click); // // grid // this.grid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.grid.HasAddButton = false; this.grid.HasMultilineHeaders = false; this.grid.HeaderHeight = 15; this.grid.HScrollVisible = false; this.grid.Location = new System.Drawing.Point(18, 34); this.grid.Name = "grid"; this.grid.ScrollValue = 0; this.grid.Size = new System.Drawing.Size(339, 567); this.grid.TabIndex = 1; this.grid.Title = "Deposit Slips"; this.grid.TitleHeight = 18; this.grid.TranslationName = "TableDepositSlips"; this.grid.WrapText = false; this.grid.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.grid_CellDoubleClick); // // butAdd // this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butAdd.Anchor = System.Windows.Forms.AnchorStyles.Right; this.butAdd.Autosize = true; this.butAdd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butAdd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butAdd.CornerRadius = 4F; this.butAdd.Image = global::OpenDental.Properties.Resources.Add; this.butAdd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butAdd.Location = new System.Drawing.Point(363, 293); this.butAdd.Name = "butAdd"; this.butAdd.Size = new System.Drawing.Size(77, 26); this.butAdd.TabIndex = 0; this.butAdd.Text = "Add"; this.butAdd.Click += new System.EventHandler(this.butAdd_Click); // // butOK // this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butOK.Autosize = true; this.butOK.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butOK.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butOK.CornerRadius = 4F; this.butOK.Location = new System.Drawing.Point(365, 542); this.butOK.Name = "butOK"; this.butOK.Size = new System.Drawing.Size(75, 26); this.butOK.TabIndex = 2; this.butOK.Text = "&OK"; this.butOK.Click += new System.EventHandler(this.butOK_Click); // // labelClinic // this.labelClinic.Location = new System.Drawing.Point(26, 6); this.labelClinic.Name = "labelClinic"; this.labelClinic.Size = new System.Drawing.Size(58, 21); this.labelClinic.TabIndex = 129; this.labelClinic.Text = "Clinic"; this.labelClinic.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboClinic // this.comboClinic.ArraySelectedIndices = new int[0]; this.comboClinic.BackColor = System.Drawing.SystemColors.Window; this.comboClinic.Items = ((System.Collections.ArrayList)(resources.GetObject("comboClinic.Items"))); this.comboClinic.Location = new System.Drawing.Point(90, 6); this.comboClinic.Name = "comboClinic"; this.comboClinic.SelectedIndices = ((System.Collections.ArrayList)(resources.GetObject("comboClinic.SelectedIndices"))); this.comboClinic.Size = new System.Drawing.Size(166, 24); this.comboClinic.TabIndex = 130; this.comboClinic.SelectionChangeCommitted += new OpenDental.UI.ComboBoxMulti.SelectionChangeCommittedHandler(this.comboClinic_SelectionChangeCommitted); // // FormDeposits // this.AcceptButton = this.butOK; this.ClientSize = new System.Drawing.Size(454, 613); this.Controls.Add(this.comboClinic); this.Controls.Add(this.labelClinic); this.Controls.Add(this.butOK); this.Controls.Add(this.grid); this.Controls.Add(this.butClose); this.Controls.Add(this.butAdd); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(370, 250); this.Name = "FormDeposits"; this.ShowInTaskbar = false; this.Text = "Deposit Slips"; this.Load += new System.EventHandler(this.FormDeposits_Load); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpOutstandingIns)); this.checkPreauth = new System.Windows.Forms.CheckBox(); this.labelProv = new System.Windows.Forms.Label(); this.labelDaysOldMin = new System.Windows.Forms.Label(); this.labelDaysOldMax = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textBox1 = new System.Windows.Forms.TextBox(); this.butRefresh = new OpenDental.UI.Button(); this.butExport = new OpenDental.UI.Button(); this.comboBoxMultiProv = new OpenDental.UI.ComboBoxMulti(); this.butPrint = new OpenDental.UI.Button(); this.textDaysOldMax = new OpenDental.ValidNum(); this.textDaysOldMin = new OpenDental.ValidNum(); this.butCancel = new OpenDental.UI.Button(); this.gridMain = new OpenDental.UI.ODGrid(); this.SuspendLayout(); // // checkPreauth // this.checkPreauth.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkPreauth.Checked = true; this.checkPreauth.CheckState = System.Windows.Forms.CheckState.Checked; this.checkPreauth.FlatStyle = System.Windows.Forms.FlatStyle.System; this.checkPreauth.Location = new System.Drawing.Point(296, 9); this.checkPreauth.Name = "checkPreauth"; this.checkPreauth.Size = new System.Drawing.Size(113, 18); this.checkPreauth.TabIndex = 51; this.checkPreauth.Text = "Include Preauths"; this.checkPreauth.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.checkPreauth.CheckedChanged += new System.EventHandler(this.checkPreauth_CheckedChanged); // // labelProv // this.labelProv.Location = new System.Drawing.Point(412, 8); this.labelProv.Name = "labelProv"; this.labelProv.Size = new System.Drawing.Size(87, 16); this.labelProv.TabIndex = 48; this.labelProv.Text = "Treat Provs"; this.labelProv.TextAlign = System.Drawing.ContentAlignment.BottomRight; // // labelDaysOldMin // this.labelDaysOldMin.Location = new System.Drawing.Point(9, 7); this.labelDaysOldMin.Name = "labelDaysOldMin"; this.labelDaysOldMin.Size = new System.Drawing.Size(93, 18); this.labelDaysOldMin.TabIndex = 46; this.labelDaysOldMin.Text = "Days Old (min)"; this.labelDaysOldMin.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelDaysOldMax // this.labelDaysOldMax.Location = new System.Drawing.Point(163, 7); this.labelDaysOldMax.Name = "labelDaysOldMax"; this.labelDaysOldMax.Size = new System.Drawing.Size(53, 18); this.labelDaysOldMax.TabIndex = 46; this.labelDaysOldMax.Text = "(max)"; this.labelDaysOldMax.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label1 // this.label1.Location = new System.Drawing.Point(100, 25); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(175, 18); this.label1.TabIndex = 54; this.label1.Text = "(leave both blank to show all)"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.label2.Location = new System.Drawing.Point(520, 480); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(69, 18); this.label2.TabIndex = 46; this.label2.Text = "Total"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textBox1 // this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.textBox1.Location = new System.Drawing.Point(595, 479); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(61, 20); this.textBox1.TabIndex = 56; // // butRefresh // this.butRefresh.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.butRefresh.Autosize = true; this.butRefresh.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butRefresh.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butRefresh.CornerRadius = 4F; this.butRefresh.Location = new System.Drawing.Point(670, 5); this.butRefresh.Name = "butRefresh"; this.butRefresh.Size = new System.Drawing.Size(82, 24); this.butRefresh.TabIndex = 58; this.butRefresh.Text = "&Refresh"; this.butRefresh.Click += new System.EventHandler(this.butRefresh_Click); // // butExport // this.butExport.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butExport.Autosize = true; this.butExport.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butExport.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butExport.CornerRadius = 4F; this.butExport.Image = global::OpenDental.Properties.Resources.butExport; this.butExport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butExport.Location = new System.Drawing.Point(97, 476); this.butExport.Name = "butExport"; this.butExport.Size = new System.Drawing.Size(79, 24); this.butExport.TabIndex = 57; this.butExport.Text = "&Export"; this.butExport.Click += new System.EventHandler(this.butExport_Click); // // comboBoxMultiProv // this.comboBoxMultiProv.BackColor = System.Drawing.SystemColors.Window; this.comboBoxMultiProv.DroppedDown = false; this.comboBoxMultiProv.Items = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.Items"))); this.comboBoxMultiProv.Location = new System.Drawing.Point(498, 7); this.comboBoxMultiProv.Name = "comboBoxMultiProv"; this.comboBoxMultiProv.SelectedIndices = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.SelectedIndices"))); this.comboBoxMultiProv.Size = new System.Drawing.Size(160, 21); this.comboBoxMultiProv.TabIndex = 53; this.comboBoxMultiProv.UseCommas = true; this.comboBoxMultiProv.Leave += new System.EventHandler(this.comboBoxMultiProv_Leave); // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.CornerRadius = 4F; this.butPrint.Image = global::OpenDental.Properties.Resources.butPrintSmall; this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(12, 476); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(79, 24); this.butPrint.TabIndex = 52; this.butPrint.Text = "&Print"; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // textDaysOldMax // this.textDaysOldMax.Location = new System.Drawing.Point(219, 7); this.textDaysOldMax.MaxVal = 255; this.textDaysOldMax.MinVal = 0; this.textDaysOldMax.Name = "textDaysOldMax"; this.textDaysOldMax.Size = new System.Drawing.Size(60, 20); this.textDaysOldMax.TabIndex = 47; this.textDaysOldMax.TextChanged += new System.EventHandler(this.textDaysOldMax_TextChanged); // // textDaysOldMin // this.textDaysOldMin.Location = new System.Drawing.Point(106, 7); this.textDaysOldMin.MaxVal = 255; this.textDaysOldMin.MinVal = 0; this.textDaysOldMin.Name = "textDaysOldMin"; this.textDaysOldMin.Size = new System.Drawing.Size(60, 20); this.textDaysOldMin.TabIndex = 47; this.textDaysOldMin.Text = "30"; this.textDaysOldMin.TextChanged += new System.EventHandler(this.textDaysOldMin_TextChanged); // // butCancel // this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butCancel.Autosize = true; this.butCancel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCancel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCancel.CornerRadius = 4F; this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butCancel.Location = new System.Drawing.Point(670, 476); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75, 24); this.butCancel.TabIndex = 45; this.butCancel.Text = "&Close"; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // gridMain // this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gridMain.HScrollVisible = false; this.gridMain.Location = new System.Drawing.Point(12, 46); this.gridMain.Name = "gridMain"; this.gridMain.ScrollValue = 0; this.gridMain.Size = new System.Drawing.Size(740, 416); this.gridMain.TabIndex = 1; this.gridMain.Title = null; this.gridMain.TranslationName = null; this.gridMain.CellDoubleClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellDoubleClick); this.gridMain.CellClick += new OpenDental.UI.ODGridClickEventHandler(this.gridMain_CellClick); // // FormRpOutstandingIns // this.ClientSize = new System.Drawing.Size(764, 512); this.Controls.Add(this.butRefresh); this.Controls.Add(this.butExport); this.Controls.Add(this.textBox1); this.Controls.Add(this.label1); this.Controls.Add(this.labelDaysOldMin); this.Controls.Add(this.comboBoxMultiProv); this.Controls.Add(this.butPrint); this.Controls.Add(this.checkPreauth); this.Controls.Add(this.labelProv); this.Controls.Add(this.textDaysOldMax); this.Controls.Add(this.textDaysOldMin); this.Controls.Add(this.label2); this.Controls.Add(this.labelDaysOldMax); this.Controls.Add(this.butCancel); this.Controls.Add(this.gridMain); this.Name = "FormRpOutstandingIns"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Outstanding Insurance Claims"; this.Load += new System.EventHandler(this.FormRpOutIns_Load); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpProcOverpaid)); this.butClose = new OpenDental.UI.Button(); this.butPrint = new OpenDental.UI.Button(); this.imageListCalendar = new System.Windows.Forms.ImageList(this.components); this.gridMain = new OpenDental.UI.ODGrid(); this.contextMenuGrid = new System.Windows.Forms.ContextMenu(); this.menuItemGoToAccount = new System.Windows.Forms.MenuItem(); this.butRefresh = new OpenDental.UI.Button(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.butCurrent = new OpenDental.UI.Button(); this.butAll = new OpenDental.UI.Button(); this.butFind = new OpenDental.UI.Button(); this.textPatient = new System.Windows.Forms.TextBox(); this.labelPatient = new System.Windows.Forms.Label(); this.labelProv = new System.Windows.Forms.Label(); this.comboBoxMultiProv = new OpenDental.UI.ComboBoxMulti(); this.comboBoxMultiClinics = new OpenDental.UI.ComboBoxClinicPicker(); this.dateRangePicker = new OpenDental.UI.ODDateRangePicker(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); // // butClose // this.butClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butClose.Location = new System.Drawing.Point(928, 658); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75, 26); this.butClose.TabIndex = 4; this.butClose.Text = "&Close"; this.butClose.Click += new System.EventHandler(this.butClose_Click); // // butPrint // this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butPrint.Image = global::OpenDental.Properties.Resources.butPrintSmall; this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(12, 658); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(75, 26); this.butPrint.TabIndex = 3; this.butPrint.Text = "Print"; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // imageListCalendar // this.imageListCalendar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListCalendar.ImageStream"))); this.imageListCalendar.TransparentColor = System.Drawing.Color.Transparent; this.imageListCalendar.Images.SetKeyName(0, "arrowDownTriangle.gif"); this.imageListCalendar.Images.SetKeyName(1, "arrowUpTriangle.gif"); // // gridMain // this.gridMain.AllowSortingByColumn = true; this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.gridMain.Location = new System.Drawing.Point(12, 71); this.gridMain.Name = "gridMain"; this.gridMain.Size = new System.Drawing.Size(991, 581); this.gridMain.TabIndex = 69; this.gridMain.Title = "Procedures Overpaid"; this.gridMain.TranslationName = "TableProcedures"; // // contextMenuGrid // this.contextMenuGrid.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuItemGoToAccount }); // // menuItemGoToAccount // this.menuItemGoToAccount.Index = 0; this.menuItemGoToAccount.Text = "Go To Account"; this.menuItemGoToAccount.Click += new System.EventHandler(this.menuItemGridGoToAccount_Click); // // butRefresh // this.butRefresh.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.butRefresh.Location = new System.Drawing.Point(928, 39); this.butRefresh.Name = "butRefresh"; this.butRefresh.Size = new System.Drawing.Size(75, 26); this.butRefresh.TabIndex = 73; this.butRefresh.Text = "Refresh"; this.butRefresh.UseVisualStyleBackColor = true; this.butRefresh.Click += new System.EventHandler(this.butRefresh_Click); // // groupBox2 // this.groupBox2.Controls.Add(this.butCurrent); this.groupBox2.Controls.Add(this.butAll); this.groupBox2.Controls.Add(this.butFind); this.groupBox2.Controls.Add(this.textPatient); this.groupBox2.Controls.Add(this.labelPatient); this.groupBox2.Controls.Add(this.labelProv); this.groupBox2.Controls.Add(this.comboBoxMultiProv); this.groupBox2.Controls.Add(this.comboBoxMultiClinics); this.groupBox2.Controls.Add(this.dateRangePicker); this.groupBox2.Location = new System.Drawing.Point(12, 4); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(910, 61); this.groupBox2.TabIndex = 77; this.groupBox2.TabStop = false; this.groupBox2.Text = "Filters"; // // butCurrent // this.butCurrent.Location = new System.Drawing.Point(698, 31); this.butCurrent.Name = "butCurrent"; this.butCurrent.Size = new System.Drawing.Size(63, 24); this.butCurrent.TabIndex = 78; this.butCurrent.Text = "Current"; this.butCurrent.Click += new System.EventHandler(this.butCurrent_Click); // // butAll // this.butAll.Location = new System.Drawing.Point(841, 31); this.butAll.Name = "butAll"; this.butAll.Size = new System.Drawing.Size(63, 24); this.butAll.TabIndex = 77; this.butAll.Text = "All"; this.butAll.Click += new System.EventHandler(this.butAll_Click); // // butFind // this.butFind.Location = new System.Drawing.Point(770, 31); this.butFind.Name = "butFind"; this.butFind.Size = new System.Drawing.Size(63, 24); this.butFind.TabIndex = 76; this.butFind.Text = "Find"; this.butFind.Click += new System.EventHandler(this.butFind_Click); // // textPatient // this.textPatient.Location = new System.Drawing.Point(698, 11); this.textPatient.Name = "textPatient"; this.textPatient.Size = new System.Drawing.Size(206, 20); this.textPatient.TabIndex = 75; // // labelPatient // this.labelPatient.Location = new System.Drawing.Point(631, 15); this.labelPatient.Name = "labelPatient"; this.labelPatient.Size = new System.Drawing.Size(65, 13); this.labelPatient.TabIndex = 74; this.labelPatient.Text = "Patient"; this.labelPatient.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelProv // this.labelProv.Location = new System.Drawing.Point(412, 15); this.labelProv.Name = "labelProv"; this.labelProv.Size = new System.Drawing.Size(55, 16); this.labelProv.TabIndex = 73; this.labelProv.Text = "Providers"; this.labelProv.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // comboBoxMultiProv // this.comboBoxMultiProv.ArraySelectedIndices = new int[0]; this.comboBoxMultiProv.BackColor = System.Drawing.SystemColors.Window; this.comboBoxMultiProv.Items = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.Items"))); this.comboBoxMultiProv.Location = new System.Drawing.Point(469, 12); this.comboBoxMultiProv.Name = "comboBoxMultiProv"; this.comboBoxMultiProv.SelectedIndices = ((System.Collections.ArrayList)(resources.GetObject("comboBoxMultiProv.SelectedIndices"))); this.comboBoxMultiProv.Size = new System.Drawing.Size(160, 21); this.comboBoxMultiProv.TabIndex = 72; this.comboBoxMultiProv.MouseLeave += new System.EventHandler(this.comboBoxMultiProv_MouseLeave); // // comboBoxMultiClinics // this.comboBoxMultiClinics.IncludeAll = true; this.comboBoxMultiClinics.IncludeUnassigned = true; this.comboBoxMultiClinics.Location = new System.Drawing.Point(432, 34); this.comboBoxMultiClinics.Name = "comboBoxMultiClinics"; this.comboBoxMultiClinics.SelectionModeMulti = true; this.comboBoxMultiClinics.Size = new System.Drawing.Size(197, 21); this.comboBoxMultiClinics.TabIndex = 71; // // dateRangePicker // this.dateRangePicker.BackColor = System.Drawing.SystemColors.Control; this.dateRangePicker.DefaultDateTimeFrom = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); this.dateRangePicker.DefaultDateTimeTo = new System.DateTime(2018, 1, 9, 0, 0, 0, 0); this.dateRangePicker.EnableWeekButtons = false; this.dateRangePicker.Location = new System.Drawing.Point(5, 11); this.dateRangePicker.MaximumSize = new System.Drawing.Size(0, 185); this.dateRangePicker.MinimumSize = new System.Drawing.Size(453, 22); this.dateRangePicker.Name = "dateRangePicker"; this.dateRangePicker.Size = new System.Drawing.Size(453, 22); this.dateRangePicker.TabIndex = 0; // // FormRpProcOverpaid // this.AcceptButton = this.butPrint; this.ClientSize = new System.Drawing.Size(1015, 696); this.Controls.Add(this.butRefresh); this.Controls.Add(this.butClose); this.Controls.Add(this.butPrint); this.Controls.Add(this.gridMain); this.Controls.Add(this.groupBox2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MinimumSize = new System.Drawing.Size(1031, 250); this.Name = "FormRpProcOverpaid"; this.Text = "Procedures Overpaid Report"; this.Load += new System.EventHandler(this.FormProcOverpaid_Load); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.ResumeLayout(false); }
///<summary>Adds the requested controls to the form.</summary> private void AddInputControls() { _listInputControls = new List <Control>(); int curLocationY = 2; int controlWidth = 385; int minWidth = 250; int posX = 32; int itemOrder = 1; foreach (InputBoxParam inputParam in _listInputParams) { if (inputParam == null) { continue; } if (!string.IsNullOrEmpty(inputParam.LabelText)) { Label label = new Label(); label.AutoSize = false; label.Size = new Size(controlWidth, 36); label.Text = inputParam.LabelText; label.Name = "labelPrompt" + itemOrder; label.TextAlign = ContentAlignment.BottomLeft; label.Location = new Point(posX, curLocationY); Controls.Add(label); curLocationY += 38; } Control inputControl; switch (inputParam.ParamType) { case InputBoxType.TextBox: TextBox textBox = new TextBox(); textBox.Name = "textBox" + itemOrder; textBox.Location = new Point(posX, curLocationY); textBox.Size = new Size(controlWidth, 20); textBox.Text = inputParam.Text; if (!String.IsNullOrEmpty(textBox.Text)) { textBox.SelectionStart = 0; textBox.SelectionLength = textBox.Text.Length; } inputControl = textBox; curLocationY += 22; break; case InputBoxType.TextBoxMultiLine: TextBox textBoxMulti = new TextBox(); textBoxMulti.Name = "textBox" + itemOrder; textBoxMulti.Location = new Point(posX, curLocationY); textBoxMulti.Size = new Size(controlWidth, 100); textBoxMulti.Multiline = true; textBoxMulti.Text = inputParam.Text; this.AcceptButton = null; textBoxMulti.ScrollBars = ScrollBars.Vertical; inputControl = textBoxMulti; curLocationY += 102; break; case InputBoxType.CheckBox: CheckBox checkBox = new CheckBox(); checkBox.Name = "checkBox" + itemOrder; checkBox.Location = new Point(posX + inputParam.Position.X, curLocationY + inputParam.Position.Y); checkBox.Size = inputParam.ParamSize == Size.Empty ? new Size(controlWidth, 20) : inputParam.ParamSize; checkBox.Text = inputParam.Text; checkBox.FlatStyle = FlatStyle.System; inputControl = checkBox; if (inputParam.HasTimeout) { _hasTimeout = true; } curLocationY += checkBox.Size.Height + 2; break; case InputBoxType.ComboSelect: ComboBox comboBox = new ComboBox(); comboBox.Name = "comboBox" + itemOrder; comboBox.Location = new Point(posX, curLocationY); comboBox.Size = new Size(controlWidth, 21); comboBox.DropDownStyle = ComboBoxStyle.DropDownList; comboBox.DropDownWidth = controlWidth + 10; comboBox.MaxDropDownItems = 30; foreach (string selection in inputParam.ListSelections) { int idx = comboBox.Items.Add(selection); if (idx.In(inputParam.ListSelectedIndices)) { comboBox.IndexSelectOrSetText(idx, () => { return(""); }); } } inputControl = comboBox; curLocationY += 23; break; case InputBoxType.ComboMultiSelect: ComboBoxMulti comboBoxMulti = new ComboBoxMulti(); comboBoxMulti.Name = "comboBoxMulti" + itemOrder; comboBoxMulti.Location = new Point(posX, curLocationY); comboBoxMulti.Size = new Size(controlWidth, 21); comboBoxMulti.BackColor = SystemColors.Window; foreach (string selection in inputParam.ListSelections) { comboBoxMulti.Items.Add(selection); } inputControl = comboBoxMulti; curLocationY += 23; break; case InputBoxType.ValidDate: ValidDate validDate = new ValidDate(); validDate.Name = "validDate" + itemOrder; validDate.Location = new Point(posX, curLocationY); validDate.Size = new Size(100, 20); inputControl = validDate; curLocationY += 22; break; case InputBoxType.ValidTime: ValidTime validTime = new ValidTime(); validTime.Name = "validTime" + itemOrder; validTime.Location = new Point(posX, curLocationY); validTime.Size = new Size(120, 20); inputControl = validTime; curLocationY += 22; break; case InputBoxType.ValidDouble: ValidDouble validDouble = new ValidDouble(); validDouble.Name = "validDouble" + itemOrder; validDouble.Location = new Point(posX, curLocationY); validDouble.Size = new Size(120, 20); inputControl = validDouble; curLocationY += 22; break; case InputBoxType.ListBoxMulti: ListBox listBox = new ListBox(); listBox.Name = "listBox" + itemOrder; listBox.Location = new Point(posX, curLocationY); listBox.BackColor = SystemColors.Window; listBox.SelectionMode = SelectionMode.MultiSimple; foreach (string selection in inputParam.ListSelections) { listBox.Items.Add(selection); } listBox.Size = new Size(controlWidth, listBox.PreferredHeight); inputControl = listBox; curLocationY += (listBox.PreferredHeight) + 2; break; default: throw new NotImplementedException("InputBoxType: " + inputParam.ParamType + " not implemented."); } inputControl.TabIndex = itemOrder; _listInputControls.Add(inputControl); minWidth = Math.Max(minWidth, inputControl.Width + 80); } Controls.AddRange(_listInputControls.ToArray()); Height = curLocationY + 90; Width = minWidth; }