Exemplo n.º 1
0
    protected void LimitPackagePropertyField_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (sender != null)
        {
            DropDownList packagePropertyField = (DropDownList)sender;
            DropDownList customPropertyField  =
                (DropDownList)packagePropertyField.NamingContainer.FindControl("LimitCustomPropertyField");
            HelpLabel customPropertyLabel =
                (HelpLabel)packagePropertyField.NamingContainer.FindControl("LimitCustomPropertyLabel");

            Label         multiplierLabel = (Label)packagePropertyField.NamingContainer.FindControl("LimitMultiplierLabel");
            HelpLabel     limitLabel      = (HelpLabel)packagePropertyField.NamingContainer.FindControl("LimitLabel");
            TextBox       limitField      = (TextBox)packagePropertyField.NamingContainer.FindControl("LimitField");
            BaseValidator limitRequired   =
                (BaseValidator)packagePropertyField.NamingContainer.FindControl("LimitRequired");
            BaseValidator limitNumeric =
                (BaseValidator)packagePropertyField.NamingContainer.FindControl("LimitNumeric");

            PackageProperties packageProperty =
                (PackageProperties)Enum.Parse(typeof(PackageProperties), packagePropertyField.SelectedValue);

            PrepareCustomPropertyField(customPropertyLabel, customPropertyField, packageProperty);
            PrepareLimitField(multiplierLabel, limitLabel, limitField, limitRequired, limitNumeric, packageProperty);
        }
    }
Exemplo n.º 2
0
    protected void MatchPackagePropertyField_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (sender != null)
        {
            DropDownList      propertyField = (DropDownList)sender;
            PackageProperties matchProperty =
                (PackageProperties)Enum.Parse(typeof(PackageProperties), propertyField.SelectedValue);
            DropDownList itemPropertyField =
                (DropDownList)propertyField.NamingContainer.FindControl("MatchItemPropertyField");
            ItemProperties itemProperty =
                (ItemProperties)Enum.Parse(typeof(ItemProperties), itemPropertyField.SelectedValue);
            DropDownList customPropertyField =
                (DropDownList)propertyField.NamingContainer.FindControl("MatchCustomPropertyField");
            HelpLabel customPropertyLabel =
                (HelpLabel)propertyField.NamingContainer.FindControl("MatchCustomPropertyLabel");

            if (matchProperty == PackageProperties.ItemProperty)
            {
                itemPropertyField.Visible = true;
                PrepareCustomPropertyField(customPropertyLabel, customPropertyField, itemProperty);
            }
            else
            {
                itemPropertyField.Visible   = false;
                customPropertyField.Visible = false;
                Page.Validate("RuleGroup");
                if (Page.IsValid)
                {
                    PrepareCustomPropertyField(customPropertyLabel, customPropertyField, matchProperty);
                }
            }
        }
    }
        void ReleaseDesignerOutlets()
        {
            if (BGView != null)
            {
                BGView.Dispose();
                BGView = null;
            }

            if (DurationLabel != null)
            {
                DurationLabel.Dispose();
                DurationLabel = null;
            }

            if (HelpLabel != null)
            {
                HelpLabel.Dispose();
                HelpLabel = null;
            }

            if (RecordButton != null)
            {
                RecordButton.Dispose();
                RecordButton = null;
            }
        }
Exemplo n.º 4
0
    protected void LimitOrderPropertyField_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (sender != null)
        {
            DropDownList orderPropertyField = (DropDownList)sender;
            DropDownList itemPropertyField  =
                (DropDownList)orderPropertyField.NamingContainer.FindControl("LimitItemPropertyField");
            DropDownList packagePropertyField =
                (DropDownList)orderPropertyField.NamingContainer.FindControl("LimitPackagePropertyField");
            DropDownList customPropertyField =
                (DropDownList)orderPropertyField.NamingContainer.FindControl("LimitCustomPropertyField");
            HelpLabel customPropertyLabel =
                (HelpLabel)orderPropertyField.NamingContainer.FindControl("LimitCustomPropertyLabel");

            Label         multiplierLabel = (Label)orderPropertyField.NamingContainer.FindControl("LimitMultiplierLabel");
            HelpLabel     limitLabel      = (HelpLabel)orderPropertyField.NamingContainer.FindControl("LimitLabel");
            TextBox       limitField      = (TextBox)orderPropertyField.NamingContainer.FindControl("LimitField");
            BaseValidator limitRequired   =
                (BaseValidator)orderPropertyField.NamingContainer.FindControl("LimitRequired");
            BaseValidator limitNumeric = (BaseValidator)orderPropertyField.NamingContainer.FindControl("LimitNumeric");

            OrderProperties orderProperty =
                (OrderProperties)Enum.Parse(typeof(OrderProperties), orderPropertyField.SelectedValue);
            ItemProperties itemProperty =
                (ItemProperties)Enum.Parse(typeof(ItemProperties), itemPropertyField.SelectedValue);
            PackageProperties packageProperty =
                (PackageProperties)Enum.Parse(typeof(PackageProperties), packagePropertyField.SelectedValue);

            if (orderProperty == OrderProperties.ItemProperty)
            {
                itemPropertyField.Visible    = true;
                packagePropertyField.Visible = false;
                PrepareCustomPropertyField(customPropertyLabel, customPropertyField, itemProperty);
                PrepareLimitField(multiplierLabel, limitLabel, limitField, limitRequired, limitNumeric, itemProperty);
            }
            else if (orderProperty == OrderProperties.PackageProperty)
            {
                itemPropertyField.Visible    = false;
                packagePropertyField.Visible = true;
                PrepareCustomPropertyField(customPropertyLabel, customPropertyField, packageProperty);
                PrepareLimitField(multiplierLabel, limitLabel, limitField, limitRequired, limitNumeric, packageProperty);
            }
            else
            {
                itemPropertyField.Visible    = false;
                packagePropertyField.Visible = false;
                customPropertyField.Visible  = false;
                PrepareLimitField(multiplierLabel, limitLabel, limitField, limitRequired, limitNumeric, orderProperty);
                Page.Validate("RuleGroup");
                if (Page.IsValid)
                {
                    PrepareCustomPropertyField(customPropertyLabel, customPropertyField, orderProperty);
                }
            }
        }
    }
