📄 productcategorysummaryviewdialog.designer.cs
字号:
namespace MobileDevelopersHandbook
{
partial class ProductCategorySummaryViewDialog
{
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 ProductCategorySummaryViewDialog Instance(System.Windows.Forms.BindingSource bindingSource)
{
System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
if ((defaultInstance == null))
{
defaultInstance = new MobileDevelopersHandbook.ProductCategorySummaryViewDialog();
defaultInstance.productCategoryBindingSource.DataSource = bindingSource;
}
defaultInstance.AutoScrollPosition = new System.Drawing.Point(0, 0);
defaultInstance.productCategoryBindingSource.Position = bindingSource.Position;
System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;
return defaultInstance;
}
private static ProductCategorySummaryViewDialog 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();
System.Windows.Forms.Label productCategoryIDLabel;
System.Windows.Forms.Label nameLabel;
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.editMenuItemMenuItem = new System.Windows.Forms.MenuItem();
this.productCategoryBindingSource = new System.Windows.Forms.BindingSource(this.components);
this.productCategoryIDLabel1 = new System.Windows.Forms.Label();
this.nameLabel1 = 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();
productCategoryIDLabel = new System.Windows.Forms.Label();
nameLabel = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// mainMenu1
//
this.mainMenu1.MenuItems.Add(this.editMenuItemMenuItem);
//
// editMenuItemMenuItem
//
this.editMenuItemMenuItem.Text = "Edit";
this.editMenuItemMenuItem.Click += new System.EventHandler(this.editMenuItemMenuItem_Click);
//
// productCategoryBindingSource
//
this.productCategoryBindingSource.DataMember = "ProductCategory";
this.productCategoryBindingSource.DataSource = typeof(MobileDevelopersHandbook.ProductsDataSet);
//
// productCategoryIDLabel
//
productCategoryIDLabel.DataBindings.Add(new System.Windows.Forms.Binding("Visible", this.productCategoryBindingSource, "ProductCategoryID", true));
productCategoryIDLabel.Dock = System.Windows.Forms.DockStyle.Top;
productCategoryIDLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
productCategoryIDLabel.Location = new System.Drawing.Point(4, 4);
productCategoryIDLabel.Name = "productCategoryIDLabel";
productCategoryIDLabel.Size = new System.Drawing.Size(138, 21);
productCategoryIDLabel.Text = "Product Category ID:";
//
// productCategoryIDLabel1
//
this.productCategoryIDLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.productCategoryBindingSource, "ProductCategoryID", true));
this.productCategoryIDLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Visible", this.productCategoryBindingSource, "ProductCategoryID", true));
this.productCategoryIDLabel1.Dock = System.Windows.Forms.DockStyle.Top;
this.productCategoryIDLabel1.Location = new System.Drawing.Point(4, 18);
this.productCategoryIDLabel1.Name = "productCategoryIDLabel1";
this.productCategoryIDLabel1.Size = new System.Drawing.Size(100, 20);
//
// nameLabel
//
nameLabel.DataBindings.Add(new System.Windows.Forms.Binding("Visible", this.productCategoryBindingSource, "Name", true));
nameLabel.Dock = System.Windows.Forms.DockStyle.Top;
nameLabel.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Bold);
nameLabel.Location = new System.Drawing.Point(4, 49);
nameLabel.Name = "nameLabel";
nameLabel.Size = new System.Drawing.Size(44, 21);
nameLabel.Text = "Name:";
//
// nameLabel1
//
this.nameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.productCategoryBindingSource, "Name", true));
this.nameLabel1.DataBindings.Add(new System.Windows.Forms.Binding("Visible", this.productCategoryBindingSource, "Name", true));
this.nameLabel1.Dock = System.Windows.Forms.DockStyle.Top;
this.nameLabel1.Location = new System.Drawing.Point(4, 63);
this.nameLabel1.Name = "nameLabel1";
this.nameLabel1.Size = new System.Drawing.Size(100, 20);
//
// topBorderPanel
//
this.topBorderPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.topBorderPanel.Location = new System.Drawing.Point(0, 0);
this.topBorderPanel.Name = "topBorderPanel";
this.topBorderPanel.Size = new System.Drawing.Size(100, 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, 100);
//
// rightBorderPanel
//
this.rightBorderPanel.Dock = System.Windows.Forms.DockStyle.Right;
this.rightBorderPanel.Location = new System.Drawing.Point(0, 0);
this.rightBorderPanel.Name = "rightBorderPanel";
this.rightBorderPanel.Size = new System.Drawing.Size(4, 100);
//
// ProductCategorySummaryViewDialog
//
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.nameLabel1);
this.Controls.Add(nameLabel);
this.Controls.Add(this.productCategoryIDLabel1);
this.Controls.Add(productCategoryIDLabel);
this.Controls.Add(this.topBorderPanel);
this.Controls.Add(this.leftBorderPanel);
this.Controls.Add(this.rightBorderPanel);
this.Menu = this.mainMenu1;
this.MinimizeBox = false;
this.Name = "ProductCategorySummaryViewDialog";
this.Text = "ProductCategorySummaryViewDialog";
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ProductCategorySummaryViewDialog_KeyDown);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.MenuItem editMenuItemMenuItem;
private System.Windows.Forms.BindingSource productCategoryBindingSource;
private System.Windows.Forms.Label productCategoryIDLabel1;
private System.Windows.Forms.Label nameLabel1;
private System.Windows.Forms.Panel topBorderPanel;
private System.Windows.Forms.Panel leftBorderPanel;
private System.Windows.Forms.Panel rightBorderPanel;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -