⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productsummaryviewdialog.designer.cs

📁 Microsoft Mobile Development Handbook的代码,有C#,VB,C++的
💻 CS
字号:
namespace MobileDevelopersHandbook
{
    partial class ProductSummaryViewDialog
    {
        public void AttachVisibilityBindings(ControlCollection controls)
        {
            for (int i = 0; (i < controls.Count); i = (i + 1))
            {
                if ((controls[i].DataBindings["Visible"] != null))
                {
                    // Attach event handlers to auto-hide controls.
                    controls[i].DataBindings["Visible"].Format += new System.Windows.Forms.ConvertEventHandler(this.Visibility_Format);
                    controls[i].DataBindings["Visible"].DataSourceUpdateMode = System.Windows.Forms.DataSourceUpdateMode.Never;
                }
            }

        }
    
        public void Visibility_Format(object sender, System.Windows.Forms.ConvertEventArgs e)
        {
            if ((e.Value == System.DBNull.Value))
            {
                e.Value = false;
            }
            else
            {
                e.Value = true;
            }

        }
    
        public static ProductSummaryViewDialog Instance(System.Windows.Forms.BindingSource bindingSource)
        {
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
            if ((defaultInstance == null))
            {
                defaultInstance = new MobileDevelopersHandbook.ProductSummaryViewDialog();
                defaultInstance.productBindingSource.DataSource = bindingSource;
            }
            defaultInstance.AutoScrollPosition = new System.Drawing.Point(0, 0);
            defaultInstance.productBindingSource.Position = bindingSource.Position;
            System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;
            return defaultInstance;
        }
    