Exemplo n.º 5
0
        public void SaveToXml()
        {
            WindowTheme.SaveToXml(Xml, "Window");

            LoginLabel.SaveToXml(Xml, "LoginButton");
            NewAccountLabel.SaveToXml(Xml, "NewAccountButton");
            AccountSettingsLabel.SaveToXml(Xml, "AccountSettingsButton");
            HelpLabel.SaveToXml(Xml, "HelpButton");
            CreditsLabel.SaveToXml(Xml, "CreditsButton");
            ExitLabel.SaveToXml(Xml, "ExitButton");

            Xml.Save();
        }
Exemplo n.º 6
0
 protected void MatchItemPropertyField_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (sender != null)
     {
         DropDownList   itemPropertyField = (DropDownList)sender;
         ItemProperties itemProperty      =
             (ItemProperties)Enum.Parse(typeof(ItemProperties), itemPropertyField.SelectedValue);
         DropDownList customPropertyField =
             (DropDownList)itemPropertyField.NamingContainer.FindControl("MatchCustomPropertyField");
         HelpLabel customPropertyLabel =
             (HelpLabel)itemPropertyField.NamingContainer.FindControl("MatchCustomPropertyLabel");
         PrepareCustomPropertyField(customPropertyLabel, customPropertyField, itemProperty);
     }
 }
