public void TestSuccCase() { var r1 = ValidNumber.IsValid(" 1e2 "); Assert.AreEqual(r1, true); var r2 = ValidNumber.IsValid(" -1.1e2 "); Assert.AreEqual(r2, true); var r3 = ValidNumber.IsValid(" +1e3"); Assert.AreEqual(r3, true); var r4 = ValidNumber.IsValid("11"); Assert.AreEqual(r4, true); var r5 = ValidNumber.IsValid("99 "); Assert.AreEqual(r5, true); var r6 = ValidNumber.IsValid("1.55"); Assert.AreEqual(r6, true); var r7 = ValidNumber.IsValid("+22E10"); Assert.AreEqual(r7, true); }
public void ValidNumberTest_Success() { string input = "0"; var result = new ValidNumber().IsNumber(input); Assert.IsTrue(result); input = "0.1"; result = new ValidNumber().IsNumber(input); Assert.IsTrue(result); input = "abc"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); input = "1 a"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); input = "2e10"; result = new ValidNumber().IsNumber(input); Assert.IsTrue(result); input = "-90e3"; result = new ValidNumber().IsNumber(input); Assert.IsTrue(result); input = "1e"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); input = "e3"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); input = "6e-1"; result = new ValidNumber().IsNumber(input); Assert.IsTrue(result); input = "99e2.5"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); input = "53.5e93"; result = new ValidNumber().IsNumber(input); Assert.IsTrue(result); input = "--6"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); input = "-+3"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); input = "95a54e53"; result = new ValidNumber().IsNumber(input); Assert.IsFalse(result); }
public void IsValidNumber_WhenMaxLimitedIsExceeded_ShouldReturnInvalidNumber() { string number = "1000000000"; bool expectedResult = false; bool result = ValidNumber.isValidNumber(number); Assert.AreEqual(expectedResult, result); }
public int Add(string numbers) { List <int> ValidNumber; if (string.IsNullOrEmpty(numbers)) { return(0); } else { numbers = RemoveCustomDelimiter(numbers); } ValidNumber = CheckForDelimeters(numbers); return(ValidNumber.Sum()); }
public void TestFailCase() { var r1 = ValidNumber.IsValid("a 1e2 "); Assert.AreEqual(r1, false); var r2 = ValidNumber.IsValid(" 11 1 "); Assert.AreEqual(r2, false); var r3 = ValidNumber.IsValid(" +1.e3"); Assert.AreEqual(r3, false); var r4 = ValidNumber.IsValid(" 11+e"); Assert.AreEqual(r4, false); var r5 = ValidNumber.IsValid("1.55e1.3"); Assert.AreEqual(r5, false); var r6 = ValidNumber.IsValid("1.e3"); Assert.AreEqual(r6, false); var r7 = ValidNumber.IsValid("1.5e5e1.3"); Assert.AreEqual(r7, false); var r8 = ValidNumber.IsValid("e1.3"); Assert.AreEqual(r8, false); var r9 = ValidNumber.IsValid(" "); Assert.AreEqual(r9, false); var r10 = ValidNumber.IsValid("1."); Assert.AreEqual(r10, false); }
public void ValidNumberTest() { ValidNumber l = new ValidNumber(); Assert.IsTrue(l.IsNumber(" 0.1 ")); Assert.IsTrue(l.IsNumber("0")); Assert.IsTrue(l.IsNumber("-124")); Assert.IsTrue(l.IsNumber("12.")); Assert.IsTrue(l.IsNumber("2e0")); Assert.IsTrue(l.IsNumber("46.e3")); Assert.IsTrue(l.IsNumber("32.e-80123")); Assert.IsFalse(l.IsNumber("459277e38+")); Assert.IsFalse(l.IsNumber("-124.23.23")); Assert.IsFalse(l.IsNumber("-")); Assert.IsFalse(l.IsNumber(".")); Assert.IsFalse(l.IsNumber("12 12")); Assert.IsFalse(l.IsNumber("++2")); Assert.IsFalse(l.IsNumber("")); Assert.IsFalse(l.IsNumber(".-4")); Assert.IsFalse(l.IsNumber("abc")); Assert.IsFalse(l.IsNumber("1 a")); Assert.IsFalse(l.IsNumber("0efd")); }
public override PhoneNumber Format(PhoneNumber phoneNumber) { phoneNumber.Number.Trim(); ValidNumber numberType = IsPhoneNumber(phoneNumber.Number); bool isValid = numberType != ValidNumber.NonValid; bool isProviderPhoneNumber = IsProviderPhoneNumber(numberType); if (isValid && isProviderPhoneNumber) { phoneNumber.IsValid = true; } else if (isValid && !isProviderPhoneNumber) { //changing number to valid format switch (numberType) { case ValidNumber.Type1: phoneNumber.Number = changeToValidFormat(phoneNumber.Number); break; case ValidNumber.Type2: phoneNumber.Number = changeToValidFormat(phoneNumber.Number); break; case ValidNumber.Type3: phoneNumber.Number = changeToValidFormat(phoneNumber.Number); break; } phoneNumber.IsValid = true; } else { phoneNumber.IsValid = false; } return(phoneNumber); }
/// <summary>Returns the required height.</summary> private int ArrangeControls(Graphics g){ //calculate width of input section int inputW=300;//the widest allowed for the input section on the right. if(IsQuestionnaire){ inputW=450; } if(panelSlide.Width<600){ inputW=panelSlide.Width/2; } int promptW=panelSlide.Width-inputW; panelSlide.Controls.Clear(); int yPos=5; int itemH=0;//item height labels=new Label[multInputItems.Count]; inputs=new Control[multInputItems.Count]; for(int i=0;i<multInputItems.Count;i++){ //Calculate height itemH=(int)g.MeasureString(((MultInputItem)multInputItems[i]).PromptingText,Font,promptW).Height; if(itemH<20) itemH=20; //promptingText labels[i]=new Label(); labels[i].Location=new Point(2,yPos); //labels[i].Name="Label"+i.ToString(); labels[i].Size=new Size(promptW-5,itemH); labels[i].Text=multInputItems[i].PromptingText; labels[i].TextAlign=ContentAlignment.MiddleRight; //labels[i].BorderStyle=BorderStyle.FixedSingle;//just used in debugging layout panelSlide.Controls.Add(labels[i]); if(multInputItems[i].ValueType==FieldValueType.Boolean){ //add a checkbox inputs[i]=new CheckBox(); inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); inputs[i].Size=new Size(inputW-5,20); if(multInputItems[i].CurrentValues.Count==0) ((CheckBox)inputs[i]).Checked=false; else ((CheckBox)inputs[i]).Checked=true; ((CheckBox)inputs[i]).FlatStyle=FlatStyle.System; panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.Date){ //add a validDate box inputs[i]=new ValidDate(); inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); if(inputW<100){//not enough room for a fullsize box inputs[i].Size=new Size(inputW-20,20); } else{ inputs[i].Size=new Size(75,20); } ; if(multInputItems[i].CurrentValues.Count>0){ DateTime myDate=(DateTime)multInputItems[i].CurrentValues[0]; inputs[i].Text=myDate.ToShortDateString(); } panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.Def){ //add a psuedo combobox filled with visible defs for one category inputs[i]=new ComboBoxMulti(); for(int j=0;j<DefC.Short[(int)multInputItems[i].DefCategory].Length;j++){ ((ComboBoxMulti)inputs[i]).Items.Add(DefC.Short[(int)multInputItems[i].DefCategory][j].ItemName); if(multInputItems[i].CurrentValues.Count > 0 && multInputItems[i].CurrentValues .Contains(DefC.Short[(int)multInputItems[i].DefCategory][j].DefNum)) { ((ComboBoxMulti)inputs[i]).SetSelected(j,true); } } inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); inputs[i].Size=new Size(inputW-5,20); panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.Enum){ //add a psuedo combobox filled with values for one enumeration inputs[i]=new ComboBoxMulti(); Type eType=Type.GetType("OpenDental."+multInputItems[i].EnumerationType.ToString()); for(int j=0;j<Enum.GetNames(eType).Length;j++){ ((ComboBoxMulti)inputs[i]).Items.Add(Enum.GetNames(eType)[j]); if(multInputItems[i].CurrentValues.Count > 0 && multInputItems[i].CurrentValues.Contains((int)(Enum.Parse(eType,Enum.GetNames(eType)[j]))) ) { ((ComboBoxMulti)inputs[i]).SetSelected(j,true); } } inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); inputs[i].Size=new Size(inputW-5,20); panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.ForeignKey){ //add a psuedo combobox filled with values from one table inputs[i]=new ComboBoxMulti(); //these two arrays are matched item for item string[] foreignRows=GetFRows(multInputItems[i].FKType); long[] foreignKeys=GetFKeys(multInputItems[i].FKType); for(int j=0;j<foreignRows.Length;j++){ ((ComboBoxMulti)inputs[i]).Items.Add(foreignRows[j]); if(multInputItems[i].CurrentValues.Count > 0 && multInputItems[i].CurrentValues.Contains(foreignKeys[j]) ) { ((ComboBoxMulti)inputs[i]).SetSelected(j,true); } } inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); inputs[i].Size=new Size(inputW-5,20); panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.Integer){ //add a validNumber box inputs[i]=new ValidNumber(); inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); if(inputW<100){//not enough room for a fullsize box inputs[i].Size=new Size(inputW-20,20); } else{ inputs[i].Size=new Size(75,20); } if(multInputItems[i].CurrentValues.Count>0){ inputs[i].Text=((int)multInputItems[i].CurrentValues[0]).ToString(); } panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.Number){ //add a validDouble box inputs[i]=new ValidDouble(); inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); if(inputW<100){//not enough room for a fullsize box inputs[i].Size=new Size(inputW-20,20); } else{ inputs[i].Size=new Size(75,20); } if(multInputItems[i].CurrentValues.Count>0){ inputs[i].Text=((double)multInputItems[i].CurrentValues[0]).ToString("n"); } panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.String){ //add a textbox inputs[i]=new TextBox(); inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); //inputs[i].Name= inputs[i].Size=new Size(inputW-5,20); if(multInputItems[i].CurrentValues.Count>0){ inputs[i].Text=multInputItems[i].CurrentValues[0].ToString(); } panelSlide.Controls.Add(inputs[i]); } else if(multInputItems[i].ValueType==FieldValueType.YesNoUnknown) { //add two checkboxes: Yes(1) and No(2). inputs[i]=new ContrYN(); if(multInputItems[i].CurrentValues.Count>0){ ((ContrYN)inputs[i]).CurrentValue=(YN)multInputItems[i].CurrentValues[0]; } inputs[i].Location=new Point(promptW,yPos+(itemH-20)/2); inputs[i].Size=new Size(inputW-5,20); panelSlide.Controls.Add(inputs[i]); } yPos+=itemH+5; if(yPos>panelMain.Height && !vScrollBar2.Visible) return yPos;//There's not enough room, so stop and make the scrollbar visible. } panelSlide.Height=yPos; vScrollBar2.Maximum=panelSlide.Height; vScrollBar2.Minimum=0; vScrollBar2.LargeChange=panelMain.Height; vScrollBar2.SmallChange=5; return -1; }
//905 076982056 private bool IsProviderPhoneNumber(ValidNumber number) { return(number == providerValidNumberType); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.labelColumnsPerPage = new System.Windows.Forms.Label(); this.labelFontSize = new System.Windows.Forms.Label(); this.labelStartTime = new System.Windows.Forms.Label(); this.labelStopTime = new System.Windows.Forms.Label(); this.textStopTime = new System.Windows.Forms.TextBox(); this.textStartTime = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.textFontSize = new OpenDental.ValidNum(); this.butSave = new OpenDental.UI.Button(); this.textColumnsPerPage = new OpenDental.ValidNumber(); this.butOK = new OpenDental.UI.Button(); this.butCancel = new OpenDental.UI.Button(); this.label3 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // labelColumnsPerPage // this.labelColumnsPerPage.FlatStyle = System.Windows.Forms.FlatStyle.System; this.labelColumnsPerPage.Location = new System.Drawing.Point(12,85); this.labelColumnsPerPage.Name = "labelColumnsPerPage"; this.labelColumnsPerPage.Size = new System.Drawing.Size(128,15); this.labelColumnsPerPage.TabIndex = 72; this.labelColumnsPerPage.Text = "Operatories per page"; this.labelColumnsPerPage.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelFontSize // this.labelFontSize.FlatStyle = System.Windows.Forms.FlatStyle.System; this.labelFontSize.Location = new System.Drawing.Point(45,111); this.labelFontSize.Name = "labelFontSize"; this.labelFontSize.Size = new System.Drawing.Size(95,15); this.labelFontSize.TabIndex = 74; this.labelFontSize.Text = "Font size"; this.labelFontSize.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelStartTime // this.labelStartTime.FlatStyle = System.Windows.Forms.FlatStyle.System; this.labelStartTime.Location = new System.Drawing.Point(45,33); this.labelStartTime.Name = "labelStartTime"; this.labelStartTime.Size = new System.Drawing.Size(95,15); this.labelStartTime.TabIndex = 76; this.labelStartTime.Text = "Start time"; this.labelStartTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelStopTime // this.labelStopTime.FlatStyle = System.Windows.Forms.FlatStyle.System; this.labelStopTime.Location = new System.Drawing.Point(45,59); this.labelStopTime.Name = "labelStopTime"; this.labelStopTime.Size = new System.Drawing.Size(95,15); this.labelStopTime.TabIndex = 78; this.labelStopTime.Text = "Stop time"; this.labelStopTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textStopTime // this.textStopTime.Location = new System.Drawing.Point(146,56); this.textStopTime.Name = "textStopTime"; this.textStopTime.Size = new System.Drawing.Size(75,20); this.textStopTime.TabIndex = 83; // // textStartTime // this.textStartTime.Location = new System.Drawing.Point(146,30); this.textStartTime.Name = "textStartTime"; this.textStartTime.Size = new System.Drawing.Size(75,20); this.textStartTime.TabIndex = 84; // // label1 // this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.label1.Location = new System.Drawing.Point(227,33); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(128,15); this.label1.TabIndex = 86; this.label1.Text = "Example: 5:00 AM"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label2 // this.label2.FlatStyle = System.Windows.Forms.FlatStyle.System; this.label2.Location = new System.Drawing.Point(227,59); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(128,15); this.label2.TabIndex = 87; this.label2.Text = "Example: 8:00 PM"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // textFontSize // this.textFontSize.Location = new System.Drawing.Point(146,108); this.textFontSize.MaxVal = 50; this.textFontSize.MinVal = 2; this.textFontSize.Name = "textFontSize"; this.textFontSize.Size = new System.Drawing.Size(50,20); this.textFontSize.TabIndex = 88; // // butSave // this.butSave.AdjustImageLocation = new System.Drawing.Point(0,0); this.butSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butSave.Autosize = true; this.butSave.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSave.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSave.CornerRadius = 4F; this.butSave.Location = new System.Drawing.Point(12,168); this.butSave.Name = "butSave"; this.butSave.Size = new System.Drawing.Size(75,24); this.butSave.TabIndex = 82; this.butSave.Text = "Save"; this.butSave.Click += new System.EventHandler(this.butSave_Click); // // textColumnsPerPage // this.textColumnsPerPage.Location = new System.Drawing.Point(146,82); this.textColumnsPerPage.MaxVal = 255; this.textColumnsPerPage.MinVal = 0; this.textColumnsPerPage.Name = "textColumnsPerPage"; this.textColumnsPerPage.Size = new System.Drawing.Size(50,20); this.textColumnsPerPage.TabIndex = 73; // // 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(197,168); this.butOK.Name = "butOK"; this.butOK.Size = new System.Drawing.Size(75,24); this.butOK.TabIndex = 3; this.butOK.Text = "&OK"; this.butOK.Click += new System.EventHandler(this.butOK_Click); // // 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.Location = new System.Drawing.Point(280,168); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75,24); this.butCancel.TabIndex = 2; this.butCancel.Text = "&Cancel"; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // label3 // this.label3.FlatStyle = System.Windows.Forms.FlatStyle.System; this.label3.Location = new System.Drawing.Point(202,112); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(128,15); this.label3.TabIndex = 89; this.label3.Text = "Between 2 and 50"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // FormApptPrintSetup // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(367,204); this.Controls.Add(this.label3); this.Controls.Add(this.textFontSize); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.textStartTime); this.Controls.Add(this.textStopTime); this.Controls.Add(this.butSave); this.Controls.Add(this.labelStopTime); this.Controls.Add(this.labelStartTime); this.Controls.Add(this.labelFontSize); this.Controls.Add(this.textColumnsPerPage); this.Controls.Add(this.labelColumnsPerPage); this.Controls.Add(this.butOK); this.Controls.Add(this.butCancel); this.Name = "FormApptPrintSetup"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Form Appt Print Setup"; this.Load += new System.EventHandler(this.FormApptPrintSetup_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(); this.textNote = new System.Windows.Forms.TextBox(); this.labelNote = new System.Windows.Forms.Label(); this.labelDateTime = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.panelMain = new System.Windows.Forms.Panel(); this.checkErase = new System.Windows.Forms.CheckBox(); this.textDescription = new System.Windows.Forms.TextBox(); this.labelDescription = new System.Windows.Forms.Label(); this.labelShowInTerminal = new System.Windows.Forms.Label(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.textDateTime = new System.Windows.Forms.TextBox(); this.butUnlock = new OpenDental.UI.Button(); this.textShowInTerminal = new OpenDental.ValidNumber(); this.butPDF = new OpenDental.UI.Button(); this.butDelete = new OpenDental.UI.Button(); this.butPrint = new OpenDental.UI.Button(); this.butOK = new OpenDental.UI.Button(); this.butCancel = new OpenDental.UI.Button(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // textNote // this.textNote.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.textNote.Location = new System.Drawing.Point(633,107); this.textNote.Multiline = true; this.textNote.Name = "textNote"; this.textNote.Size = new System.Drawing.Size(146,90); this.textNote.TabIndex = 6; this.textNote.TabStop = false; // // labelNote // this.labelNote.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.labelNote.Location = new System.Drawing.Point(632,88); this.labelNote.Name = "labelNote"; this.labelNote.Size = new System.Drawing.Size(147,16); this.labelNote.TabIndex = 7; this.labelNote.Text = "Internal Note"; this.labelNote.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // labelDateTime // this.labelDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.labelDateTime.Location = new System.Drawing.Point(632,6); this.labelDateTime.Name = "labelDateTime"; this.labelDateTime.Size = new System.Drawing.Size(84,16); this.labelDateTime.TabIndex = 76; this.labelDateTime.Text = "Date time"; this.labelDateTime.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // panel1 // this.panel1.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.panel1.AutoScroll = true; this.panel1.Controls.Add(this.panelMain); this.panel1.Location = new System.Drawing.Point(3,3); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(617,657); this.panel1.TabIndex = 78; // // panelMain // this.panelMain.BackColor = System.Drawing.SystemColors.Window; this.panelMain.Location = new System.Drawing.Point(0,0); this.panelMain.Name = "panelMain"; this.panelMain.Size = new System.Drawing.Size(549,513); this.panelMain.TabIndex = 0; // // checkErase // this.checkErase.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.checkErase.Location = new System.Drawing.Point(698,342); this.checkErase.Name = "checkErase"; this.checkErase.Size = new System.Drawing.Size(89,20); this.checkErase.TabIndex = 81; this.checkErase.TabStop = false; this.checkErase.Text = "Eraser Tool"; this.checkErase.UseVisualStyleBackColor = true; this.checkErase.Click += new System.EventHandler(this.checkErase_Click); // // textDescription // this.textDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.textDescription.Location = new System.Drawing.Point(633,66); this.textDescription.Name = "textDescription"; this.textDescription.Size = new System.Drawing.Size(146,20); this.textDescription.TabIndex = 84; this.textDescription.TabStop = false; // // labelDescription // this.labelDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.labelDescription.Location = new System.Drawing.Point(632,47); this.labelDescription.Name = "labelDescription"; this.labelDescription.Size = new System.Drawing.Size(147,16); this.labelDescription.TabIndex = 85; this.labelDescription.Text = "Description"; this.labelDescription.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // labelShowInTerminal // this.labelShowInTerminal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.labelShowInTerminal.Location = new System.Drawing.Point(632,204); this.labelShowInTerminal.Name = "labelShowInTerminal"; this.labelShowInTerminal.Size = new System.Drawing.Size(120,16); this.labelShowInTerminal.TabIndex = 86; this.labelShowInTerminal.Text = "Show Order In Kiosk"; this.labelShowInTerminal.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // timer1 // this.timer1.Interval = 4000; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // textDateTime // this.textDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.textDateTime.Location = new System.Drawing.Point(635,25); this.textDateTime.Name = "textDateTime"; this.textDateTime.Size = new System.Drawing.Size(144,20); this.textDateTime.TabIndex = 88; this.textDateTime.TabStop = false; // // butUnlock // this.butUnlock.AdjustImageLocation = new System.Drawing.Point(0,0); this.butUnlock.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butUnlock.Autosize = true; this.butUnlock.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butUnlock.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butUnlock.CornerRadius = 4F; this.butUnlock.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butUnlock.Location = new System.Drawing.Point(697,492); this.butUnlock.Name = "butUnlock"; this.butUnlock.Size = new System.Drawing.Size(81,24); this.butUnlock.TabIndex = 89; this.butUnlock.TabStop = false; this.butUnlock.Text = "Unlock"; this.butUnlock.Visible = false; this.butUnlock.Click += new System.EventHandler(this.butUnlock_Click); // // textShowInTerminal // this.textShowInTerminal.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.textShowInTerminal.Location = new System.Drawing.Point(750,203); this.textShowInTerminal.MaxVal = 127; this.textShowInTerminal.MinVal = 1; this.textShowInTerminal.Name = "textShowInTerminal"; this.textShowInTerminal.Size = new System.Drawing.Size(29,20); this.textShowInTerminal.TabIndex = 87; this.textShowInTerminal.TabStop = false; // // butPDF // this.butPDF.AdjustImageLocation = new System.Drawing.Point(0,0); this.butPDF.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butPDF.Autosize = true; this.butPDF.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPDF.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPDF.CornerRadius = 4F; this.butPDF.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPDF.Location = new System.Drawing.Point(698,425); this.butPDF.Name = "butPDF"; this.butPDF.Size = new System.Drawing.Size(81,24); this.butPDF.TabIndex = 83; this.butPDF.TabStop = false; this.butPDF.Text = "Create PDF"; this.butPDF.Click += new System.EventHandler(this.butPDF_Click); // // butDelete // this.butDelete.AdjustImageLocation = new System.Drawing.Point(0,0); this.butDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butDelete.Autosize = true; this.butDelete.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butDelete.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butDelete.CornerRadius = 4F; this.butDelete.Image = global::OpenDental.Properties.Resources.deleteX; this.butDelete.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butDelete.Location = new System.Drawing.Point(698,550); this.butDelete.Name = "butDelete"; this.butDelete.Size = new System.Drawing.Size(81,24); this.butDelete.TabIndex = 79; this.butDelete.TabStop = false; this.butDelete.Text = "Delete"; this.butDelete.Click += new System.EventHandler(this.butDelete_Click); // // 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.Right))); 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.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(698,395); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(81,24); this.butPrint.TabIndex = 80; this.butPrint.TabStop = false; this.butPrint.Text = "Print/Email"; this.butPrint.Click += new System.EventHandler(this.butPrint_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(698,606); this.butOK.Name = "butOK"; this.butOK.Size = new System.Drawing.Size(81,24); this.butOK.TabIndex = 3; this.butOK.TabStop = false; this.butOK.Text = "OK"; this.butOK.Click += new System.EventHandler(this.butOK_Click); // // 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.Location = new System.Drawing.Point(698,636); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(81,24); this.butCancel.TabIndex = 2; this.butCancel.TabStop = false; this.butCancel.Text = "&Cancel"; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // FormSheetFillEdit // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(790,672); this.Controls.Add(this.butUnlock); this.Controls.Add(this.textDateTime); this.Controls.Add(this.textShowInTerminal); this.Controls.Add(this.labelShowInTerminal); this.Controls.Add(this.textDescription); this.Controls.Add(this.labelDescription); this.Controls.Add(this.butPDF); this.Controls.Add(this.butDelete); this.Controls.Add(this.checkErase); this.Controls.Add(this.panel1); this.Controls.Add(this.butPrint); this.Controls.Add(this.labelDateTime); this.Controls.Add(this.textNote); this.Controls.Add(this.labelNote); this.Controls.Add(this.butOK); this.Controls.Add(this.butCancel); this.Name = "FormSheetFillEdit"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Fill Sheet"; this.Load += new System.EventHandler(this.FormSheetFillEdit_Load); this.panel1.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary>Returns the required height.</summary> private int ArrangeControls(Graphics g) { //calculate width of input section int inputW = 300; //the widest allowed for the input section on the right. if (IsQuestionnaire) { inputW = 450; } if (panelSlide.Width < 600) { inputW = panelSlide.Width / 2; } int promptW = panelSlide.Width - inputW; panelSlide.Controls.Clear(); int yPos = 5; int itemH = 0; //item height labels = new Label[multInputItems.Count]; inputs = new Control[multInputItems.Count]; for (int i = 0; i < multInputItems.Count; i++) { //Calculate height itemH = (int)g.MeasureString(((MultInputItem)multInputItems[i]).PromptingText, Font, promptW).Height; if (itemH < 20) { itemH = 20; } //promptingText labels[i] = new Label(); labels[i].Location = new Point(2, yPos); //labels[i].Name="Label"+i.ToString(); labels[i].Size = new Size(promptW - 5, itemH); labels[i].Text = multInputItems[i].PromptingText; labels[i].TextAlign = ContentAlignment.MiddleRight; //labels[i].BorderStyle=BorderStyle.FixedSingle;//just used in debugging layout panelSlide.Controls.Add(labels[i]); if (multInputItems[i].ValueType == FieldValueType.Boolean) { //add a checkbox inputs[i] = new CheckBox(); inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); inputs[i].Size = new Size(inputW - 5, 20); if (multInputItems[i].CurrentValues.Count == 0) { ((CheckBox)inputs[i]).Checked = false; } else { ((CheckBox)inputs[i]).Checked = true; } ((CheckBox)inputs[i]).FlatStyle = FlatStyle.System; panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.Date) { //add a validDate box inputs[i] = new ValidDate(); inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); if (inputW < 100) //not enough room for a fullsize box { inputs[i].Size = new Size(inputW - 20, 20); } else { inputs[i].Size = new Size(75, 20); } ; if (multInputItems[i].CurrentValues.Count > 0) { DateTime myDate = (DateTime)multInputItems[i].CurrentValues[0]; inputs[i].Text = myDate.ToShortDateString(); } panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.Def) { //add a psuedo combobox filled with visible defs for one category inputs[i] = new ComboBoxMulti(); List <Def> listDefs = Defs.GetDefsForCategory(multInputItems[i].DefCategory, true); for (int j = 0; j < listDefs.Count; j++) { ((ComboBoxMulti)inputs[i]).Items.Add(listDefs[j].ItemName); if (multInputItems[i].CurrentValues.Count > 0 && multInputItems[i].CurrentValues .Contains(listDefs[j].DefNum)) { ((ComboBoxMulti)inputs[i]).SetSelected(j, true); } } inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); inputs[i].Size = new Size(inputW - 5, 20); panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.Enum) { //add a psuedo combobox filled with values for one enumeration inputs[i] = new ComboBoxMulti(); Type eType = Type.GetType("OpenDental." + multInputItems[i].EnumerationType.ToString()); for (int j = 0; j < Enum.GetNames(eType).Length; j++) { ((ComboBoxMulti)inputs[i]).Items.Add(Enum.GetNames(eType)[j]); if (multInputItems[i].CurrentValues.Count > 0 && multInputItems[i].CurrentValues.Contains((int)(Enum.Parse(eType, Enum.GetNames(eType)[j])))) { ((ComboBoxMulti)inputs[i]).SetSelected(j, true); } } inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); inputs[i].Size = new Size(inputW - 5, 20); panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.ForeignKey) { //add a psuedo combobox filled with values from one table inputs[i] = new ComboBoxMulti(); //these two arrays are matched item for item string[] foreignRows = GetFRows(multInputItems[i].FKType); long[] foreignKeys = GetFKeys(multInputItems[i].FKType); for (int j = 0; j < foreignRows.Length; j++) { ((ComboBoxMulti)inputs[i]).Items.Add(foreignRows[j]); if (multInputItems[i].CurrentValues.Count > 0 && multInputItems[i].CurrentValues.Contains(foreignKeys[j])) { ((ComboBoxMulti)inputs[i]).SetSelected(j, true); } } inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); inputs[i].Size = new Size(inputW - 5, 20); panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.Integer) { //add a validNumber box inputs[i] = new ValidNumber(); inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); if (inputW < 100) //not enough room for a fullsize box { inputs[i].Size = new Size(inputW - 20, 20); } else { inputs[i].Size = new Size(75, 20); } if (multInputItems[i].CurrentValues.Count > 0) { inputs[i].Text = ((int)multInputItems[i].CurrentValues[0]).ToString(); } panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.Number) { //add a validDouble box inputs[i] = new ValidDouble(); inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); if (inputW < 100) //not enough room for a fullsize box { inputs[i].Size = new Size(inputW - 20, 20); } else { inputs[i].Size = new Size(75, 20); } if (multInputItems[i].CurrentValues.Count > 0) { inputs[i].Text = ((double)multInputItems[i].CurrentValues[0]).ToString("n"); } panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.String) { //add a textbox inputs[i] = new TextBox(); inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); //inputs[i].Name= inputs[i].Size = new Size(inputW - 5, 20); if (multInputItems[i].CurrentValues.Count > 0) { inputs[i].Text = multInputItems[i].CurrentValues[0].ToString(); } panelSlide.Controls.Add(inputs[i]); } else if (multInputItems[i].ValueType == FieldValueType.YesNoUnknown) { //add two checkboxes: Yes(1) and No(2). inputs[i] = new ContrYN(); if (multInputItems[i].CurrentValues.Count > 0) { ((ContrYN)inputs[i]).CurrentValue = (YN)multInputItems[i].CurrentValues[0]; } inputs[i].Location = new Point(promptW, yPos + (itemH - 20) / 2); inputs[i].Size = new Size(inputW - 5, 20); panelSlide.Controls.Add(inputs[i]); } yPos += itemH + 5; if (yPos > panelMain.Height && !vScrollBar2.Visible) { return(yPos); //There's not enough room, so stop and make the scrollbar visible. } } panelSlide.Height = yPos; vScrollBar2.Maximum = panelSlide.Height; vScrollBar2.Minimum = 0; vScrollBar2.LargeChange = panelMain.Height; vScrollBar2.SmallChange = 5; return(-1); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.textMobileSyncServerURL = new System.Windows.Forms.TextBox(); this.labelMobileSynchURL = new System.Windows.Forms.Label(); this.labelMinutesBetweenSynch = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.groupPreferences = new System.Windows.Forms.GroupBox(); this.label8 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.textMobileUserName = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.butCurrentWorkstation = new OpenDental.UI.Button(); this.textMobilePassword = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.textMobileSynchWorkStation = new System.Windows.Forms.TextBox(); this.textSynchMinutes = new OpenDental.ValidNumber(); this.butSave = new OpenDental.UI.Button(); this.textDateBefore = new OpenDental.ValidDate(); this.textDateTimeLastRun = new System.Windows.Forms.Label(); this.butFullSync = new OpenDental.UI.Button(); this.butSync = new OpenDental.UI.Button(); this.butClose = new OpenDental.UI.Button(); this.service11 = new OpenDental.localhost.Service1(); this.butDelete = new OpenDental.UI.Button(); this.checkTroubleshooting = new System.Windows.Forms.CheckBox(); this.groupPreferences.SuspendLayout(); this.SuspendLayout(); // // textMobileSyncServerURL // this.textMobileSyncServerURL.Location = new System.Drawing.Point(177,19); this.textMobileSyncServerURL.Name = "textMobileSyncServerURL"; this.textMobileSyncServerURL.Size = new System.Drawing.Size(445,20); this.textMobileSyncServerURL.TabIndex = 75; // // labelMobileSynchURL // this.labelMobileSynchURL.Location = new System.Drawing.Point(6,20); this.labelMobileSynchURL.Name = "labelMobileSynchURL"; this.labelMobileSynchURL.Size = new System.Drawing.Size(169,19); this.labelMobileSynchURL.TabIndex = 76; this.labelMobileSynchURL.Text = "Host Server Address"; this.labelMobileSynchURL.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // labelMinutesBetweenSynch // this.labelMinutesBetweenSynch.Location = new System.Drawing.Point(6,48); this.labelMinutesBetweenSynch.Name = "labelMinutesBetweenSynch"; this.labelMinutesBetweenSynch.Size = new System.Drawing.Size(169,19); this.labelMinutesBetweenSynch.TabIndex = 79; this.labelMinutesBetweenSynch.Text = "Minutes Between Synch"; this.labelMinutesBetweenSynch.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label3 // this.label3.Location = new System.Drawing.Point(26,239); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(167,18); this.label3.TabIndex = 87; this.label3.Text = "Date/time of last sync"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label2 // this.label2.Location = new System.Drawing.Point(5,76); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(170,18); this.label2.TabIndex = 85; this.label2.Text = "Exclude Appointments Before"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // groupPreferences // this.groupPreferences.Controls.Add(this.label8); this.groupPreferences.Controls.Add(this.label7); this.groupPreferences.Controls.Add(this.textMobileUserName); this.groupPreferences.Controls.Add(this.label4); this.groupPreferences.Controls.Add(this.butCurrentWorkstation); this.groupPreferences.Controls.Add(this.textMobilePassword); this.groupPreferences.Controls.Add(this.label6); this.groupPreferences.Controls.Add(this.label5); this.groupPreferences.Controls.Add(this.textMobileSynchWorkStation); this.groupPreferences.Controls.Add(this.textSynchMinutes); this.groupPreferences.Controls.Add(this.label2); this.groupPreferences.Controls.Add(this.butSave); this.groupPreferences.Controls.Add(this.textDateBefore); this.groupPreferences.Controls.Add(this.labelMobileSynchURL); this.groupPreferences.Controls.Add(this.textMobileSyncServerURL); this.groupPreferences.Controls.Add(this.labelMinutesBetweenSynch); this.groupPreferences.Location = new System.Drawing.Point(18,12); this.groupPreferences.Name = "groupPreferences"; this.groupPreferences.Size = new System.Drawing.Size(665,212); this.groupPreferences.TabIndex = 239; this.groupPreferences.TabStop = false; this.groupPreferences.Text = "Preferences"; // // label8 // this.label8.Location = new System.Drawing.Point(8,183); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(575,19); this.label8.TabIndex = 246; this.label8.Text = "To change your password, enter a new one in the box and Save. To keep the old pa" + "ssword, leave the box empty."; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label7 // this.label7.Location = new System.Drawing.Point(222,48); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(343,18); this.label7.TabIndex = 244; this.label7.Text = "Set to 0 to stop automatic Synchronization"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // textMobileUserName // this.textMobileUserName.Location = new System.Drawing.Point(177,131); this.textMobileUserName.Name = "textMobileUserName"; this.textMobileUserName.Size = new System.Drawing.Size(247,20); this.textMobileUserName.TabIndex = 242; // // label4 // this.label4.Location = new System.Drawing.Point(5,132); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(169,19); this.label4.TabIndex = 243; this.label4.Text = "User Name"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // butCurrentWorkstation // this.butCurrentWorkstation.AdjustImageLocation = new System.Drawing.Point(0,0); this.butCurrentWorkstation.Autosize = true; this.butCurrentWorkstation.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCurrentWorkstation.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCurrentWorkstation.CornerRadius = 4F; this.butCurrentWorkstation.Location = new System.Drawing.Point(430,101); this.butCurrentWorkstation.Name = "butCurrentWorkstation"; this.butCurrentWorkstation.Size = new System.Drawing.Size(115,24); this.butCurrentWorkstation.TabIndex = 247; this.butCurrentWorkstation.Text = "Current Workstation"; this.butCurrentWorkstation.Click += new System.EventHandler(this.butCurrentWorkstation_Click); // // textMobilePassword // this.textMobilePassword.Location = new System.Drawing.Point(177,159); this.textMobilePassword.Name = "textMobilePassword"; this.textMobilePassword.PasswordChar = '*'; this.textMobilePassword.Size = new System.Drawing.Size(247,20); this.textMobilePassword.TabIndex = 243; // // label6 // this.label6.Location = new System.Drawing.Point(4,105); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(170,18); this.label6.TabIndex = 246; this.label6.Text = "Workstation for Synching"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label5 // this.label5.Location = new System.Drawing.Point(5,160); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(169,19); this.label5.TabIndex = 244; this.label5.Text = "Password"; this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // textMobileSynchWorkStation // this.textMobileSynchWorkStation.Location = new System.Drawing.Point(177,103); this.textMobileSynchWorkStation.Name = "textMobileSynchWorkStation"; this.textMobileSynchWorkStation.Size = new System.Drawing.Size(247,20); this.textMobileSynchWorkStation.TabIndex = 245; // // textSynchMinutes // this.textSynchMinutes.Location = new System.Drawing.Point(177,47); this.textSynchMinutes.MaxVal = 255; this.textSynchMinutes.MinVal = 0; this.textSynchMinutes.Name = "textSynchMinutes"; this.textSynchMinutes.Size = new System.Drawing.Size(39,20); this.textSynchMinutes.TabIndex = 241; // // butSave // this.butSave.AdjustImageLocation = new System.Drawing.Point(0,0); this.butSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butSave.Autosize = true; this.butSave.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSave.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSave.CornerRadius = 4F; this.butSave.Location = new System.Drawing.Point(598,182); this.butSave.Name = "butSave"; this.butSave.Size = new System.Drawing.Size(61,24); this.butSave.TabIndex = 240; this.butSave.Text = "Save"; this.butSave.Click += new System.EventHandler(this.butSave_Click); // // textDateBefore // this.textDateBefore.Location = new System.Drawing.Point(177,75); this.textDateBefore.Name = "textDateBefore"; this.textDateBefore.Size = new System.Drawing.Size(100,20); this.textDateBefore.TabIndex = 84; // // textDateTimeLastRun // this.textDateTimeLastRun.Location = new System.Drawing.Point(196,239); this.textDateTimeLastRun.Name = "textDateTimeLastRun"; this.textDateTimeLastRun.Size = new System.Drawing.Size(207,18); this.textDateTimeLastRun.TabIndex = 243; this.textDateTimeLastRun.Text = "3/4/2011 4:15 PM"; this.textDateTimeLastRun.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // butFullSync // this.butFullSync.AdjustImageLocation = new System.Drawing.Point(0,0); this.butFullSync.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butFullSync.Autosize = true; this.butFullSync.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFullSync.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFullSync.CornerRadius = 4F; this.butFullSync.Location = new System.Drawing.Point(269,288); this.butFullSync.Name = "butFullSync"; this.butFullSync.Size = new System.Drawing.Size(68,24); this.butFullSync.TabIndex = 83; this.butFullSync.Text = "Full Synch"; this.butFullSync.Click += new System.EventHandler(this.butFullSync_Click); // // butSync // this.butSync.AdjustImageLocation = new System.Drawing.Point(0,0); this.butSync.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butSync.Autosize = true; this.butSync.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSync.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSync.CornerRadius = 4F; this.butSync.Location = new System.Drawing.Point(343,288); this.butSync.Name = "butSync"; this.butSync.Size = new System.Drawing.Size(68,24); this.butSync.TabIndex = 82; this.butSync.Text = "Synch"; this.butSync.Click += new System.EventHandler(this.butSync_Click); // // 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(611,288); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75,24); this.butClose.TabIndex = 81; this.butClose.Text = "Close"; this.butClose.Click += new System.EventHandler(this.butClose_Click); // // service11 // this.service11.Url = "http://localhost:3824/Service1.asmx"; this.service11.UseDefaultCredentials = true; // // butDelete // this.butDelete.AdjustImageLocation = new System.Drawing.Point(0,0); this.butDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.butDelete.Autosize = true; this.butDelete.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butDelete.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butDelete.CornerRadius = 4F; this.butDelete.Location = new System.Drawing.Point(195,288); this.butDelete.Name = "butDelete"; this.butDelete.Size = new System.Drawing.Size(68,24); this.butDelete.TabIndex = 245; this.butDelete.Text = "Delete All"; this.butDelete.Click += new System.EventHandler(this.butDelete_Click); // // checkTroubleshooting // this.checkTroubleshooting.Location = new System.Drawing.Point(327,239); this.checkTroubleshooting.Name = "checkTroubleshooting"; this.checkTroubleshooting.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.checkTroubleshooting.Size = new System.Drawing.Size(184,24); this.checkTroubleshooting.TabIndex = 246; this.checkTroubleshooting.Text = "Synch Troubleshooting Mode"; this.checkTroubleshooting.UseVisualStyleBackColor = true; // // FormMobile // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(714,325); this.Controls.Add(this.checkTroubleshooting); this.Controls.Add(this.butDelete); this.Controls.Add(this.textDateTimeLastRun); this.Controls.Add(this.groupPreferences); this.Controls.Add(this.label3); this.Controls.Add(this.butFullSync); this.Controls.Add(this.butSync); this.Controls.Add(this.butClose); this.Name = "FormMobile"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Mobile and Patient Portal Synch"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FormMobile_FormClosed); this.Load += new System.EventHandler(this.FormMobileSetup_Load); this.groupPreferences.ResumeLayout(false); this.groupPreferences.PerformLayout(); this.ResumeLayout(false); }