本文整理汇总了C#中System.Windows.Forms.MenuStrip.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# MenuStrip.ResumeLayout方法的具体用法?C# MenuStrip.ResumeLayout怎么用?C# MenuStrip.ResumeLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.MenuStrip
的用法示例。
在下文中一共展示了MenuStrip.ResumeLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponents
void InitializeComponents()
{
var menuStrip = new MenuStrip();
saveToolStripMenuItem = new ToolStripMenuItem { Visible = false };
closeToolStripMenuItem = new ToolStripMenuItem { Visible = false };
openToolStripMenuItem = new ToolStripMenuItem { Visible = false };
newToolStripMenuItem = new ToolStripMenuItem { Visible = false };
menuStrip.SuspendLayout();
SuspendLayout();
menuStrip.Items.Add(saveToolStripMenuItem);
menuStrip.Items.Add(closeToolStripMenuItem);
menuStrip.Items.Add(openToolStripMenuItem);
menuStrip.Items.Add(newToolStripMenuItem);
saveToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.S;
closeToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.W;
openToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.O;
newToolStripMenuItem.ShortcutKeys = Keys.Control | Keys.N;
Controls.Add(menuStrip);
Size = new Size(800, 600);
Text = "DevPad";
WindowState = FormWindowState.Maximized;
menuStrip.ResumeLayout(false);
menuStrip.PerformLayout();
ResumeLayout(false);
PerformLayout();
MainMenuStrip = menuStrip;
}
示例2: Activate
public void Activate()
{
if (_isActivated) return;
var headerControls = App.CompositionContainer.GetExportedValues<IHeaderControl>().ToList();
// Activate only if there are no other IHeaderControl implementations and
// custom HeaderControl not yet set
if (App.HeaderControl == null &&
headerControls.Count == 1 && headerControls[0].GetType() == GetType())
{
_isActivated = true;
var container = new ToolStripPanel {Dock = DockStyle.Top};
Shell.Controls.Add(container);
var menuStrip = new MenuStrip { Name = DEFAULT_GROUP_NAME, Dock = DockStyle.Top };
Shell.Controls.Add(menuStrip);
Initialize(container, menuStrip);
// Add default buttons
container.SuspendLayout();
menuStrip.SuspendLayout();
new DefaultMenuBars(App).Initialize(this);
container.ResumeLayout();
menuStrip.ResumeLayout();
}
}
示例3: add_to
public void add_to(MenuStrip strip)
{
strip.SuspendLayout();
var menu_item = new ToolStripMenuItem(name);
strip.Items.Add(menu_item);
all_menu_items().each(x => menu_item.DropDownItems.Add(x.build()));
strip.ResumeLayout();
}
示例4: SuspendLayout
//.........这里部分代码省略.........
Id_MateriaPrima.Name = "Id_MateriaPrima";
Id_MateriaPrima.Visible = false;
//
// Id_TipoPieza
//
Id_TipoPieza.HeaderText = "Id_TipoPieza";
Id_TipoPieza.Name = "Id_TipoPieza";
Id_TipoPieza.Visible = false;
//
// Nombrem
//
Nombrem.HeaderText = "Nombre";
Nombrem.Name = "Nombrem";
//
// TipoPieza
//
TipoPieza.HeaderText = "Tipo pieza";
TipoPieza.Name = "TipoPieza";
//
// Lotem
//
Lotem.HeaderText = "Lote";
Lotem.Name = "Lotem";
//
// Fotom
//
Fotom.HeaderText = "Foto";
Fotom.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Stretch;
Fotom.MinimumWidth = 50;
Fotom.Name = "Fotom";
Fotom.Resizable = System.Windows.Forms.DataGridViewTriState.True;
Fotom.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
Fotom.Visible = false;
//
// Id_ProductoElaborado
//
Id_ProductoElaborado.HeaderText = "Id_ProductoElaborado";
Id_ProductoElaborado.Name = "Id_ProductoElaborado";
Id_ProductoElaborado.Visible = false;
//
// Foto
//
Foto.HeaderText = "Foto";
Foto.ImageLayout = System.Windows.Forms.DataGridViewImageCellLayout.Stretch;
Foto.MinimumWidth = 50;
Foto.Name = "Foto";
Foto.Resizable = System.Windows.Forms.DataGridViewTriState.True;
Foto.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
Foto.Visible = false;
//
// NombrePE
//
NombrePE.HeaderText = "Nombre";
NombrePE.Name = "NombrePE";
//
// pic_Logo
//
pic_Logo.BackgroundImage = global::Shajobe.Properties.Resources.Logo_Shajobe;
pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pic_Logo.Location = new System.Drawing.Point(90, 250);
pic_Logo.Name = "pic_Logo";
pic_Logo.Size = new System.Drawing.Size(156, 74);
pic_Logo.TabIndex = 13;
pic_Logo.TabStop = false;
//
// Ingredientes_Empaques
//
AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
ClientSize = new System.Drawing.Size(788, 630);
Controls.Add(panel_Ingredientes);
Controls.Add(menuStrip1);
MaximizeBox = false;
Name = "Ingredientes_Empaques";
Text = "Ingredientes empaques";
Icon = global::Shajobe.Properties.Resources.Indirecto_ICO;
Load += new System.EventHandler(Ingredientes_Empaques_Load);
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
panel_Ingredientes.ResumeLayout(false);
panel_Ingredientes.PerformLayout();
groupBox4.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(data_ListaSinRebaba)).EndInit();
groupBox3.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(data_SinRebaba)).EndInit();
groupBox5.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(data_ListaConRebaba)).EndInit();
groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(data_ConRebaba)).EndInit();
groupBox6.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(data_ListaProdElab)).EndInit();
groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(data_ProdElaborado)).EndInit();
((System.ComponentModel.ISupportInitialize)(errorProvider1)).EndInit();
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER);
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER | AnimateWindowFlags.AW_SLIDE);
ResumeLayout(false);
PerformLayout();
}
示例5: CreateMenuDataForm
private static void CreateMenuDataForm(Form form)
{
MenuStrip menu = new MenuStrip();
ToolStripMenuItem m_file = new ToolStripMenuItem();
ToolStripMenuItem m_quit = new ToolStripMenuItem();
menu.SuspendLayout();
menu.Items.AddRange(new ToolStripItem[] { m_file });
m_file.DropDownItems.AddRange(new ToolStripItem[] { m_quit } );
m_file.Text = "&File";
m_quit.Text = "&Update data definition";
m_quit.Click += new System.EventHandler(m_update_data_def_Click);
//form.MainMenuStrip = menu;
form.Controls.Add(menu);
menu.ResumeLayout();
}
示例6: createWindowsMenu
protected virtual void createWindowsMenu(MenuStrip menubar)
{
ComponentResourceManager resources = new ComponentResourceManager(typeof(DXWindow));
ToolStripSeparator sep1 = new ToolStripSeparator();
windowsMenu = new ToolStripMenuItem();
openVPEOption = new DXToolStripMenuItem("openVPEOption", openVPECmd);
openAllControlPanelsOption = new DXToolStripMenuItem("openAllControlPanelsOption",
DXApplication.theDXApplication.network.getOpenAllPanelsCommand());
openControlPanelByNameOption = new CascadeAutoToolStripMenuItem(windowsMenu);
openAllColormapEditorsOption = new DXToolStripMenuItem("openAllColormapEditorsOptions",
DXApplication.theDXApplication.openAllColormapCmd);
messageWindowOption = new DXToolStripMenuItem("messageWindowOption",
DXApplication.theDXApplication.messageWindowCmd);
SuspendLayout();
menubar.SuspendLayout();
menubar.Items.Add(windowsMenu);
windowsMenu.DropDownItems.AddRange(new ToolStripItem[] {
openVPEOption,
openAllControlPanelsOption,
openControlPanelByNameOption,
openAllColormapEditorsOption,
messageWindowOption
});
windowsMenu.Name = "windowsMenu";
resources.ApplyResources(this.windowsMenu, "windowsMenu");
openVPEOption.Name = "openVPEOption";
resources.ApplyResources(this.openVPEOption, "openVPEOption");
openAllControlPanelsOption.Name = "openAllControlPanelsOption";
resources.ApplyResources(this.openAllControlPanelsOption, "openAllControlPanelsOption");
openControlPanelByNameOption.Name = "openControlPanelByNameOption";
resources.ApplyResources(this.openControlPanelByNameOption, "openControlPanelByNameOption");
openAllColormapEditorsOption.Name = "openAllColormapEditorsOption";
resources.ApplyResources(this.openAllColormapEditorsOption, "openAllColormapEditorsOption");
messageWindowOption.Name = "messageWindowOption";
resources.ApplyResources(this.messageWindowOption, "messageWindowOption");
menubar.ResumeLayout();
menubar.PerformLayout();
ResumeLayout();
PerformLayout();
}
示例7: ViewContainer
//.........这里部分代码省略.........
//
//cam_Top.Name = "Cam_Top";
//cam_Top.Size = new System.Drawing.Size(152, 22);
//cam_Top.Text = "Top";
//
//StripMenuItem: Cam_Side
//
//cam_Side.Name = "Cam_Side";
//cam_Side.Size = new System.Drawing.Size(152, 22);
//cam_Side.Text = "Side";
//
//StripMenuItem: Cam_Front
//
//cam_Front.Name = "Cam_Front";
//cam_Front.Size = new System.Drawing.Size(152, 22);
//cam_Front.Text = "Front";
//
//StripMenuItem: CamList
//
//cam_List.DropDownItems.AddRange(new ToolStripMenuItem[]
//{
// cam_Front,
// cam_Persp,
// cam_Side,
//cam_Top
//});
cam_List.Name = "CamsList";
cam_List.Size = new System.Drawing.Size(37, 20);
cam_List.Text = "视图列表";
cam_List.Click+=cam_List_Click;
//
//StripMenuItem:camContr
//
cam_Contr.Name = "CamContr";
cam_Contr.Text = "视图控制";
cam_Contr.Size=new System.Drawing.Size(37,20);
ToolStripMenuItem newCam = new ToolStripMenuItem();
newCam.Name = "New Camera";
newCam.Text = "新建视图";
newCam.Size = new System.Drawing.Size(37, 20);
newCam.Click += new EventHandler(delegate(object sender, EventArgs e)
{
new dCamera(SceneEntry.Scene);
});
cam_Contr.DropDownItems.AddRange(
new ToolStripMenuItem[]{newCam}
);
//
//MenuStrip
//
menuStrip.Items.AddRange(new ToolStripItem[]
{
cam_List,
cam_Contr
});
menuStrip.Location = new System.Drawing.Point(0, 0);
menuStrip.Name = "ViewMenuStrip";
menuStrip.Size = new System.Drawing.Size(650, 25);
menuStrip.TabIndex = 3;
menuStrip.Text = "视图";
((System.ComponentModel.ISupportInitialize)
this).BeginInit();
this.Panel1.SuspendLayout();
this.Panel2.SuspendLayout();
this.SuspendLayout();
this.Dock = DockStyle.Fill;
this.Location = new System.Drawing.Point(0, 0);
this.Name = "SplitView";
this.Orientation = Orientation.Horizontal;
this.Panel1.Controls.Add(menuStrip);
//a = _entry;
//result.Panel2.Controls.Add(_entry);
SceneEntry = new WinFormsContentLoading.SceneEntry();
SceneEntry.Dock = System.Windows.Forms.DockStyle.Fill;
SceneEntry.Location = new System.Drawing.Point(0, 0);
SceneEntry.Name = ViewNm;
SceneEntry.Size = new System.Drawing.Size(642, 407);
SceneEntry.TabIndex = 11;
SceneEntry.Text = "modelViewerControl";
SceneEntry.IsActivate = isEnabled;
this.Panel2.Controls.Add(SceneEntry);
this.Size = new System.Drawing.Size(640, 480);
this.SplitterDistance = 10;
this.TabIndex = 3;
this.AutoScaleMode = AutoScaleMode.Font;
menuStrip.ResumeLayout(false);
menuStrip.PerformLayout();
}
示例8: SuspendLayout
//.........这里部分代码省略.........
lbl_Tamaño.Size = new System.Drawing.Size(46, 13);
lbl_Tamaño.TabIndex = 44;
lbl_Tamaño.Text = "Tamaño";
//
// lbl_Descripcion
//
lbl_Descripcion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
lbl_Descripcion.AutoSize = true;
lbl_Descripcion.Location = new System.Drawing.Point(27, 89);
lbl_Descripcion.Name = "lbl_Descripcion";
lbl_Descripcion.Size = new System.Drawing.Size(63, 13);
lbl_Descripcion.TabIndex = 38;
lbl_Descripcion.Text = "Descripción";
//
// lbl_Nombre
//
lbl_Nombre.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
lbl_Nombre.AutoSize = true;
lbl_Nombre.Location = new System.Drawing.Point(27, 64);
lbl_Nombre.Name = "lbl_Nombre";
lbl_Nombre.Size = new System.Drawing.Size(44, 13);
lbl_Nombre.TabIndex = 36;
lbl_Nombre.Text = "Nombre";
//
// lbl_Clave
//
lbl_Clave.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
lbl_Clave.AutoSize = true;
lbl_Clave.Location = new System.Drawing.Point(28, 42);
lbl_Clave.Name = "lbl_Clave";
lbl_Clave.Size = new System.Drawing.Size(34, 13);
lbl_Clave.TabIndex = 35;
lbl_Clave.Text = "Clave";
//
// groupBoxfoto
//
groupBoxfoto.Controls.Add(btn_Buscar);
groupBoxfoto.Location = new System.Drawing.Point(301, 31);
groupBoxfoto.Name = "groupBoxfoto";
groupBoxfoto.Size = new System.Drawing.Size(237, 236);
groupBoxfoto.TabIndex = 31;
groupBoxfoto.TabStop = false;
groupBoxfoto.Text = "Foto de producto";
//
// btn_Buscar
//
btn_Buscar.Location = new System.Drawing.Point(156, 207);
btn_Buscar.Name = "btn_Buscar";
btn_Buscar.Size = new System.Drawing.Size(75, 23);
btn_Buscar.TabIndex = 33;
btn_Buscar.Text = "Añadir imagen";
btn_Buscar.UseVisualStyleBackColor = true;
btn_Buscar.Click += new System.EventHandler(btn_Buscar_Click);
//
// pic_Logo
//
pic_Logo.BackgroundImage = global::Shajobe.Properties.Resources.Logo_Shajobe;
pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pic_Logo.Location = new System.Drawing.Point(90, 250);
pic_Logo.Name = "pic_Logo";
pic_Logo.Size = new System.Drawing.Size(156, 74);
pic_Logo.TabIndex = 13;
pic_Logo.TabStop = false;
//
// errorProvider1
//
errorProvider1.ContainerControl = this;
//
// Indirecto
//
AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
ClientSize = new System.Drawing.Size(594, 352);
Controls.Add(pic_Indirecto);
Controls.Add(groupBoxdatos);
Controls.Add(menuStrip1);
Icon = global::Shajobe.Properties.Resources.Indirecto_ICO;
MaximizeBox = false;
MaximumSize = new System.Drawing.Size(607, 433);
MinimumSize = new System.Drawing.Size(607, 433);
Name = "Indirecto";
StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
Text = "Producto indirecto";
Load += new System.EventHandler(Indirecto_Load);
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(pic_Indirecto)).EndInit();
groupBoxdatos.ResumeLayout(false);
groupBoxdatos.PerformLayout();
groupBoxfoto.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(errorProvider1)).EndInit();
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER);
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER | AnimateWindowFlags.AW_SLIDE);
ResumeLayout(false);
PerformLayout();
}
示例9: CreateStandardMenuStrip
//.........这里部分代码省略.........
IDesigner designer = this._host.GetDesigner(item2);
if (designer is ComponentDesigner)
{
((ComponentDesigner) designer).InitializeNewComponent(null);
}
item2.Text = text;
}
else
{
item2 = (ToolStripMenuItem) this._host.CreateComponent(typeof(ToolStripMenuItem), name);
IDesigner designer2 = this._host.GetDesigner(item2);
if (designer2 is ComponentDesigner)
{
((ComponentDesigner) designer2).InitializeNewComponent(null);
}
item2.Text = text;
Keys shortcut = keysArray[i][j];
if (((item2 is ToolStripMenuItem) && (shortcut != Keys.None)) && (!ToolStripManager.IsShortcutDefined(shortcut) && ToolStripManager.IsValidShortcut(shortcut)))
{
((ToolStripMenuItem) item2).ShortcutKeys = shortcut;
}
Bitmap image = null;
try
{
image = this.GetImage(strArray2[i][j]);
}
catch
{
}
if (image != null)
{
PropertyDescriptor descriptor = TypeDescriptor.GetProperties(item2)["Image"];
if (descriptor != null)
{
descriptor.SetValue(item2, image);
}
item2.ImageTransparentColor = Color.Magenta;
}
}
if (j == 0)
{
component = (ToolStripMenuItem) item2;
component.DropDown.SuspendLayout();
}
else
{
component.DropDownItems.Add(item2);
}
if (j == (strArray3.Length - 1))
{
MemberDescriptor member = TypeDescriptor.GetProperties(component)["DropDownItems"];
this.componentChangeSvc.OnComponentChanging(component, member);
this.componentChangeSvc.OnComponentChanged(component, member, null, null);
}
}
component.DropDown.ResumeLayout(false);
tool.Items.Add(component);
if (i == (strArray.Length - 1))
{
MemberDescriptor descriptor3 = TypeDescriptor.GetProperties(tool)["Items"];
this.componentChangeSvc.OnComponentChanging(tool, descriptor3);
this.componentChangeSvc.OnComponentChanged(tool, descriptor3, null, null);
}
}
}
catch (Exception exception)
{
if (exception is InvalidOperationException)
{
((IUIService) this._provider.GetService(typeof(IUIService))).ShowError(exception.Message);
}
if (transaction != null)
{
transaction.Cancel();
transaction = null;
}
}
finally
{
ToolStripDesigner._autoAddNewItems = true;
if (transaction != null)
{
transaction.Commit();
transaction = null;
}
tool.ResumeLayout();
ISelectionService service = (ISelectionService) this._provider.GetService(typeof(ISelectionService));
if (service != null)
{
service.SetSelectedComponents(new object[] { this._designer.Component });
}
DesignerActionUIService service4 = (DesignerActionUIService) this._provider.GetService(typeof(DesignerActionUIService));
if (service4 != null)
{
service4.Refresh(this._designer.Component);
}
((SelectionManager) this._provider.GetService(typeof(SelectionManager))).Refresh();
}
}
}
示例10: SuspendLayout
//.........这里部分代码省略.........
txt_NMax.TabIndex = 7;
//
// txt_NMin
//
txt_NMin.Location = new System.Drawing.Point(121, 30);
txt_NMin.Name = "txt_NMin";
txt_NMin.Size = new System.Drawing.Size(100, 20);
txt_NMin.KeyPress += new KeyPressEventHandler(txt_MinMax_KeyPress);
txt_NMin.TabIndex = 6;
//
// comboBox_Unidad
//
comboBox_Unidad.FormattingEnabled = true;
comboBox_Unidad.Location = new System.Drawing.Point(121, 90);
comboBox_Unidad.Name = "comboBox_Unidad";
comboBox_Unidad.Size = new System.Drawing.Size(100, 21);
comboBox_Unidad.KeyPress += new KeyPressEventHandler(NoescrituracomboBox_KeyPress);
//
// lbl_Unidad
//
lbl_Unidad.AutoSize = true;
lbl_Unidad.Location = new System.Drawing.Point(20, 95);
lbl_Unidad.Name = "lbl_Unidad";
lbl_Unidad.Size = new System.Drawing.Size(86, 13);
lbl_Unidad.Text = "Unidad de medida";
//
// comboBox_TipoPieza
//
comboBox_TipoPieza.FormattingEnabled = true;
comboBox_TipoPieza.Location = new System.Drawing.Point(122, 144);
comboBox_TipoPieza.Name = "comboBox_TipoPieza";
comboBox_TipoPieza.Size = new System.Drawing.Size(156, 21);
comboBox_TipoPieza.TabIndex = 59;
comboBox_TipoPieza.KeyPress += new KeyPressEventHandler(NoescrituracomboBox_KeyPress);
//
// comboBox_TipoMateriaprima
//
comboBox_TipoMateriaprima.FormattingEnabled = true;
comboBox_TipoMateriaprima.Location = new System.Drawing.Point(122, 174);
comboBox_TipoMateriaprima.Name = "comboBox_TipoMateriaprima";
comboBox_TipoMateriaprima.Size = new System.Drawing.Size(156, 21);
comboBox_TipoMateriaprima.TabIndex = 59;
comboBox_TipoMateriaprima.KeyPress += new KeyPressEventHandler(NoescrituracomboBox_KeyPress);
//
// lbl_TipoPieza
//
lbl_TipoPieza.AutoSize = true;
lbl_TipoPieza.Location = new System.Drawing.Point(23, 147);
lbl_TipoPieza.Name = "lbl_TipoPieza";
lbl_TipoPieza.Size = new System.Drawing.Size(71, 13);
lbl_TipoPieza.TabIndex = 58;
lbl_TipoPieza.Text = "Tipo de pieza";
//
// lbl_TipoMateriaprima
//
lbl_TipoMateriaprima.AutoSize = true;
lbl_TipoMateriaprima.Location = new System.Drawing.Point(23, 177);
lbl_TipoMateriaprima.Name = "lbl_TipoMateriaprima";
lbl_TipoMateriaprima.Size = new System.Drawing.Size(71, 13);
lbl_TipoMateriaprima.TabIndex = 58;
lbl_TipoMateriaprima.Text = "Tipo materia prima";
//
// pic_Logo
//
pic_Logo.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Logo_Shajobe;
pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pic_Logo.Location = new System.Drawing.Point(80, 230);
pic_Logo.Name = "pic_Logo";
pic_Logo.Size = new System.Drawing.Size(166, 84);
pic_Logo.TabIndex = 13;
pic_Logo.TabStop = false;
//
// Materia_Prima
//
AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
ClientSize = new System.Drawing.Size(594, 404);
Controls.Add(pic_MateriaPrima);
Controls.Add(groupBoxdatos);
Controls.Add(menuStrip1);
FormClosing += new System.Windows.Forms.FormClosingEventHandler(Materia_PrimaFormClosing);
Icon = global::Sistema_Shajobe.Properties.Resources.MateriaPrima_ICO;
MaximizeBox = false;
MaximumSize = new System.Drawing.Size(600, 426);
MinimumSize = new System.Drawing.Size(600, 426);
Name = "Materia_Prima";
Text = "Materia prima";
Load += new System.EventHandler(Materia_prima_Load);
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(errorProvider_Textbox)).EndInit();
((System.ComponentModel.ISupportInitialize)(errorProvider_Combobox)).EndInit();
((System.ComponentModel.ISupportInitialize)(pic_MateriaPrima)).EndInit();
groupBoxdatos.ResumeLayout(false);
groupBoxdatos.PerformLayout();
groupBoxNivel.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
}
示例11: SuspendLayout
//.........这里部分代码省略.........
//
salirToolStripMenuItem.Name = "salirToolStripMenuItem";
salirToolStripMenuItem.Size = new System.Drawing.Size(151, 22);
salirToolStripMenuItem.Text = "&Salir";
salirToolStripMenuItem.Click += new System.EventHandler(salirToolStripMenuItem_Click);
//
// editarToolStripMenuItem
//
editarToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
modificarToolStripMenuItem,
eliminarToolStripMenuItem});
editarToolStripMenuItem.Name = "editarToolStripMenuItem";
editarToolStripMenuItem.Size = new System.Drawing.Size(47, 20);
editarToolStripMenuItem.Text = "&Editar";
//
// modificarToolStripMenuItem
//
modificarToolStripMenuItem.Enabled = false;
modificarToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Modificar;
modificarToolStripMenuItem.Name = "modificarToolStripMenuItem";
modificarToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
modificarToolStripMenuItem.Text = "Modificar";
modificarToolStripMenuItem.Click += new System.EventHandler(modificarToolStripMenuItem_Click);
//
// eliminarToolStripMenuItem
//
eliminarToolStripMenuItem.Enabled = false;
eliminarToolStripMenuItem.Image = global::Sistema_Shajobe.Properties.Resources.Borrar;
eliminarToolStripMenuItem.Name = "eliminarToolStripMenuItem";
eliminarToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
eliminarToolStripMenuItem.Text = "Eliminar";
eliminarToolStripMenuItem.Visible = false;
eliminarToolStripMenuItem.Click += new System.EventHandler(eliminarToolStripMenuItem_Click);
//
// ayudaToolStripMenuItem
//
ayudaToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
acercadeToolStripMenuItem});
ayudaToolStripMenuItem.Name = "ayudaToolStripMenuItem";
ayudaToolStripMenuItem.Size = new System.Drawing.Size(50, 20);
ayudaToolStripMenuItem.Text = "Ay&uda";
//
// acercadeToolStripMenuItem
//
acercadeToolStripMenuItem.Name = "acercadeToolStripMenuItem";
acercadeToolStripMenuItem.Size = new System.Drawing.Size(134, 22);
acercadeToolStripMenuItem.Text = "&Acerca de...";
//
// errorProvider1
//
errorProvider1.ContainerControl = this;
//
// pic_Almacen
//
pic_Almacen.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Almacen;
pic_Almacen.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pic_Almacen.Location = new System.Drawing.Point(351, 25);
pic_Almacen.Name = "pic_Almacen";
pic_Almacen.Size = new System.Drawing.Size(85, 67);
pic_Almacen.TabIndex = 79;
pic_Almacen.TabStop = false;
//
// pic_Logo
//
pic_Logo.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Logo_Shajobe;
pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pic_Logo.Location = new System.Drawing.Point(280, 200);
pic_Logo.Name = "pic_Logo";
pic_Logo.Size = new System.Drawing.Size(152, 70);
pic_Logo.TabIndex = 13;
pic_Logo.TabStop = false;
//
// Almacen
//
AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(448, 284);
Controls.Add(pic_Almacen);
Controls.Add(menuStrip1);
Controls.Add(pic_Logo);
Controls.Add(groupBoxdatos);
BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
FormClosing += new System.Windows.Forms.FormClosingEventHandler(Almacen_FormClosing);
Icon = global::Sistema_Shajobe.Properties.Resources.Almacen_ICO;
MaximizeBox = false;
MaximumSize = new System.Drawing.Size(454, 306);
MinimumSize = new System.Drawing.Size(454, 306);
Name = "Almacen";
StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
Text = "Almacen";
Load += new System.EventHandler(Almacen_Load);
groupBoxdatos.ResumeLayout(false);
groupBoxdatos.PerformLayout();
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(errorProvider1)).EndInit();
((System.ComponentModel.ISupportInitialize)(pic_Almacen)).EndInit();
ResumeLayout(false);
PerformLayout();
}
示例12: SuspendLayout
//.........这里部分代码省略.........
// Apellido_P
//
Apellido_P.HeaderText = "Apellido_P";
Apellido_P.Name = "Apellido_P";
Apellido_P.ReadOnly = true;
//
// Apellido_M
//
Apellido_M.HeaderText = "Apellido_M";
Apellido_M.Name = "Apellido_M";
Apellido_M.ReadOnly = true;
//
// Limite_Credito
//
Limite_Credito.HeaderText = "Limite_Credito";
Limite_Credito.Name = "Limite_Credito";
Limite_Credito.ReadOnly = true;
Limite_Credito.Visible = false;
//
// Dias_Credito
//
Dias_Credito.HeaderText = "Dias_Credito";
Dias_Credito.Name = "Dias_Credito";
Dias_Credito.ReadOnly = true;
Dias_Credito.Visible = false;
//
// Saldo
//
Saldo.HeaderText = "Saldo";
Saldo.Name = "Saldo";
Saldo.ReadOnly = true;
Saldo.Visible = false;
//
// pictureBox_Logo
//
pictureBox_Logo.BackgroundImage = global::Shajobe.Properties.Resources.Modificar;
pictureBox_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pictureBox_Logo.Location = new System.Drawing.Point(799, 22);
pictureBox_Logo.Name = "pictureBox_Logo";
pictureBox_Logo.Size = new System.Drawing.Size(65, 44);
pictureBox_Logo.TabIndex = 24;
pictureBox_Logo.TabStop = false;
//
// dateTimePicker_FechaAbono
//
dateTimePicker_FechaAbono.Location = new System.Drawing.Point(314, 300);
dateTimePicker_FechaAbono.Name = "dateTimePicker_FechaAbono";
dateTimePicker_FechaAbono.Size = new System.Drawing.Size(200, 20);
dateTimePicker_FechaAbono.TabIndex = 40;
//
// lbl_Fecha
//
lbl_Fecha.AutoSize = true;
lbl_Fecha.Location = new System.Drawing.Point(376, 283);
lbl_Fecha.Name = "lbl_Fecha";
lbl_Fecha.Size = new System.Drawing.Size(85, 13);
lbl_Fecha.TabIndex = 41;
lbl_Fecha.Text = "Fecha de abono";
//
// pic_Logo
//
pic_Logo.BackgroundImage = global::Shajobe.Properties.Resources.Logo_Shajobe;
pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pic_Logo.Location = new System.Drawing.Point(90, 250);
pic_Logo.Name = "pic_Logo";
pic_Logo.Size = new System.Drawing.Size(156, 74);
pic_Logo.TabIndex = 13;
pic_Logo.TabStop = false;
//
// Abono
//
AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
ClientSize = new System.Drawing.Size(867, 389);
Controls.Add(pictureBox_Logo);
Controls.Add(groupBox);
Controls.Add(menuStrip1);
MaximizeBox = false;
MaximumSize = new System.Drawing.Size(873, 413);
MinimumSize = new System.Drawing.Size(873, 413);
Icon = global::Shajobe.Properties.Resources.Caja_ICO;
Name = "Abono";
Text = "Abono";
Load += new System.EventHandler(Abono_Load);
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(errorProvider1)).EndInit();
groupBox.ResumeLayout(false);
groupBox.PerformLayout();
groupBox_listaAbonos.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(dataGridView_Abonos)).EndInit();
groupBoxLista_Clientes.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(dataGridView_Clientes)).EndInit();
((System.ComponentModel.ISupportInitialize)(pictureBox_Logo)).EndInit();
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER);
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER | AnimateWindowFlags.AW_SLIDE);
ResumeLayout(false);
PerformLayout();
}
示例13: InitializeComponent
//.........这里部分代码省略.........
controlGrid = new DataGridView();
controlGrid.Dock = DockStyle.Fill;
controlGrid.AllowUserToAddRows = false;
controlGrid.CellValueChanged += new DataGridViewCellEventHandler(control_grid_value_change);
controlGrid.RowHeadersVisible = false;
DataGridViewColumn cg_property = new DataGridViewTextBoxColumn();
cg_property.HeaderText = "Property";
cg_property.ReadOnly = true;
cg_property.SortMode = DataGridViewColumnSortMode.NotSortable;
DataGridViewColumn cg_value = new DataGridViewTextBoxColumn();
cg_value.HeaderText = "Value";
cg_value.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
cg_value.SortMode = DataGridViewColumnSortMode.NotSortable;
controlGrid.Columns.AddRange(new DataGridViewColumn[] {cg_property, cg_value});
foreach (String property in properties)
controlGrid.Rows.Add(new String[] { property, "" });
// File list view
fileList = new RightClickableListView();
fileList.Name = "fileList";
fileList.AllowColumnReorder = true;
fileList.AllowDrop = true; // Drag-n-Drop
fileList.Dock = DockStyle.Fill;
fileList.Location = new Point(0, 0);
fileList.View = View.Details; // Details View
fileList.FullRowSelect = true;
fileList.MultiSelect = true;
fileList.HideSelection = false;
fileList.KeyDown += new KeyEventHandler(fileList_key_press);
fileList.ColumnContextMenuClicked += new RightClickableListView.ColumnContextMenuHandler(fileList_right_click);
fileList.ItemSelectionChanged += new ListViewItemSelectionChangedEventHandler(fileList_selection);
#endregion
#region Dialogs
// Dialog components
openFileDialog = new OpenFileDialog();
openFileDialog.FileName = "openFileDialog";
#endregion
#region Menus
headerContext = new ContextMenu();
foreach (String header in MainWindow.headers)
{
MenuItem item = new MenuItem(header);
item.Click += new EventHandler(header_menu_item_click);
headerContext.MenuItems.Add(item);
}
#endregion
#region Main Window
// Settings for main window
AutoScaleDimensions = new SizeF(6F, 13F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(984, 612);
MinimumSize = new Size(700, 500);
Name = "MainWindow";
Text = "File Tag";
#endregion
#region Add Controls
Controls.Add(mainSplit);
Controls.Add(toolStrip);
Controls.Add(statusBar);
Controls.Add(menuBar);
MainMenuStrip = menuBar;
mainSplit.Panel1.Controls.Add(controlGrid);
mainSplit.Panel2.Controls.Add(fileList);
#endregion
#region Resume Layouts
menuBar.ResumeLayout(false);
menuBar.PerformLayout();
mainSplit.Panel1.ResumeLayout(false);
mainSplit.Panel2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(mainSplit)).EndInit();
mainSplit.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
#endregion
}
示例14: LoadMenuStrip
public void LoadMenuStrip(MenuStrip ms, String fileName)
{
ms.SuspendLayout();
if (fileName != null)
{
try
{
String tempStr;
tempStr = fileName.Split(new char[] { '.' })[fileName.Split(new char[] { '.' }).Length - 1];
if (tempStr.ToUpper() == "XML" && File.Exists(fileName))
{
XmlDocument doc = new XmlDocument();
doc.Load(fileName);
XmlNode root = doc.SelectSingleNode("/root/Menus");
for (int i = 0; i < root.ChildNodes.Count; i++)
{
XmlElement elem = (XmlElement)root.ChildNodes[i];
ToolStripMenuItem tempMenu;
AddToolStripMenu(out tempMenu, elem);
ms.Items.Add(tempMenu);
}
}
}
catch (System.Exception ex)
{
Trace.WriteLine("Error:加载菜单栏错误"+ex.Message);
}
}
ms.ResumeLayout(false);
ms.PerformLayout();
}
示例15: SuspendLayout
//.........这里部分代码省略.........
txt_Movimiento.MaxLength = 25;
txt_Movimiento.Name = "txt_Movimiento";
txt_Movimiento.Size = new System.Drawing.Size(127, 20);
txt_Movimiento.TabIndex = 46;
//
// txt_DineroCaja
//
txt_DineroCaja.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
txt_DineroCaja.Enabled = false;
txt_DineroCaja.Location = new System.Drawing.Point(126, 35);
txt_DineroCaja.MaxLength = 8;
txt_DineroCaja.Name = "txt_DineroCaja";
txt_DineroCaja.Size = new System.Drawing.Size(127, 20);
txt_DineroCaja.TabIndex = 37;
//
// lbl_Fecha
//
lbl_Fecha.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
lbl_Fecha.AutoSize = true;
lbl_Fecha.Location = new System.Drawing.Point(27, 96);
lbl_Fecha.Name = "lbl_Fecha";
lbl_Fecha.Size = new System.Drawing.Size(37, 13);
lbl_Fecha.TabIndex = 44;
lbl_Fecha.Text = "Fecha";
//
// lbl_Concepto
//
lbl_Concepto.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
lbl_Concepto.AutoSize = true;
lbl_Concepto.Location = new System.Drawing.Point(27, 124);
lbl_Concepto.Name = "lbl_Concepto";
lbl_Concepto.Size = new System.Drawing.Size(53, 13);
lbl_Concepto.TabIndex = 38;
lbl_Concepto.Text = "Concepto";
//
// lbl_Movimiento
//
lbl_Movimiento.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
lbl_Movimiento.AutoSize = true;
lbl_Movimiento.Location = new System.Drawing.Point(27, 69);
lbl_Movimiento.Name = "lbl_Movimiento";
lbl_Movimiento.Size = new System.Drawing.Size(61, 13);
lbl_Movimiento.TabIndex = 36;
lbl_Movimiento.Text = "Movimiento";
//
// lbl_MontoInicial
//
lbl_MontoInicial.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
lbl_MontoInicial.AutoSize = true;
lbl_MontoInicial.Location = new System.Drawing.Point(27, 42);
lbl_MontoInicial.Name = "lbl_MontoInicial";
lbl_MontoInicial.Size = new System.Drawing.Size(76, 13);
lbl_MontoInicial.TabIndex = 35;
lbl_MontoInicial.Text = "Dinero en caja";
//
// errorProvider1
//
errorProvider1.ContainerControl = this;
//
// pic_Logo
//
pic_Logo.BackgroundImage = global::Sistema_Shajobe.Properties.Resources.Logo_Shajobe;
pic_Logo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
pic_Logo.Location = new System.Drawing.Point(380, 80);
pic_Logo.Name = "pic_Logo";
pic_Logo.Size = new System.Drawing.Size(166, 84);
pic_Logo.TabIndex = 13;
pic_Logo.TabStop = false;
//
// Caja
//
AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
ClientSize = new System.Drawing.Size(572, 238);
Controls.Add(pic_Caja);
Controls.Add(groupBoxdatos);
Controls.Add(menuStrip1);
Icon = global::Sistema_Shajobe.Properties.Resources.Caja_ICO;
MaximizeBox = false;
Name = "Caja";
StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
Text = "Caja";
Load += new System.EventHandler(Caja_Load);
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(pic_Caja)).EndInit();
groupBoxdatos.ResumeLayout(false);
groupBoxdatos.PerformLayout();
((System.ComponentModel.ISupportInitialize)(errorProvider1)).EndInit();
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER);
AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER | AnimateWindowFlags.AW_SLIDE);
ResumeLayout(false);
PerformLayout();
}