Exemplo n.º 7
0
    protected void ValuePackagePropertyField_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (sender != null)
        {
            DropDownList      packagePropertyField = (DropDownList)sender;
            PackageProperties packageProperty      =
                (PackageProperties)Enum.Parse(typeof(PackageProperties), packagePropertyField.SelectedValue);
            DropDownList itemPropertyField =
                (DropDownList)packagePropertyField.NamingContainer.FindControl("ValueItemPropertyField");
            ItemProperties itemProperty =
                (ItemProperties)Enum.Parse(typeof(ItemProperties), itemPropertyField.SelectedValue);
            DropDownList customPropertyField =
                (DropDownList)packagePropertyField.NamingContainer.FindControl("ValueCustomPropertyField");
            HelpLabel customPropertyLabel =
                (HelpLabel)packagePropertyField.NamingContainer.FindControl("ValueCustomPropertyLabel");

            Label         multiplierLabel = (Label)packagePropertyField.NamingContainer.FindControl("ValueMultiplierLabel");
            HelpLabel     valueLabel      = (HelpLabel)packagePropertyField.NamingContainer.FindControl("ValueLabel");
            TextBox       valueField      = (TextBox)packagePropertyField.NamingContainer.FindControl("ValueField");
            BaseValidator valueRequired   =
                (BaseValidator)packagePropertyField.NamingContainer.FindControl("ValueRequired");
            BaseValidator valueNumeric =
                (BaseValidator)packagePropertyField.NamingContainer.FindControl("ValueNumeric");

            if (packageProperty == PackageProperties.ItemProperty)
            {
                itemPropertyField.Visible = true;
                PrepareCustomPropertyField(customPropertyLabel, customPropertyField, itemProperty);
                PrepareValueField(multiplierLabel, valueLabel, valueField, valueRequired, valueNumeric, itemProperty);
            }
            else
            {
                itemPropertyField.Visible   = false;
                customPropertyField.Visible = false;
                PrepareValueField(multiplierLabel, valueLabel, valueField, valueRequired, valueNumeric, packageProperty);
                Page.Validate("RuleGroup");
                if (Page.IsValid)
                {
                    PrepareCustomPropertyField(customPropertyLabel, customPropertyField, packageProperty);
                }
            }
        }
    }
    protected void ValueItemPropertyField_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (sender != null)
        {
            DropDownList itemPropertyField   = (DropDownList)sender;
            DropDownList customPropertyField = (DropDownList)itemPropertyField.NamingContainer.FindControl("ValueCustomPropertyField");
            HelpLabel    customPropertyLabel = (HelpLabel)itemPropertyField.NamingContainer.FindControl("ValueCustomPropertyLabel");

            Label         multiplierLabel = (Label)itemPropertyField.NamingContainer.FindControl("ValueMultiplierLabel");
            HelpLabel     valueLabel      = (HelpLabel)itemPropertyField.NamingContainer.FindControl("ValueLabel");
            TextBox       valueField      = (TextBox)itemPropertyField.NamingContainer.FindControl("ValueField");
            BaseValidator valueRequired   = (BaseValidator)itemPropertyField.NamingContainer.FindControl("ValueRequired");
            BaseValidator valueNumeric    = (BaseValidator)itemPropertyField.NamingContainer.FindControl("ValueNumeric");

            ItemProperties itemProperty = (ItemProperties)Enum.Parse(typeof(ItemProperties), itemPropertyField.SelectedValue);

            PrepareCustomPropertyField(customPropertyLabel, customPropertyField, itemProperty);
            PrepareValueField(multiplierLabel, valueLabel, valueField, valueRequired, valueNumeric, itemProperty);
        }
    }
 /// <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.helpLabel1 = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.edtSpeed = new ATMLCommonLibrary.controls.awb.AWBTextBox(this.components);
     this.SuspendLayout();
     //
     // helpLabel1
     //
     this.helpLabel1.AutoSize = true;
     this.helpLabel1.HelpMessageKey = "Driver.Platform.Processor";
     this.helpLabel1.Location = new System.Drawing.Point(12, 9);
     this.helpLabel1.Name = "helpLabel1";
     this.helpLabel1.RequiredField = false;
     this.helpLabel1.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.helpLabel1.Size = new System.Drawing.Size(138, 13);
     this.helpLabel1.TabIndex = 0;
     this.helpLabel1.Text = "Processor (Minimum Speed)";
     //
     // edtSpeed
     //
     this.edtSpeed.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.edtSpeed.AttributeName = null;
     this.edtSpeed.DataLookupKey = null;
     this.edtSpeed.Location = new System.Drawing.Point(156, 6);
     this.edtSpeed.Name = "edtSpeed";
     this.edtSpeed.Size = new System.Drawing.Size(144, 20);
     this.edtSpeed.TabIndex = 1;
     this.edtSpeed.Value = null;
     this.edtSpeed.ValueType = ATMLCommonLibrary.controls.awb.AWBTextBox.eValueType.xsString;
     //
     // DriverPlatformProcessorControl
     //
     this.Controls.Add(this.edtSpeed);
     this.Controls.Add(this.helpLabel1);
     this.Name = "DriverPlatformProcessorControl";
     this.Size = new System.Drawing.Size(309, 30);
     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.helpLabel1 = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.edtServicePack = new ATMLCommonLibrary.controls.awb.AWBTextBox(this.components);
     this.SuspendLayout();
     //
     // helpLabel1
     //
     this.helpLabel1.AutoSize = true;
     this.helpLabel1.HelpMessageKey = "DriverPlatformOperatingSystem.ServicePack";
     this.helpLabel1.Location = new System.Drawing.Point(10, 68);
     this.helpLabel1.Name = "helpLabel1";
     this.helpLabel1.RequiredField = false;
     this.helpLabel1.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.helpLabel1.Size = new System.Drawing.Size(74, 13);
     this.helpLabel1.TabIndex = 6;
     this.helpLabel1.Text = "Service Pack:";
     //
     // edtServicePack
     //
     this.edtServicePack.AttributeName = null;
     this.edtServicePack.Location = new System.Drawing.Point(86, 65);
     this.edtServicePack.Name = "edtServicePack";
     this.edtServicePack.Size = new System.Drawing.Size(293, 20);
     this.edtServicePack.TabIndex = 7;
     this.edtServicePack.Value = null;
     this.edtServicePack.ValueType = ATMLCommonLibrary.controls.awb.AWBTextBox.eValueType.xsString;
     //
     // DriverPlatformOperatingSystemControl
     //
     this.Controls.Add(this.edtServicePack);
     this.Controls.Add(this.helpLabel1);
     this.Name = "DriverPlatformOperatingSystemControl";
     this.Size = new System.Drawing.Size(405, 96);
     this.Controls.SetChildIndex(this.helpLabel1, 0);
     this.Controls.SetChildIndex(this.edtServicePack, 0);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 11