        private static ProductSummaryViewDialog defaultInstance;
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
        private System.Windows.Forms.MainMenu mainMenu1;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <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.productIDLabel = new System.Windows.Forms.Label();
            this.nameLabel = new System.Windows.Forms.Label();
            this.colorLabel = new System.Windows.Forms.Label();
            this.listPriceLabel = new System.Windows.Forms.Label();
            this.sizeLabel = new System.Windows.Forms.Label();
            this.productCategoryIDLabel = new System.Windows.Forms.Label();
            this.mainMenu1 = new System.Windows.Forms.MainMenu();
            this.editMenuItemMenuItem = new System.Windows.Forms.MenuItem();
            this.productBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.productIDLabel1 = new System.Windows.Forms.Label();
            this.nameLabel1 = new System.Windows.Forms.Label();
            this.colorLabel1 = new System.Windows.Forms.Label();
            this.listPriceLabel1 = new System.Windows.Forms.Label();
            this.sizeLabel1 = new System.Windows.Forms.Label();
            this.topBorderPanel = new System.Windows.Forms.Panel();
            this.leftBorderPanel = new System.Windows.Forms.Panel();
            this.rightBorderPanel = new System.Windows.Forms.Panel();
            this.productCategoryLabel1 = new System.Windows.Forms.Label();
            this.productsDataSet = new MobileDevelopersHandbook.ProductsDataSet();
            this.SuspendLayout();
            // 
            // productIDLabel
            // 
            this.productIDLabel.Dock = System.Windows.Forms.DockStyle.Top;
            this.productIDLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
            this.productIDLabel.Location = new System.Drawing.Point(4, 2);
            this.productIDLabel.Name = "productIDLabel";
            this.productIDLabel.Size = new System.Drawing.Size(232, 21);
            this.productIDLabel.Text = "Product ID:";
            // 
            // nameLabel
            // 
            this.nameLabel.Dock = System.Windows.Forms.DockStyle.Top;
            this.nameLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
            this.nameLabel.Location = new System.Drawing.Point(4, 43);
            this.nameLabel.Name = "nameLabel";
            this.nameLabel.Size = new System.Drawing.Size(232, 21);
            this.nameLabel.Text = "Name:";
            // 
            // colorLabel
            // 
            this.colorLabel.Dock = System.Windows.Forms.DockStyle.Top;
            this.colorLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
            this.colorLabel.Location = new System.Drawing.Point(4, 84);
            this.colorLabel.Name = "colorLabel";
            this.colorLabel.Size = new System.Drawing.Size(232, 21);
            this.colorLabel.Text = "Color:";
            // 
            // listPriceLabel
            // 
            this.listPriceLabel.Dock = System.Windows.Forms.DockStyle.Top;
            this.listPriceLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
            this.listPriceLabel.Location = new System.Drawing.Point(4, 125);
            this.listPriceLabel.Name = "listPriceLabel";
            this.listPriceLabel.Size = new System.Drawing.Size(232, 21);
            this.listPriceLabel.Text = "List Price:";
            // 
            // sizeLabel
            // 
            this.sizeLabel.Dock = System.Windows.Forms.DockStyle.Top;
            this.sizeLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
            this.sizeLabel.Location = new System.Drawing.Point(4, 166);
            this.sizeLabel.Name = "sizeLabel";
            this.sizeLabel.Size = new System.Drawing.Size(232, 21);
            this.sizeLabel.Text = "Size:";
            // 
            // productCategoryIDLabel
            // 
            this.productCategoryIDLabel.Dock = System.Windows.Forms.DockStyle.Top;
            this.productCategoryIDLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
            this.productCategoryIDLabel.Location = new System.Drawing.Point(4, 207);
            this.productCategoryIDLabel.Name = "productCategoryIDLabel";
            this.productCategoryIDLabel.Size = new System.Drawing.Size(232, 21);
            this.productCategoryIDLabel.Text = "Product Category:";
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.Add(this.editMenuItemMenuItem);
            // 
            // editMenuItemMenuItem
            // 
            this.editMenuItemMenuItem.Text = "Edit";
            this.editMenuItemMenuItem.Click += new System.EventHandler(this.editMenuItemMenuItem_Click);
            // 
            // productBindingSource
            // 
            this.productBindingSource.DataMember = "Product";
            this.productBindingSource.DataSource = this.productsDataSet;
            // 
            // productIDLabel1
            // 
            this.productIDLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.productBindingSource, "ProductID", true));
            this.productIDLabel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.productIDLabel1.Location = new System.Drawing.Point(4, 23);
            this.productIDLabel1.Name = "productIDLabel1";
            this.productIDLabel1.Size = new System.Drawing.Size(232, 20);
            // 
            // nameLabel1
            // 
            this.nameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.productBindingSource, "Name", true));
            this.nameLabel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.nameLabel1.Location = new System.Drawing.Point(4, 64);
            this.nameLabel1.Name = "nameLabel1";
            this.nameLabel1.Size = new System.Drawing.Size(232, 20);
            // 
            // colorLabel1
            // 
            this.colorLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.productBindingSource, "Color", true));
            this.colorLabel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.colorLabel1.Location = new System.Drawing.Point(4, 105);
            this.colorLabel1.Name = "colorLabel1";
            this.colorLabel1.Size = new System.Drawing.Size(232, 20);
            // 
            // listPriceLabel1
            // 
            this.listPriceLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.productBindingSource, "ListPrice", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2"));
            this.listPriceLabel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.listPriceLabel1.Location = new System.Drawing.Point(4, 146);
            this.listPriceLabel1.Name = "listPriceLabel1";
            this.listPriceLabel1.Size = new System.Drawing.Size(232, 20);
            // 
            // sizeLabel1
            // 
            this.sizeLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.productBindingSource, "Size", true));
            this.sizeLabel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.sizeLabel1.Location = new System.Drawing.Point(4, 187);
            this.sizeLabel1.Name = "sizeLabel1";
            this.sizeLabel1.Size = new System.Drawing.Size(232, 20);
            // 
            // topBorderPanel
            // 
            this.topBorderPanel.Dock = System.Windows.Forms.DockStyle.Top;
            this.topBorderPanel.Location = new System.Drawing.Point(4, 0);
            this.topBorderPanel.Name = "topBorderPanel";
            this.topBorderPanel.Size = new System.Drawing.Size(232, 2);
            // 
            // leftBorderPanel
            // 
            this.leftBorderPanel.Dock = System.Windows.Forms.DockStyle.Left;
            this.leftBorderPanel.Location = new System.Drawing.Point(0, 0);
            this.leftBorderPanel.Name = "leftBorderPanel";
            this.leftBorderPanel.Size = new System.Drawing.Size(4, 268);
            // 
            // rightBorderPanel
            // 
            this.rightBorderPanel.Dock = System.Windows.Forms.DockStyle.Right;
            this.rightBorderPanel.Location = new System.Drawing.Point(236, 0);
            this.rightBorderPanel.Name = "rightBorderPanel";
            this.rightBorderPanel.Size = new System.Drawing.Size(4, 268);
            // 
            // productCategoryLabel1
            // 
            this.productCategoryLabel1.Location = new System.Drawing.Point(4, 232);
            this.productCategoryLabel1.Name = "productCategoryLabel1";
            this.productCategoryLabel1.Size = new System.Drawing.Size(226, 20);
            this.productCategoryLabel1.Text = "label1";
            // 
            // productsDataSet
            // 
            this.productsDataSet.DataSetName = "ProductsDataSet";
            this.productsDataSet.Prefix = "";
            this.productsDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // ProductSummaryViewDialog
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.ClientSize = new System.Drawing.Size(240, 268);
            this.Controls.Add(this.productCategoryLabel1);
            this.Controls.Add(this.productCategoryIDLabel);
            this.Controls.Add(this.sizeLabel1);
            this.Controls.Add(this.sizeLabel);
            this.Controls.Add(this.listPriceLabel1);
            this.Controls.Add(this.listPriceLabel);
            this.Controls.Add(this.colorLabel1);
            this.Controls.Add(this.colorLabel);
            this.Controls.Add(this.nameLabel1);
            this.Controls.Add(this.nameLabel);
            this.Controls.Add(this.productIDLabel1);
            this.Controls.Add(this.productIDLabel);
            this.Controls.Add(this.topBorderPanel);
            this.Controls.Add(this.leftBorderPanel);
            this.Controls.Add(this.rightBorderPanel);
            this.Menu = this.mainMenu1;
            this.MinimizeBox = false;
            this.Name = "ProductSummaryViewDialog";
            this.Text = "ProductSummaryViewDialog";
            this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ProductSummaryViewDialog_KeyDown);
            this.Load += new System.EventHandler(this.ProductSummaryViewDialog_Load);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.MenuItem editMenuItemMenuItem;
        private System.Windows.Forms.Label productIDLabel1;
        private System.Windows.Forms.Label nameLabel1;
        private System.Windows.Forms.Label colorLabel1;
        private System.Windows.Forms.Label listPriceLabel1;
        private System.Windows.Forms.Label sizeLabel1;
        private System.Windows.Forms.Panel topBorderPanel;
        private System.Windows.Forms.Panel leftBorderPanel;
        private System.Windows.Forms.Panel rightBorderPanel;
        private System.Windows.Forms.Label productIDLabel;
        private System.Windows.Forms.Label nameLabel;
        private System.Windows.Forms.Label colorLabel;
        private System.Windows.Forms.Label listPriceLabel;
        private System.Windows.Forms.Label sizeLabel;
        private System.Windows.Forms.Label productCategoryIDLabel;
        private System.Windows.Forms.Label productCategoryLabel1;
        private System.Windows.Forms.BindingSource productBindingSource;
        private ProductsDataSet productsDataSet;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -