示例#1
0
 ///<summary></summary>
 public FormAging()
 {
     InitializeComponent();
     Lan.F(this);
     Lan.C(this, new Control[]
           { this.textBox1 });
 }
示例#2
0
        //private ComputerPref computerPrefs;

        ///<summary></summary>
        public FormImagingSetup()
        {
            InitializeComponent();
            //too many labels to use Lan.F()
            Lan.C(this, new System.Windows.Forms.Control[]
            {
                this,
                this.groupBox1,
                this.groupBox2,
                this.groupBox3,
                this.label1,
                this.label2,
                this.label3,
                this.label4,
                this.label5,
                this.label6,
                this.label7,
                this.label12,
                this.labelPanoBW,
                this.label37
            });
            Lan.C("All", new System.Windows.Forms.Control[] {
                butOK,
                butCancel,
            });
        }
示例#3
0
 /// <summary></summary>
 public FormInnoDb()
 {
     InitializeComponent();
     Lan.C(this, new System.Windows.Forms.Control[] {
         this.textBox1
     });
     Lan.F(this);
 }
示例#4
0
 ///<summary></summary>
 public FormRecallSetup()
 {
     InitializeComponent();
     Lan.F(this);
     Lan.C(this, new System.Windows.Forms.Control[] {
         textBox1,
         textBox6
     });
 }
示例#5
0
 public UserControlTasks()
 {
     InitializeComponent();
     this.listMain.ContextMenu = this.menuEdit;
     //Lan.F(this);
     for (int i = 0; i < menuEdit.MenuItems.Count; i++)
     {
         Lan.C(this, menuEdit.MenuItems[i]);
     }
 }
 ///<summary></summary>
 public FormEmailAddressEdit()
 {
     InitializeComponent();
     Lan.F(this);
     Lan.C(this, new System.Windows.Forms.Control[]
     {
         textBox1,
         textBox5
     });
 }
示例#7
0
 ///<summary></summary>
 public FormRpPPOwriteoffs()
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     Lan.C("All", new System.Windows.Forms.Control[] {
         butOK,
         butCancel,
     });
 }
示例#8
0
 ///<summary></summary>
 public FormClearinghouses()
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     Lan.C(this, new System.Windows.Forms.Control[]
     {
         labelGuide
     });
     Lan.F(this);
 }
示例#9
0
 ///<summary></summary>
 public FormDatabaseMaintenance()
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     Lan.C(this, new System.Windows.Forms.Control[] {
         this.textBox1,
         //this.textBox2
     });
     Lan.F(this);
 }
示例#10
0
 ///<summary></summary>
 public FormClearinghouseEdit()
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     Lan.F(this);
     Lan.C(this, new System.Windows.Forms.Control[]
     {
         this.textBox2
     });
 }
示例#11
0
        ///<summary></summary>
        public FormTranslation(string classType)
        {
            InitializeComponent();
            gridLan.Title = classType + " Words";

            //tbLan.Fields[2]=CultureInfo.CurrentCulture.Parent.DisplayName;
            //tbLan.Fields[3]=CultureInfo.CurrentCulture.Parent.DisplayName + " Comments";
            //no need to translate much here
            Lan.C("All", new System.Windows.Forms.Control[] {
                butClose,
            });
            ClassType = classType;
        }
示例#12
0
        ///<summary>Creates a new Control of Type type, setting its Name as a unique identifier corresponding to properties in field.
        ///Hooks up appropriate events so that drag/drop on the control causes the UserControlDashboardWidget to be dragged/dropped.</summary>
        private Control CreateControl(SheetField field, Type type)
        {
            Control ctr = (Control)Activator.CreateInstance(type);

            //Since field has not been inserted into the db, field.SheetFieldNum=0.  It's possible to have two fields with the same FieldName.
            //Use NameXPosYPos as a likely unique id.
            ctr.Name = GetSheetFieldID(field);
            Lan.C(this, new Control[] { ctr });
            Controls.Add(ctr);
            if (ctr is IDashWidgetField)
            {
                ((IDashWidgetField)ctr).RefreshData(_pat, field);
            }
            return(ctr);
        }