0
    protected void Rules_RowCreated(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            String      id       = Rules.DataKeys[e.Row.RowIndex].Value.ToString();
            PackageRule rule     = Settings.CostingRules[id];
            Int32       rowIndex = (Rules.PageIndex * Rules.PageSize) + e.Row.RowIndex;

            if (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate)
            {
                if (rowIndex == Settings.CostingRules.Count - 1)
                {
                    e.Row.FindControl("DeleteRow").Visible    = false;
                    e.Row.FindControl("MoveRuleUp").Visible   = false;
                    e.Row.FindControl("MoveRuleDown").Visible = false;
                }
                if (rowIndex == Settings.CostingRules.Count - 2)
                {
                    e.Row.FindControl("MoveRuleDown").Visible = false;
                }
                if (rowIndex == 0)
                {
                    e.Row.FindControl("MoveRuleUp").Visible = false;
                }
            }
            else if ((e.Row.RowState & DataControlRowState.Edit) == DataControlRowState.Edit)
            {
                DropDownList packagePropertyList = (DropDownList)e.Row.FindControl("ValuePackagePropertyField");
                DropDownList itemPropertyList    = (DropDownList)e.Row.FindControl("ValueItemPropertyField");
                DropDownList customPropertyList  = (DropDownList)e.Row.FindControl("ValueCustomPropertyField");
                HelpLabel    customPropertyLabel = (HelpLabel)e.Row.FindControl("ValueCustomPropertyLabel");

                Label         multiplierLabel = (Label)e.Row.FindControl("ValueMultiplierLabel");
                HelpLabel     valueLabel      = (HelpLabel)e.Row.FindControl("ValueLabel");
                TextBox       valueField      = (TextBox)e.Row.FindControl("ValueField");
                BaseValidator valueRequired   = (BaseValidator)e.Row.FindControl("ValueRequired");
                BaseValidator valueNumeric    = (BaseValidator)e.Row.FindControl("ValueNumeric");

                packagePropertyList.Items.Clear();
                packagePropertyList.Items.AddRange(GetPackageProperties());

                itemPropertyList.Items.Clear();
                itemPropertyList.Items.AddRange(GetItemProperties());
                itemPropertyList.Visible = false;

                if (rule.ValuePackageProperty == PackageProperties.ItemProperty)
                {
                    itemPropertyList.Visible = true;
                    PrepareCustomPropertyField(customPropertyLabel, customPropertyList, rule.ValueItemProperty);
                    PrepareValueField(multiplierLabel, valueLabel, valueField, valueRequired, valueNumeric,
                                      rule.ValueItemProperty);
                }
                else
                {
                    PrepareCustomPropertyField(customPropertyLabel, customPropertyList, rule.ValuePackageProperty);
                    PrepareValueField(multiplierLabel, valueLabel, valueField, valueRequired, valueNumeric,
                                      rule.ValuePackageProperty);
                }

                if (customPropertyList.Items.Count == 0)
                {
                    customPropertyList.Items.Add(new ListItem("", rule.ValueCustomProperty));
                }
                if (customPropertyList.Items.FindByValue(rule.ValueCustomProperty) == null)
                {
                    rule.ValueCustomProperty = customPropertyList.Items[0].Value;
                }
            }
        }
    }
