本文整理汇总了C#中System.Windows.Forms.ImageList类的典型用法代码示例。如果您正苦于以下问题:C# ImageList类的具体用法?C# ImageList怎么用?C# ImageList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ImageList类属于System.Windows.Forms命名空间,在下文中一共展示了ImageList类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: assetsControlLoad
void assetsControlLoad(object sender, EventArgs e)
{
if( Helper.IsInDesignMode )
{
return ;
}
var extensibility = ObjectFactory.GetInstance<IExtensibility>( ) ;
var imageRepository=ObjectFactory.GetInstance<IImageRepository>( ) ;
_imageList = imageRepository.CreateImageList( ) ;
uiList.SmallImageList = _imageList ;
var plugins = new List<IPlugin>();
plugins.AddRange( extensibility.EditorPlugins );
plugins.AddRange( extensibility.BehaviourPlugins );
plugins.ForEach( p => imageRepository.Set( p.Icon ) );
plugins.GroupBy( p => p.CategoryName ).Distinct( ).ForEach(
grouping => _pluginsForCategories.Add( grouping.Key, new List<IPlugin>( ) ) ) ;
plugins.ForEach( p=> _pluginsForCategories[p.CategoryName].Add( p ) );
XElement xml = buildXml( ) ;
populateTreeFromXml( xml ) ;
}
开发者ID:jethac,项目名称:oglr,代码行数:29,代码来源:AssetsControl.cs
示例2: FlatTabControl
public FlatTabControl()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
// double buffering
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
bUpDown = false;
this.ControlAdded += new ControlEventHandler(FlatTabControl_ControlAdded);
this.ControlRemoved += new ControlEventHandler(FlatTabControl_ControlRemoved);
this.SelectedIndexChanged += new EventHandler(FlatTabControl_SelectedIndexChanged);
leftRightImages = new ImageList();
//leftRightImages.ImageSize = new Size(16, 16); // default
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FlatTabControl));
Bitmap updownImage = ((System.Drawing.Bitmap)(resources.GetObject("TabIcons.bmp")));
if (updownImage != null)
{
updownImage.MakeTransparent(Color.White);
leftRightImages.Images.AddStrip(updownImage);
}
}
开发者ID:devfinity-fx,项目名称:cpms_z,代码行数:30,代码来源:FlatTabControl.cs
示例3: InitializeComponent
/// <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.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(RegistryBrowser));
this.tvRegistry = new System.Windows.Forms.TreeView();
this.ilTreeImages = new System.Windows.Forms.ImageList(this.components);
this.SuspendLayout();
//
// tvRegistry
//
this.tvRegistry.Dock = System.Windows.Forms.DockStyle.Fill;
this.tvRegistry.ImageList = this.ilTreeImages;
this.tvRegistry.Name = "tvRegistry";
this.tvRegistry.Size = new System.Drawing.Size(392, 333);
this.tvRegistry.TabIndex = 0;
this.tvRegistry.BeforeExpand += new System.Windows.Forms.TreeViewCancelEventHandler(this.tvRegistry_BeforeExpand);
//
// ilTreeImages
//
this.ilTreeImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.ilTreeImages.ImageSize = new System.Drawing.Size(13, 13);
this.ilTreeImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilTreeImages.ImageStream")));
this.ilTreeImages.TransparentColor = System.Drawing.Color.Transparent;
//
// RegistryBrowser
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(392, 333);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.tvRegistry});
this.Name = "RegistryBrowser";
this.Text = "Registry Browser";
this.ResumeLayout(false);
}
开发者ID:ppatoria,项目名称:SoftwareDevelopment,代码行数:39,代码来源:MAIN.CS
示例4: ActivityBindForm
public ActivityBindForm(IServiceProvider serviceProvider, ITypeDescriptorContext context)
{
this.context = context;
this.serviceProvider = serviceProvider;
this.InitializeComponent();
this.createProperty.Checked = true;
this.helpTextBox.Multiline = true;
IUIService service = (IUIService) this.serviceProvider.GetService(typeof(IUIService));
if (service != null)
{
this.Font = (Font) service.Styles["DialogFont"];
}
ComponentResourceManager manager = new ComponentResourceManager(typeof(ActivityBindForm));
this.ActivityBindDialogTitleFormat = manager.GetString("ActivityBindDialogTitleFormat");
this.PropertyAssignableFormat = manager.GetString("PropertyAssignableFormat");
this.DescriptionFormat = manager.GetString("DescriptionFormat");
this.EditIndex = manager.GetString("EditIndex");
this.PleaseSelectCorrectActivityProperty = manager.GetString("PleaseSelectCorrectActivityProperty");
this.PleaseSelectActivityProperty = manager.GetString("PleaseSelectActivityProperty");
this.IncorrectIndexChange = manager.GetString("IncorrectIndexChange");
this.CreateNewMemberHelpFormat = manager.GetString("CreateNewMemberHelpFormat");
this.memberTypes = new ImageList();
this.memberTypes.ImageStream = (ImageListStreamer) manager.GetObject("memberTypes.ImageStream");
this.memberTypes.TransparentColor = AmbientTheme.TransparentColor;
this.properties = CustomActivityDesignerHelper.GetCustomProperties(context);
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:26,代码来源:ActivityBindForm.cs
示例5: ThreadsUI
public ThreadsUI(PluginMain pluginMain, ImageList imageList)
{
this.pluginMain = pluginMain;
lv = new ListView();
lv.ShowItemToolTips = true;
this.imageColumnHeader = new ColumnHeader();
this.imageColumnHeader.Text = string.Empty;
this.imageColumnHeader.Width = 20;
this.frameColumnHeader = new ColumnHeader();
this.frameColumnHeader.Text = string.Empty;
lv.Columns.AddRange(new ColumnHeader[] {
this.imageColumnHeader,
this.frameColumnHeader});
lv.FullRowSelect = true;
lv.BorderStyle = BorderStyle.None;
lv.Dock = System.Windows.Forms.DockStyle.Fill;
lv.SmallImageList = imageList;
runningImageIndex = imageList.Images.IndexOfKey("StartContinue");
suspendedImageIndex = imageList.Images.IndexOfKey("Pause");
lv.View = System.Windows.Forms.View.Details;
lv.MouseDoubleClick += new MouseEventHandler(lv_MouseDoubleClick);
lv.KeyDown += new KeyEventHandler(lv_KeyDown);
lv.SizeChanged += new EventHandler(lv_SizeChanged);
this.Controls.Add(lv);
}
开发者ID:thecocce,项目名称:flashdevelop,代码行数:31,代码来源:ThreadsUI.cs
示例6: ArrayList
private ArrayList _imageLists = new ArrayList(); //will hold ImageList objects
#endregion Fields
#region Constructors
/// <summary>
/// Creates an instance of <c>IconListManager</c> that will add icons to a single <c>ImageList</c> using the
/// specified <c>IconSize</c>.
/// </summary>
/// <param name="imageList"><c>ImageList</c> to add icons to.</param>
/// <param name="iconSize">Size to use (either 32 or 16 pixels).</param>
public IconListManager(ImageList imageList, IconReader.IconSize iconSize)
{
// Initialise the members of the class that will hold the image list we're
// targeting, as well as the icon size (32 or 16)
_imageLists.Add(imageList);
_iconSize = iconSize;
}
开发者ID:modulexcite,项目名称:ShareX_Google_Code,代码行数:19,代码来源:IconListManager.cs
示例7: FileStatusList
public FileStatusList()
{
InitializeComponent(); Translate();
SelectFirstItemOnSetItems = true;
_noDiffFilesChangesDefaultText = NoFiles.Text;
#if !__MonoCS__ // TODO Drag'n'Drop doesn't work on Mono/Linux
FileStatusListView.MouseMove += FileStatusListView_MouseMove;
FileStatusListView.MouseDown += FileStatusListView_MouseDown;
#endif
if (_images == null)
{
_images = new ImageList();
_images.Images.Add(Resources.Removed); // 0
_images.Images.Add(Resources.Added); // 1
_images.Images.Add(Resources.Modified); // 2
_images.Images.Add(Resources.Renamed); // 3
_images.Images.Add(Resources.Copied); // 4
_images.Images.Add(Resources.IconSubmoduleDirty); // 5
_images.Images.Add(Resources.IconSubmoduleRevisionUp); // 6
_images.Images.Add(Resources.IconSubmoduleRevisionUpDirty); // 7
_images.Images.Add(Resources.IconSubmoduleRevisionDown); // 8
_images.Images.Add(Resources.IconSubmoduleRevisionDownDirty); // 9
_images.Images.Add(Resources.IconSubmoduleRevisionSemiUp); // 10
_images.Images.Add(Resources.IconSubmoduleRevisionSemiUpDirty); // 11
_images.Images.Add(Resources.IconSubmoduleRevisionSemiDown); // 12
_images.Images.Add(Resources.IconSubmoduleRevisionSemiDownDirty); // 13
_images.Images.Add(Resources.IconFileStatusUnknown); // 14
}
FileStatusListView.SmallImageList = _images;
FileStatusListView.LargeImageList = _images;
NoFiles.Visible = false;
NoFiles.Font = new Font(SystemFonts.MessageBoxFont, FontStyle.Italic);
}
开发者ID:neoandrew1000,项目名称:gitextensions,代码行数:34,代码来源:FileStatusList.cs
示例8: ImageList
static public ImageList ImageList()
{
Type t = typeof(SelectorImages);
if (m_imageList == null)
m_imageList = ImagesUtil.GetToolbarImageList(t, "ColorPickerCtrl.Resources.colorbarIndicators.bmp", new Size(12, 12), Color.Magenta);
return m_imageList;
}
开发者ID:Nullstr1ng,项目名称:MultiRDPClient.NET,代码行数:7,代码来源:Images.cs
示例9: OnDrawItem
/// <summary>
/// Owner drawing listview item.
/// </summary>
protected void OnDrawItem( DrawItemEventArgs e, PluginListItem item )
{
e.DrawBackground();
// IsRunnning bitmap
const int imageWidth = 16+3;
if(imageList==null)
imageList = ((PluginDialog)Parent).ImageList;
if(imageList!=null)
{
int imageIndex = item.PluginInfo.IsCurrentlyLoaded ? 0 : 1;
imageList.Draw(e.Graphics, e.Bounds.Left+2, e.Bounds.Top+1, imageIndex);
}
// Name
Rectangle bounds = Rectangle.FromLTRB(e.Bounds.Left+imageWidth,
e.Bounds.Top, e.Bounds.Left+Columns[0].Width, e.Bounds.Bottom);
using(Brush brush = new SolidBrush(e.ForeColor))
e.Graphics.DrawString(item.Name, e.Font, brush, bounds);
// Check box (Load at startup)
bounds = Rectangle.FromLTRB(bounds.Right+1,
bounds.Top, bounds.Right+Columns[1].Width+1, bounds.Bottom-1);
ButtonState state = item.PluginInfo.IsLoadedAtStartup ? ButtonState.Checked : ButtonState.Normal;
ControlPaint.DrawCheckBox(e.Graphics, bounds, state);
}
开发者ID:paladin74,项目名称:Dapple,代码行数:29,代码来源:PluginListView.cs
示例10: InitializeComponent
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DatabaseTree));
this.imageListIcon = new System.Windows.Forms.ImageList(this.components);
this.SuspendLayout();
//
// imageListIcon
//
this.imageListIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListIcon.ImageStream")));
this.imageListIcon.TransparentColor = System.Drawing.Color.Transparent;
this.imageListIcon.Images.SetKeyName(0, "servers.ico");
this.imageListIcon.Images.SetKeyName(1, "sever.ico");
this.imageListIcon.Images.SetKeyName(2, "db.ico");
this.imageListIcon.Images.SetKeyName(3, "tables.ico");
this.imageListIcon.Images.SetKeyName(4, "table.ico");
this.imageListIcon.Images.SetKeyName(5, "view.ico");
this.imageListIcon.Images.SetKeyName(6, "column.ico");
this.imageListIcon.Images.SetKeyName(7, "procedure.ico");
this.imageListIcon.Images.SetKeyName(8, "open.ico");
this.imageListIcon.Images.SetKeyName(9, "refresh.png");
this.imageListIcon.Images.SetKeyName(10, "delete.ico");
this.imageListIcon.Images.SetKeyName(11, "property.png");
this.imageListIcon.Images.SetKeyName(12, "generator.ico");
//
// DatabaseTree
//
this.ImageIndex = 0;
this.ImageList = this.imageListIcon;
this.LineColor = System.Drawing.Color.Black;
this.SelectedImageIndex = 0;
this.ResumeLayout(false);
}
开发者ID:jojozhuang,项目名称:Projects,代码行数:34,代码来源:DatabaseTree.cs
示例11: NotifyIconHelper
/// <summary>
/// 构造 NotifyIconHelper 的新实例。
/// </summary>
/// <param name="mainForm">应用程序主窗体。</param>
/// <param name="notHandleClosingEvent">是否不让 NotifyIconHelper 处理主窗体的 FormClosing 事件。
/// <remarks>
/// 缺省情况下此参数应为 False,即 NotifyIconHelper 总是通过处理主窗体的 FormClosing 事件达到让主窗体在关闭后
/// 驻留系统托盘区的目的。但特殊情况下,应用程序可能会自己处理主窗体的的 FormClosing 事件,此时应设置此属性为 True。
/// </remarks>
/// </param>
/// <param name="showPromptWhenClosing">是否在窗体关闭时给用户以提示,仅当 NotHandleClosingEvent = False 时有效。</param>
public NotifyIconHelper( Form mainForm, bool notHandleClosingEvent, bool showPromptWhenClosing )
{
_mainForm = mainForm;
_showPromptWhenClosing = showPromptWhenClosing;
_imgLst = new ImageList();
_imgLst.Images.Add( _mainForm.Icon );
Image img = Image.FromHbitmap( _mainForm.Icon.ToBitmap().GetHbitmap() );
_contextMenu = new ContextMenuStrip();
_contextMenu.Items.Add( new ToolStripMenuItem( Resources.MenuShowMainForm, img, OnShowMainForm ) );
_contextMenu.Items.Add( new ToolStripSeparator() );
_contextMenu.Items.Add( new ToolStripMenuItem( Resources.MenuExit, null, OnExitApp ) );
_notifyIcon = new NotifyIcon();
_notifyIcon.Icon = GetAppIcon();
_notifyIcon.Text = _mainForm.Text;
_notifyIcon.Visible = true;
_notifyIcon.ContextMenuStrip = _contextMenu;
_notifyIcon.MouseDown += _notifyIcon_MouseDown;
_mainForm.FormClosed += _mainForm_FormClosed;
if( notHandleClosingEvent == false )
_mainForm.FormClosing += new FormClosingEventHandler( _mainForm_FormClosing );
}
开发者ID:mengdongyue,项目名称:CurrentWallPaper,代码行数:39,代码来源:NotifyIconHelper.cs
示例12: CodeCompletionDataProvider
public CodeCompletionDataProvider() {
// Create the image-list that is needed by the completion windows
_imageList = new ImageList();
//_imageList.Images.Add(Resources.TemplateIcon);
//_imageList.Images.Add(Resources.FieldIcon);
//_imageList.Images.Add(Resources.MethodIcon);
}
开发者ID:sanyaade-fintechnology,项目名称:SquareOne,代码行数:7,代码来源:CodeCompletionDataProvider.cs
示例13: FormFileHistory
internal FormFileHistory(GitUICommands aCommands)
: base(aCommands)
{
InitializeComponent();
_asyncLoader = new AsyncLoader();
// set tab page images
{
var imageList = new ImageList();
tabControl1.ImageList = imageList;
imageList.ColorDepth = ColorDepth.Depth8Bit;
imageList.Images.Add(global::GitUI.Properties.Resources.IconViewFile);
imageList.Images.Add(global::GitUI.Properties.Resources.IconDiff);
imageList.Images.Add(global::GitUI.Properties.Resources.IconBlame);
tabControl1.TabPages[0].ImageIndex = 0;
tabControl1.TabPages[1].ImageIndex = 1;
tabControl1.TabPages[2].ImageIndex = 2;
}
_filterBranchHelper = new FilterBranchHelper(toolStripBranchFilterComboBox, toolStripBranchFilterDropDownButton, FileChanges);
_filterRevisionsHelper = new FilterRevisionsHelper(toolStripRevisionFilterTextBox, toolStripRevisionFilterDropDownButton, FileChanges, toolStripRevisionFilterLabel, ShowFirstParent, form: this);
_formBrowseMenus = new FormBrowseMenus(FileHistoryContextMenu);
_formBrowseMenus.ResetMenuCommandSets();
_formBrowseMenus.AddMenuCommandSet(MainMenuItem.NavigateMenu, FileChanges.MenuCommands.GetNavigateMenuCommands());
_formBrowseMenus.AddMenuCommandSet(MainMenuItem.ViewMenu, FileChanges.MenuCommands.GetViewMenuCommands());
_formBrowseMenus.InsertAdditionalMainMenuItems(toolStripSeparator4);
}
开发者ID:vbjay,项目名称:gitextensions,代码行数:27,代码来源:FormFileHistory.cs
示例14: ImageListResourceEntryNode
public ImageListResourceEntryNode(string key, ImageListStreamer data)
{
this.LazyLoading = true;
this.key = key;
this.data = new ImageList();
this.data.ImageStream = data;
}
开发者ID:JamesLinus,项目名称:ILSpy,代码行数:7,代码来源:ImageListResourceEntryNode.cs
示例15: GetimageList
public static ImageList GetimageList(int width, int height, DataTable imageNames)
{
ImageList imageList = new ImageList();
imageList.ImageSize = new System.Drawing.Size(width, height);
imageList.ColorDepth = ColorDepth.Depth32Bit;
//imageList.Images.Add("selected", (Bitmap)Itop.Client.Resources.Properties.Resources.ResourceManager.GetObject("selected"));
foreach (DataRow row in imageNames.Rows)
{
try
{
object obj = Ebada.Scgl.Resource.Properties.Resources.ResourceManager.GetObject(row["ProgIco"] as string);
if (obj is Icon)
{
imageList.Images.Add(row["ProgIco"] as string, (Icon)obj);
}
else if (obj is Bitmap)
{
imageList.Images.Add(row["ProgIco"] as string, (Bitmap)obj);
}
else
{
}
}
catch (Exception exc)
{
System.Diagnostics.Debug.WriteLine(exc.GetType().ToString() + " - " + exc.Message);
}
}
return imageList;
}
开发者ID:s7loves,项目名称:mypowerscgl,代码行数:34,代码来源:ImageListRes.cs
示例16: GetProtocolImageList
/// <summary>
/// Gets every protocol's icon and puts them into an ImageList loaded by the FavoritesTreeView.
/// </summary>
/// <returns> </returns>
public static ImageList GetProtocolImageList()
{
if (imageList == null || imageList.Images.Count == 0)
{
imageList = new ImageList();
imageList.Images.Add("0", Resources.Places_folder_documents_icon);
imageList.Images.Add("1", Resources.Places_folder_blue_icon);
imageList.Images.Add(UnknownConnectionIcon.Name, UnknownConnectionIcon.Image);
string[] protocols = ConnectionManager.GetProtocols();
foreach (string protocol in protocols)
{
Connection connection = GetCachedConnection(protocol);
if (connection == null)
continue;
ConnectionImage[] images = connection.Images;
foreach (ConnectionImage image in images)
{
imageList.Images.Add(image.Name, image.Image);
}
}
return imageList;
}
return imageList;
}
开发者ID:RSchwoerer,项目名称:Terminals,代码行数:36,代码来源:ConnectionImageHandler.cs
示例17: ImageList
public static ImageList ImageList()
{
Type t = typeof(MenuImages16x16);
if (m_imageList == null)
m_imageList = ImagesUtil.GetToolbarImageList(t, "Resources.edittoolimages.bmp", new Size(16, 16), Color.White);
return m_imageList;
}
开发者ID:jjacksons,项目名称:GLUE,代码行数:7,代码来源:Images.cs
示例18: InitializeTree
private void InitializeTree()
{
HideSelection = false;
courseTreeDragDropHelper = new CourseTreeDragDropHelper(this);
courseTreeKeyboardHelper = new CourseTreeKeyboardHelper(this);
AfterLabelEdit += CourseTree_AfterLabelEdit;
AfterSelect += CourseTree_AfterSelect;
KeyDown += CourseTree_KeyDown;
MouseDown += CourseTree_MouseDown;
MouseUp += CourseTree_MouseUp;
var il = new ImageList();
il.Images.Add(Properties.Resources.CourseRoot);
il.Images.Add(Properties.Resources.TrainingModule);
il.Images.Add(Properties.Resources.InConceptParent);
il.Images.Add(Properties.Resources.OutConceptParent);
il.Images.Add(Properties.Resources.InDummyConcept);
il.Images.Add(Properties.Resources.OutDummyConcept);
il.Images.Add(Properties.Resources.TestModule);
il.Images.Add(Properties.Resources.Group);
il.Images.Add(Properties.Resources.Question);
il.Images.Add(Properties.Resources.Response);
il.ColorDepth = ColorDepth.Depth32Bit;
ImageList = il;
contextMenuDetached = false;
}
开发者ID:AlexGaidukov,项目名称:gipertest_streaming,代码行数:29,代码来源:CourseTree.cs
示例19: frmWatermark
public frmWatermark()
{
InitializeComponent();
WaterMarker = new clsWaterMarker();
images = new List<clsImageItem>();
WaterMarkHasTransparentColor = true;
checkBox5.Checked = true;
//TAB Pictures
ImageList il = new ImageList();
il.Images.Add(Properties.Resources.Image16x16);
il.Images.Add(Properties.Resources.Text16x16);
tabControl1.ImageList = il;
tabPage1.ImageIndex = 0;
tabPage2.ImageIndex = 1;
//
//loadImages(new string[] { "..\\..\\..\\..\\1.jpg", "..\\..\\..\\..\\2.jpg", "..\\..\\..\\..\\3.jpg", "..\\..\\..\\..\\4.jpg" });
//LoadWaterMark("..\\..\\Images\\watermark.png");
this.pbWatermark.AllowDrop = true;
this.pbWatermark.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbWatermark_DragEnter);
this.pbWatermark.DragLeave += new System.EventHandler(this.pbWatermark_DragLeave);
this.pbWatermark.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbWatermark_DragDrop);
}
开发者ID:ralico,项目名称:FreeWatermarker,代码行数:26,代码来源:frmWatermark.cs
示例20: MainForm_Load
private void MainForm_Load(object sender, EventArgs e)
{
this.Text = Strings.MainFormTitle;
this.Connection = ConnHelper.GetConnInstance(this);
//设置行高
ImageList imageList = new ImageList();
imageList.ImageSize = new Size(1, 25);
this.OnlineList.SmallImageList = imageList;
this.OnlineList.Columns.Add("", 0);
this.OnlineList.Columns.Add(Strings.MainFormOnlineListTitle1, 120).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OnlineList.Columns.Add(Strings.MainFormOnlineListTitle2, 160).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OnlineList.Columns.Add(Strings.MainFormOnlineListTitle3, 120).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OnlineList.Columns.Add(Strings.MainFormOnlineListTitle4, 160).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OrderDetailList.SmallImageList = imageList;
this.OrderDetailList.Columns.Add("", 0);
this.OrderDetailList.Columns.Add(Strings.MainFormOrderDetailListTitle1, 100).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OrderDetailList.Columns.Add(Strings.MainFormOrderDetailListTitle2, 120).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OrderDetailList.Columns.Add(Strings.MainFormOrderDetailListTitle3, 70).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OrderDetailList.Columns.Add(Strings.MainFormOrderDetailListTitle4, 70).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OrderDetailList.Columns.Add(Strings.MainFormOrderDetailListTitle5, 100).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.OrderDetailList.Columns.Add(Strings.MainFormOrderDetailListTitle6, 60).TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
}
开发者ID:zikuai,项目名称:OzgMenuSys,代码行数:27,代码来源:MainForm.cs
注:本文中的System.Windows.Forms.ImageList类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论