示例#13
0
        private void FillGridWebSchedNewPatApptHostedURLs()
        {
            panelHostedURLs.Controls.Clear();
            List <Clinic> clinicsAll   = Clinics.GetDeepCopy();
            var           eServiceData = WebServiceMainHQProxy.GetSignups <WebServiceMainHQProxy.EServiceSetup.SignupOut.SignupOutEService>(_signupOut, eServiceCode.WebSchedNewPatAppt)
                                         .Select(x => new {
                Signup     = x,
                ClinicName = (clinicsAll.FirstOrDefault(y => y.ClinicNum == x.ClinicNum) ?? new Clinic()
                {
                    Abbr = "N\\A"
                }).Abbr
            })
                                         .Where(x =>
                                                //When clinics off, only show headquarters
                                                (!PrefC.HasClinicsEnabled && x.Signup.ClinicNum == 0) ||
                                                //When clinics are on, only show if not hidden.
                                                (PrefC.HasClinicsEnabled && clinicsAll.Any(y => y.ClinicNum == x.Signup.ClinicNum && !y.IsHidden))
                                                )
                                         //Alpha sorted
                                         .OrderBy(x => x.ClinicName);

            _listClinicPrefsWebSchedNewPats.Clear();
            foreach (var clinic in eServiceData)
            {
                ContrNewPatHostedURL contr = new ContrNewPatHostedURL(clinic.Signup);
                if (!PrefC.HasClinicsEnabled || eServiceData.Count() == 1)
                {
                    contr.IsExpanded         = true;
                    contr.DoHideExpandButton = true;
                }
                Lan.C(this, contr);
                panelHostedURLs.Controls.Add(contr);
                comboWSNPClinics.Items.Add(new ODBoxItem <WebServiceMainHQProxy.EServiceSetup.SignupOut.SignupOutEService>(clinic.ClinicName, clinic.Signup));
                if (clinic.Signup.ClinicNum == 0)
                {
                    continue;
                }
                else
                {
                    AddClinicPrefToList(PrefName.WebSchedNewPatAllowChildren, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatVerifyInfo, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatDoAuthEmail, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatDoAuthText, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatWebFormsURL, clinic.Signup.ClinicNum);
                }
            }
        }
        private void FillGridWebSchedNewPatApptHostedURLs()
        {
            List <Clinic> clinicsAll   = Clinics.GetDeepCopy();
            var           eServiceData = WebServiceMainHQProxy.GetSignups <WebServiceMainHQProxy.EServiceSetup.SignupOut.SignupOutEService>(_signupOut, eServiceCode.WebSchedNewPatAppt)
                                         .Select(x => new {
                Signup     = x,
                ClinicName = x.ClinicNum == 0 ? Lan.g(this, "Headquarters") : (clinicsAll.FirstOrDefault(y => y.ClinicNum == x.ClinicNum) ?? new Clinic()
                {
                    Abbr = "N\\A"
                }).Abbr
            })
                                         .Where(x =>
                                                //Always show HQ
                                                x.Signup.ClinicNum == 0 ||
                                                //If not HQ then only show if not hidden.
                                                clinicsAll.Any(y => y.ClinicNum == x.Signup.ClinicNum && !y.IsHidden)
                                                )
                                         //HQ to the top.
                                         .OrderBy(x => x.Signup.ClinicNum != 0)
                                         //Everything else is alpha sorted.
                                         .ThenBy(x => x.ClinicName);

            _listClinicPrefsWebSchedNewPats.Clear();
            foreach (var clinic in eServiceData)
            {
                ContrNewPatHostedURL contr = new ContrNewPatHostedURL(clinic.Signup);
                Lan.C(this, contr);
                panelHostedURLs.Controls.Add(contr);
                comboWSNPClinics.Items.Add(new ODBoxItem <WebServiceMainHQProxy.EServiceSetup.SignupOut.SignupOutEService>(clinic.ClinicName, clinic.Signup));
                if (clinic.Signup.ClinicNum == 0)
                {
                    continue;
                }
                else
                {
                    AddClinicPrefToList(PrefName.WebSchedNewPatAllowChildren, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatVerifyInfo, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatDoAuthEmail, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatDoAuthText, clinic.Signup.ClinicNum);
                    AddClinicPrefToList(PrefName.WebSchedNewPatWebFormsURL, clinic.Signup.ClinicNum);
                }
            }
        }
示例#15
0
 ///<summary></summary>
 public FormScannerSetup()
 {
     InitializeComponent();
     //too many labels to use Lan.F()
     Lan.C(this, new System.Windows.Forms.Control[]
     {
         this,
         this.groupBox1,
         this.groupBox2,
         this.groupBox3,
         this.label12,
         this.label13,
         this.label25,
         this.label37
     });
     Lan.C("All", new System.Windows.Forms.Control[] {
         butOK,
         butCancel,
     });
 }