Exemplo n.º 12
0
    protected void Matches_ItemCreated(object sender, RepeaterItemEventArgs e)
    {
        if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
        {
            PackageMatchList matches = (PackageMatchList)DataSource;
            PackageMatch     match   = matches[e.Item.ItemIndex];

            DropDownList packagePropertyList      = (DropDownList)e.Item.FindControl("MatchPackagePropertyField");
            DropDownList itemPropertyList         = (DropDownList)e.Item.FindControl("MatchItemPropertyField");
            DropDownList customPropertyList       = (DropDownList)e.Item.FindControl("MatchCustomPropertyField");
            DropDownList comparisonList           = (DropDownList)e.Item.FindControl("MatchComparisonTypeField");
            DropDownList limitPackagePropertyList = (DropDownList)e.Item.FindControl("LimitPackagePropertyField");
            DropDownList limitItemPropertyList    = (DropDownList)e.Item.FindControl("LimitItemPropertyField");
            DropDownList limitCustomPropertyList  = (DropDownList)e.Item.FindControl("LimitCustomPropertyField");

            HelpLabel customPropertyLabel      = (HelpLabel)e.Item.FindControl("MatchCustomPropertyLabel");
            HelpLabel limitCustomPropertyLabel = (HelpLabel)e.Item.FindControl("LimitCustomPropertyLabel");

            Label         multiplierLabel = (Label)e.Item.FindControl("LimitMultiplierLabel");
            HelpLabel     limitLabel      = (HelpLabel)e.Item.FindControl("LimitLabel");
            TextBox       limitField      = (TextBox)e.Item.FindControl("LimitField");
            BaseValidator limitRequired   = (BaseValidator)e.Item.FindControl("LimitRequired");
            BaseValidator limitNumeric    = (BaseValidator)e.Item.FindControl("LimitNumeric");

            packagePropertyList.Items.Clear();
            packagePropertyList.Items.AddRange(GetMatchPackageProperties());

            itemPropertyList.Items.Clear();
            itemPropertyList.Items.AddRange(GetItemProperties());
            itemPropertyList.Visible = false;

            customPropertyList.Visible = false;

            if (match.PackageProperty == PackageProperties.ItemProperty)
            {
                itemPropertyList.Visible = true;
                PrepareCustomPropertyField(customPropertyLabel, customPropertyList, match.ItemProperty);
            }
            else
            {
                PrepareCustomPropertyField(customPropertyLabel, customPropertyList, match.PackageProperty);
            }

            if (customPropertyList.Items.Count == 0)
            {
                customPropertyList.Items.Add(new ListItem("", match.CustomProperty));
            }
            if (customPropertyList.Items.FindByValue(match.CustomProperty) == null)
            {
                match.CustomProperty = customPropertyList.Items[0].Value;
            }

            comparisonList.Items.Clear();
            comparisonList.Items.AddRange(GetComparisons());

            limitPackagePropertyList.Items.Clear();
            limitPackagePropertyList.Items.AddRange(GetLimitPackageProperties());

            limitItemPropertyList.Items.Clear();
            limitItemPropertyList.Items.AddRange(GetItemProperties());
            limitItemPropertyList.Visible = false;

            limitCustomPropertyList.Visible = false;

            multiplierLabel.Visible = match.LimitPackageProperty != PackageProperties.FixedAmountOne;

            if (match.LimitPackageProperty == PackageProperties.ItemProperty)
            {
                limitItemPropertyList.Visible = true;
                PrepareCustomPropertyField(limitCustomPropertyLabel, limitCustomPropertyList, match.LimitItemProperty);
                PrepareLimitField(multiplierLabel, limitLabel, limitField, limitRequired, limitNumeric,
                                  match.LimitItemProperty);
            }
            else
            {
                PrepareCustomPropertyField(limitCustomPropertyLabel, limitCustomPropertyList, match.LimitPackageProperty);
                PrepareLimitField(multiplierLabel, limitLabel, limitField, limitRequired, limitNumeric,
                                  match.LimitPackageProperty);
            }

            if (limitCustomPropertyList.Items.Count == 0)
            {
                limitCustomPropertyList.Items.Add(new ListItem("", match.LimitCustomProperty));
            }
            if (limitCustomPropertyList.Items.FindByValue(match.LimitCustomProperty) == null)
            {
                match.LimitCustomProperty = limitCustomPropertyList.Items[0].Value;
            }
        }
    }
 /// <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.tabControl1 = new System.Windows.Forms.TabControl();
     this.tabPage1 = new System.Windows.Forms.TabPage();
     this.supportEquipmentTextCollection = new ATMLCommonLibrary.controls.awb.AWBTextCollectionList();
     this.tabPage2 = new System.Windows.Forms.TabPage();
     this.procedureDocument = new ATMLCommonLibrary.controls.document.DocumentListControl();
     this.hlplblfrequency = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.requiredFieldValidator1 = new ATMLCommonLibrary.controls.validators.RequiredFieldValidator();
     this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
     this.awbTimeSpan = new ATMLCommonLibrary.controls.awb.AWBDurationControl();
     this.tabControl1.SuspendLayout();
     this.tabPage1.SuspendLayout();
     this.tabPage2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
     this.SuspendLayout();
     //
     // tabControl1
     //
     this.tabControl1.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.tabControl1.Controls.Add(this.tabPage1);
     this.tabControl1.Controls.Add(this.tabPage2);
     this.tabControl1.Location = new System.Drawing.Point(0, 35);
     this.tabControl1.Name = "tabControl1";
     this.tabControl1.SelectedIndex = 0;
     this.tabControl1.Size = new System.Drawing.Size(578, 282);
     this.tabControl1.TabIndex = 0;
     //
     // tabPage1
     //
     this.tabPage1.Controls.Add(this.supportEquipmentTextCollection);
     this.tabPage1.Location = new System.Drawing.Point(4, 22);
     this.tabPage1.Name = "tabPage1";
     this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage1.Size = new System.Drawing.Size(570, 256);
     this.tabPage1.TabIndex = 0;
     this.tabPage1.Text = "Support Equipment";
     this.tabPage1.UseVisualStyleBackColor = true;
     //
     // supportEquipmentTextCollection
     //
     this.supportEquipmentTextCollection.AutoScroll = true;
     this.supportEquipmentTextCollection.Dock = System.Windows.Forms.DockStyle.Fill;
     this.supportEquipmentTextCollection.HelpKeyWord = null;
     this.supportEquipmentTextCollection.Location = new System.Drawing.Point(3, 3);
     this.supportEquipmentTextCollection.Name = "supportEquipmentTextCollection";
     this.supportEquipmentTextCollection.SchemaTypeName = null;
     this.supportEquipmentTextCollection.Size = new System.Drawing.Size(564, 250);
     this.supportEquipmentTextCollection.TabIndex = 0;
     this.supportEquipmentTextCollection.TargetNamespace = null;
     //
     // tabPage2
     //
     this.tabPage2.Controls.Add(this.procedureDocument);
     this.tabPage2.Location = new System.Drawing.Point(4, 22);
     this.tabPage2.Name = "tabPage2";
     this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
     this.tabPage2.Size = new System.Drawing.Size(503, 256);
     this.tabPage2.TabIndex = 1;
     this.tabPage2.Text = "Procedure";
     this.tabPage2.UseVisualStyleBackColor = true;
     //
     // procedureDocument
     //
     this.procedureDocument.AllowRowResequencing = false;
     this.procedureDocument.Dock = System.Windows.Forms.DockStyle.Fill;
     this.procedureDocument.DocumentType = ATMLDataAccessLibrary.model.dbDocument.DocumentType.PROCEDURE;
     this.procedureDocument.FormTitle = null;
     this.procedureDocument.HelpKeyWord = null;
     this.procedureDocument.ListName = null;
     this.procedureDocument.Location = new System.Drawing.Point(3, 3);
     this.procedureDocument.Margin = new System.Windows.Forms.Padding(0);
     this.procedureDocument.Name = "procedureDocument";
     this.procedureDocument.SchemaTypeName = null;
     this.procedureDocument.ShowFind = false;
     this.procedureDocument.Size = new System.Drawing.Size(497, 250);
     this.procedureDocument.TabIndex = 0;
     this.procedureDocument.TargetNamespace = null;
     this.procedureDocument.TooltipTextAddButton = "Press to add a new ";
     this.procedureDocument.TooltipTextDeleteButton = "Press to delete the selected ";
     this.procedureDocument.TooltipTextEditButton = "Press to edit the selected ";
     //
     // hlplblfrequency
     //
     this.hlplblfrequency.AutoSize = true;
     this.hlplblfrequency.HelpMessageKey = "HardwareItemDescCalibrationReq.Frequency";
     this.hlplblfrequency.Location = new System.Drawing.Point(3, 9);
     this.hlplblfrequency.Name = "hlplblfrequency";
     this.hlplblfrequency.RequiredField = false;
     this.hlplblfrequency.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.hlplblfrequency.Size = new System.Drawing.Size(57, 13);
     this.hlplblfrequency.TabIndex = 2;
     this.hlplblfrequency.Text = "Frequency";
     //
     // requiredFieldValidator1
     //
     this.requiredFieldValidator1.ControlToValidate = null;
     this.requiredFieldValidator1.ErrorMessage = "Field required.";
     this.requiredFieldValidator1.ErrorProvider = this.errorProvider1;
     this.requiredFieldValidator1.Icon = null;
     this.requiredFieldValidator1.InitialValue = null;
     this.requiredFieldValidator1.IsEnabled = true;
     //
     // errorProvider1
     //
     this.errorProvider1.ContainerControl = this;
     //
     // awbTimeSpan
     //
     this.awbTimeSpan.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.awbTimeSpan.Location = new System.Drawing.Point(66, 3);
     this.awbTimeSpan.MaximumDuration = ATMLCommonLibrary.controls.awb.AWBDurationControl.MaxDuration.Years;
     this.awbTimeSpan.Name = "awbTimeSpan";
     this.awbTimeSpan.Size = new System.Drawing.Size(484, 28);
     this.awbTimeSpan.TabIndex = 3;
     this.awbTimeSpan.TimeSpan = System.TimeSpan.Parse("00:00:00");
     //
     // CalibrationRequirementsControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.awbTimeSpan);
     this.Controls.Add(this.hlplblfrequency);
     this.Controls.Add(this.tabControl1);
     this.Name = "CalibrationRequirementsControl";
     this.Size = new System.Drawing.Size(578, 319);
     this.tabControl1.ResumeLayout(false);
     this.tabPage1.ResumeLayout(false);
     this.tabPage2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
     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.OperatingSystem = new ATMLCommonLibrary.controls.driver.platform.DriverControlOperatingSystemListControl();
     this.helpLabel1 = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.HardDisk = new ATMLCommonLibrary.controls.driver.platform.DriverPlatformHardDiskControl();
     this.PhysicalMem = new ATMLCommonLibrary.controls.driver.platform.DriverPlatformPhysicalMemoryControl();
     this.Processor = new ATMLCommonLibrary.controls.driver.platform.DriverPlatformProcessorControl();
     this.SuspendLayout();
     //
     // OperatingSystem
     //
     this.OperatingSystem.AllowRowResequencing = false;
     this.OperatingSystem.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.OperatingSystem.BackColor = System.Drawing.Color.AliceBlue;
     this.OperatingSystem.FormTitle = null;
     this.OperatingSystem.HasErrors = false;
     this.OperatingSystem.HelpKeyWord = null;
     this.OperatingSystem.LastError = null;
     this.OperatingSystem.ListName = null;
     this.OperatingSystem.Location = new System.Drawing.Point(12, 152);
     this.OperatingSystem.Margin = new System.Windows.Forms.Padding(0);
     this.OperatingSystem.Name = "OperatingSystem";
     this.OperatingSystem.SchemaTypeName = null;
     this.OperatingSystem.ShowFind = false;
     this.OperatingSystem.Size = new System.Drawing.Size(338, 153);
     this.OperatingSystem.TabIndex = 0;
     this.OperatingSystem.TargetNamespace = null;
     this.OperatingSystem.TooltipTextAddButton = "Press to add a new ";
     this.OperatingSystem.TooltipTextDeleteButton = "Press to delete the selected ";
     this.OperatingSystem.TooltipTextEditButton = "Press to edit the selected ";
     //
     // helpLabel1
     //
     this.helpLabel1.AutoSize = true;
     this.helpLabel1.HelpMessageKey = "Driver.Platform.OperatingSystem";
     this.helpLabel1.Location = new System.Drawing.Point(12, 137);
     this.helpLabel1.Name = "helpLabel1";
     this.helpLabel1.RequiredField = false;
     this.helpLabel1.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.helpLabel1.Size = new System.Drawing.Size(90, 13);
     this.helpLabel1.TabIndex = 1;
     this.helpLabel1.Text = "Operating System";
     //
     // HardDisk
     //
     this.HardDisk.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.HardDisk.BackColor = System.Drawing.Color.AliceBlue;
     this.HardDisk.HasErrors = false;
     this.HardDisk.HelpKeyWord = "Driver.Platform.HardDisk";
     this.HardDisk.LastError = null;
     this.HardDisk.Location = new System.Drawing.Point(11, 10);
     this.HardDisk.Name = "HardDisk";
     this.HardDisk.SchemaTypeName = null;
     this.HardDisk.Size = new System.Drawing.Size(343, 35);
     this.HardDisk.TabIndex = 2;
     this.HardDisk.TargetNamespace = null;
     //
     // PhysicalMem
     //
     this.PhysicalMem.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.PhysicalMem.BackColor = System.Drawing.Color.AliceBlue;
     this.PhysicalMem.HasErrors = false;
     this.PhysicalMem.HelpKeyWord = "Driver.Platform.Memory";
     this.PhysicalMem.LastError = null;
     this.PhysicalMem.Location = new System.Drawing.Point(11, 51);
     this.PhysicalMem.Name = "PhysicalMem";
     this.PhysicalMem.SchemaTypeName = null;
     this.PhysicalMem.Size = new System.Drawing.Size(343, 34);
     this.PhysicalMem.TabIndex = 3;
     this.PhysicalMem.TargetNamespace = null;
     //
     // Processor
     //
     this.Processor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.Processor.BackColor = System.Drawing.Color.AliceBlue;
     this.Processor.HasErrors = false;
     this.Processor.HelpKeyWord = "Driver.Platform.Processor";
     this.Processor.LastError = null;
     this.Processor.Location = new System.Drawing.Point(11, 91);
     this.Processor.Name = "Processor";
     this.Processor.SchemaTypeName = null;
     this.Processor.Size = new System.Drawing.Size(343, 30);
     this.Processor.TabIndex = 4;
     this.Processor.TargetNamespace = null;
     //
     // DriverPlatformControl
     //
     this.Controls.Add(this.Processor);
     this.Controls.Add(this.PhysicalMem);
     this.Controls.Add(this.HardDisk);
     this.Controls.Add(this.helpLabel1);
     this.Controls.Add(this.OperatingSystem);
     this.Name = "DriverPlatformControl";
     this.Size = new System.Drawing.Size(366, 324);
     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.groupBox1 = new System.Windows.Forms.GroupBox();
     this.helpLabel4 = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.helpLabel3 = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.helpLabel2 = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.edtID = new ATMLCommonLibrary.controls.awb.AWBTextBox(this.components);
     this.edtSource = new ATMLCommonLibrary.controls.awb.AWBTextBox(this.components);
     this.edtType = new ATMLCommonLibrary.controls.awb.AWBTextBox(this.components);
     this.helpLabel1 = new ATMLCommonLibrary.controls.HelpLabel(this.components);
     this.edtDescription = new ATMLCommonLibrary.controls.awb.AWBTextBox(this.components);
     this.edtDescriptionValidate = new ATMLCommonLibrary.controls.validators.RequiredFieldValidator();
     this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
     this.edtIDValidate = new ATMLCommonLibrary.controls.validators.RequiredFieldValidator();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.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.groupBox1.Controls.Add(this.helpLabel4);
     this.groupBox1.Controls.Add(this.helpLabel3);
     this.groupBox1.Controls.Add(this.helpLabel2);
     this.groupBox1.Controls.Add(this.edtID);
     this.groupBox1.Controls.Add(this.edtSource);
     this.groupBox1.Controls.Add(this.edtType);
     this.groupBox1.Location = new System.Drawing.Point(6, 31);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(250, 99);
     this.groupBox1.TabIndex = 2;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "Attributes";
     //
     // helpLabel4
     //
     this.helpLabel4.AutoSize = true;
     this.helpLabel4.HelpMessageKey = "ErrorControl.ID";
     this.helpLabel4.Location = new System.Drawing.Point(35, 75);
     this.helpLabel4.Name = "helpLabel4";
     this.helpLabel4.RequiredField = false;
     this.helpLabel4.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.helpLabel4.Size = new System.Drawing.Size(18, 13);
     this.helpLabel4.TabIndex = 5;
     this.helpLabel4.Text = "ID";
     //
     // helpLabel3
     //
     this.helpLabel3.AutoSize = true;
     this.helpLabel3.HelpMessageKey = "ErrorControl.Source";
     this.helpLabel3.Location = new System.Drawing.Point(12, 48);
     this.helpLabel3.Name = "helpLabel3";
     this.helpLabel3.RequiredField = false;
     this.helpLabel3.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.helpLabel3.Size = new System.Drawing.Size(41, 13);
     this.helpLabel3.TabIndex = 4;
     this.helpLabel3.Text = "Source";
     //
     // helpLabel2
     //
     this.helpLabel2.AutoSize = true;
     this.helpLabel2.HelpMessageKey = "ErrorControl.Type";
     this.helpLabel2.Location = new System.Drawing.Point(22, 22);
     this.helpLabel2.Name = "helpLabel2";
     this.helpLabel2.RequiredField = false;
     this.helpLabel2.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.helpLabel2.Size = new System.Drawing.Size(31, 13);
     this.helpLabel2.TabIndex = 3;
     this.helpLabel2.Text = "Type";
     //
     // edtID
     //
     this.edtID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.edtID.AttributeName = null;
     this.edtID.DataLookupKey = null;
     this.edtID.Location = new System.Drawing.Point(61, 72);
     this.edtID.Name = "edtID";
     this.edtID.Size = new System.Drawing.Size(178, 20);
     this.edtID.TabIndex = 2;
     this.edtID.Value = null;
     this.edtID.ValueType = ATMLCommonLibrary.controls.awb.AWBTextBox.eValueType.xsString;
     //
     // edtSource
     //
     this.edtSource.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.edtSource.AttributeName = null;
     this.edtSource.DataLookupKey = null;
     this.edtSource.Location = new System.Drawing.Point(61, 45);
     this.edtSource.Name = "edtSource";
     this.edtSource.Size = new System.Drawing.Size(178, 20);
     this.edtSource.TabIndex = 1;
     this.edtSource.Value = null;
     this.edtSource.ValueType = ATMLCommonLibrary.controls.awb.AWBTextBox.eValueType.xsString;
     //
     // edtType
     //
     this.edtType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.edtType.AttributeName = null;
     this.edtType.DataLookupKey = null;
     this.edtType.Location = new System.Drawing.Point(61, 19);
     this.edtType.Name = "edtType";
     this.edtType.Size = new System.Drawing.Size(178, 20);
     this.edtType.TabIndex = 0;
     this.edtType.Value = null;
     this.edtType.ValueType = ATMLCommonLibrary.controls.awb.AWBTextBox.eValueType.xsString;
     //
     // helpLabel1
     //
     this.helpLabel1.AutoSize = true;
     this.helpLabel1.HelpMessageKey = "ErrorControl.Description";
     this.helpLabel1.Location = new System.Drawing.Point(3, 10);
     this.helpLabel1.Name = "helpLabel1";
     this.helpLabel1.RequiredField = false;
     this.helpLabel1.RequiredFieldMarkerFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.helpLabel1.Size = new System.Drawing.Size(60, 13);
     this.helpLabel1.TabIndex = 1;
     this.helpLabel1.Text = "Description";
     //
     // edtDescription
     //
     this.edtDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     | System.Windows.Forms.AnchorStyles.Right)));
     this.edtDescription.AttributeName = null;
     this.edtDescription.DataLookupKey = null;
     this.edtDescription.Location = new System.Drawing.Point(68, 7);
     this.edtDescription.Name = "edtDescription";
     this.edtDescription.Size = new System.Drawing.Size(178, 20);
     this.edtDescription.TabIndex = 0;
     this.edtDescription.Value = null;
     this.edtDescription.ValueType = ATMLCommonLibrary.controls.awb.AWBTextBox.eValueType.xsString;
     //
     // edtDescriptionValidate
     //
     this.edtDescriptionValidate.ControlToValidate = this.edtDescription;
     this.edtDescriptionValidate.ErrorMessage = null;
     this.edtDescriptionValidate.ErrorProvider = this.errorProvider1;
     this.edtDescriptionValidate.Icon = null;
     this.edtDescriptionValidate.InitialValue = null;
     this.edtDescriptionValidate.IsEnabled = true;
     //
     // errorProvider1
     //
     this.errorProvider1.ContainerControl = this;
     //
     // edtIDValidate
     //
     this.edtIDValidate.ControlToValidate = this.edtID;
     this.edtIDValidate.ErrorMessage = null;
     this.edtIDValidate.ErrorProvider = this.errorProvider1;
     this.edtIDValidate.Icon = null;
     this.edtIDValidate.InitialValue = null;
     this.edtIDValidate.IsEnabled = true;
     //
     // ErrorControl
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.helpLabel1);
     this.Controls.Add(this.edtDescription);
     this.Name = "ErrorControl";
     this.Size = new System.Drawing.Size(259, 138);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Exemplo n.º 16
0
        void ReleaseDesignerOutlets()
        {
            if (ActiveItems_Label != null)
            {
                ActiveItems_Label.Dispose();
                ActiveItems_Label = null;
            }

            if (CandyButton != null)
            {
                CandyButton.Dispose();
                CandyButton = null;
            }

            if (Collected_Label != null)
            {
                Collected_Label.Dispose();
                Collected_Label = null;
            }

            if (HelpLabel != null)
            {
                HelpLabel.Dispose();
                HelpLabel = null;
            }

            if (HighScoreLabel != null)
            {
                HighScoreLabel.Dispose();
                HighScoreLabel = null;
            }

            if (InfoButton != null)
            {
                InfoButton.Dispose();
                InfoButton = null;
            }

            if (LevelLabel != null)
            {
                LevelLabel.Dispose();
                LevelLabel = null;
            }

            if (LevelUpLabel != null)
            {
                LevelUpLabel.Dispose();
                LevelUpLabel = null;
            }

            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

            if (RestartButton != null)
            {
                RestartButton.Dispose();
                RestartButton = null;
            }

            if (ScoreLabel != null)
            {
                ScoreLabel.Dispose();
                ScoreLabel = null;
            }

            if (SettingsButton != null)
            {
                SettingsButton.Dispose();
                SettingsButton = null;
            }
        }
Exemplo n.º 17
0
 private void CrcSelector_DropDownClosed(object sender, EventArgs e)
 {
     HelpLabel.Focus();
 }