public ManagerForm() { // // The InitializeComponent() call is required for Windows Forms designer support. // InitializeComponent(); #if !STANDALONE ICSharpCode.SharpDevelop.Gui.FormLocationHelper.Apply(this, "AddInManager.WindowBounds", true); #endif #if STANDALONE actionFlowLayoutPanel.BackgroundImage = new Bitmap(typeof(ManagerForm).Assembly.GetManifestResourceStream("ICSharpCode.AddInManager.WizardBackground.png")); #else actionFlowLayoutPanel.BackgroundImage = WinFormsResourceService.GetBitmap("GeneralWizardBackground"); #endif installButton.Text = ResourceService.GetString("AddInManager.InstallButton"); uninstallButton.Text = ResourceService.GetString("AddInManager.ActionUninstall"); closeButton.Text = ResourceService.GetString("Global.CloseButtonText"); showPreinstalledAddInsCheckBox.Text = ResourceService.GetString("AddInManager.ShowPreinstalledAddIns"); this.Text = ResourceService.GetString("AddInManager.Title"); RightToLeftConverter.ConvertRecursive(this); CreateAddInList(); }
public void SetItemGlyph(ICSharpCode.Core.Codon codon, BarItem item) { string imageName = codon.Properties["imageName"]; string overlayName = codon.Properties["overlay"]; if (string.IsNullOrEmpty(imageName)) { return; } var icon = WinFormsResourceService.GetIcon(imageName.ToLower()); if (icon == null) { return; } Image largeImage = icon.ToBitmap(); if (!string.IsNullOrEmpty(overlayName)) { var overlay = WinFormsResourceService.GetBitmap(overlayName.ToLower()); if (overlay != null) { DrawOverlay(largeImage, overlay); } } item.LargeGlyph = largeImage; item.Glyph = new Bitmap(largeImage, new Size(16, 16)); }
private void InitImageList() { ImageList imageList = new ImageList(); imageList.ColorDepth = ColorDepth.Depth32Bit; imageList.ImageSize = new System.Drawing.Size(16, 16); imageList.Images.Add(IconService.GetBitmap("Icons.16x16.ClosedFolderBitmap")); imageList.Images.Add(IconService.GetBitmap("Icons.16x16.OpenFolderBitmap")); imageList.Images.Add(new Bitmap(1, 1)); imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SelectionArrow")); imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpReport.Ascending")); imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpReport.Descending")); //Table's or procedure imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Table")); imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Procedure")); //Parameters imageList.Images.Add(IconService.GetBitmap("Icons.16x16.SharpQuery.Column")); //Function imageList.Images.Add(WinFormsResourceService.GetIcon("Icons.16x16.SharpReport.Function")); this.ImageList = imageList; }
public ExceptionBox(Exception exception, string message, bool mustTerminate) { this.exceptionThrown = exception; this.message = message; InitializeComponent(); if (mustTerminate) { closeButton.Visible = false; continueButton.Text = closeButton.Text; continueButton.Left -= closeButton.Width - continueButton.Width; continueButton.Width = closeButton.Width; } try { Translate(this); } catch { } exceptionTextBox.Text = getClipboardString(); try { this.pictureBox.Image = WinFormsResourceService.GetBitmap("ErrorReport"); } catch { } }
DebuggeeExceptionForm(Process process) { InitializeComponent(); this.Break = true; this.process = process; this.process.Exited += ProcessHandler; this.process.Resumed += ProcessHandler; this.FormClosed += FormClosedHandler; this.WindowState = DebuggingOptions.Instance.DebuggeeExceptionWindowState; FormLocationHelper.Apply(this, "DebuggeeExceptionForm", true); this.MinimizeBox = this.MaximizeBox = this.ShowIcon = false; this.exceptionView.Font = WinFormsResourceService.DefaultMonospacedFont; this.exceptionView.DoubleClick += ExceptionViewDoubleClick; this.exceptionView.WordWrap = false; this.btnBreak.Text = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Break}"); this.btnStop.Text = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Terminate}"); this.btnContinue.Text = StringParser.Parse("${res:MainWindow.Windows.Debug.ExceptionForm.Continue}"); this.btnBreak.Image = WinFormsResourceService.GetBitmap("Icons.16x16.Debug.Break"); this.btnStop.Image = WinFormsResourceService.GetBitmap("Icons.16x16.StopProcess"); this.btnContinue.Image = WinFormsResourceService.GetBitmap("Icons.16x16.Debug.Continue"); }
public ScrollBox() { SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); //Image = IconService.GetBitmap("Icons.AboutImage"); Image = null; Font = WinFormsResourceService.LoadFont("Tahoma", 10); text = new string[] { "FanHai Hemera MES System" //"\"Habit 1: Be Proactive", //"\"Habit 2: Begin with the End in Mind", //"\"Habit 3: put First Things First", //"\"Habit 4: Think Win/Win", //"\"Habit 5: Put First to Understand, Then To be Understood", //"\"Habit 6: Synergize", //"\"Habit 7: Sharpen the Saw" }; // randomize the order in which the texts are displayed //Random rnd = new Random(); //for (int i = 0; i < text.Length; i++) //{ // Swap(ref text[i], ref text[rnd.Next(i, text.Length)]); //} timer = new Timer(); timer.Interval = 40; timer.Tick += new EventHandler(ScrollDown); timer.Start(); }
private static void ShowNotifications(IList notificationInfos, RibbonForm form) { IObjectSpace objectSpace = new ODataObjectSpace(); AlertControl alertControl = new AlertControl(); alertControl.AutoHeight = true; AlertButton setReaded = new AlertButton(new Bitmap(WinFormsResourceService.GetBitmap("notification"), new Size(16, 16))); setReaded.Style = AlertButtonStyle.CheckButton; setReaded.Down = false; setReaded.Hint = "Mark Readed"; setReaded.Name = "MarkReaded"; alertControl.Buttons.Add(setReaded); AlertButton deleteBtn = new AlertButton(new Bitmap(WinFormsResourceService.GetBitmap("overlay_delete"), new Size(16, 16))); deleteBtn.Style = AlertButtonStyle.CheckButton; deleteBtn.Down = false; deleteBtn.Hint = "Delete Notification"; deleteBtn.Name = "DelNotification"; alertControl.Buttons.Add(deleteBtn); alertControl.ButtonClick += new AlertButtonClickEventHandler(DelButtonClick); alertControl.BeforeFormShow += (sender, e) => { e.AlertForm.BackgroundImage = WinFormsResourceService.GetBitmap("nback"); e.AlertForm.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; int l = 1; while (e.AlertForm.AlertInfo.Text.Length > 12 * l) { e.AlertForm.AlertInfo.Text = e.AlertForm.AlertInfo.Text.Insert(12 * l, " "); l++; } e.AlertForm.Size = new System.Drawing.Size(320, 300); }; alertControl.AlertClick += (sender, e) => { NotificationDTO data = (NotificationDTO)e.Info.Tag; MarkReaded(objectSpace, data); e.AlertForm.Tag = data; e.AlertForm.Disposed += AlertForm_Disposed; e.AlertForm.Close(); }; AlertManage manager = new AlertManage(alertControl, form); foreach (var notificationInfo in notificationInfos) { var pro = notificationInfo.GetType().GetProperty("NotificationRecipientId"); if (pro == null) { continue; } Guid notificationRecipientId = (Guid)pro.GetValue(notificationInfo, null); var notificationUser = (Katrin.Domain.Impl.NotificationRecipient)objectSpace.GetOrNew("NotificationRecipient", notificationRecipientId, null); notificationUser.NotificationStatus = "Opened"; manager.ShowAlert((NotificationDTO)notificationInfo); } objectSpace.SaveChanges(); }
public virtual void UpdateText() { if (this.codon != null) { this.Text = StringParser.Parse(this.codon.Properties["label"]); this.Glyph = WinFormsResourceService.GetBitmap(StringParser.Parse(this.codon.Properties["icon"])); } }
public override void LoadOptions() { base.LoadOptions(); CodeEditorOptions options = CodeEditorOptions.Instance; fontSelectionPanel.CurrentFont = WinFormsResourceService.LoadFont( options.FontFamily, (int)Math.Round(options.FontSize * 72.0 / 96.0)); }
void InitImageList() { try { diffResultListView.SmallImageList = diffResultsImageList; diffResultsImageList.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Error")); diffResultsImageList.Images.Add(WinFormsResourceService.GetBitmap("Icons.16x16.Question")); } catch (ResourceNotFoundException) { } }
/// <summary> /// 鼠标移动到图片按钮上时事件处理 /// </summary> private void ButtonImage_MouseMove(object sender, MouseEventArgs e) { if (sender is PictureBox) { PictureBox tmpPictureBox = (PictureBox)sender; tmpPictureBox.BackgroundImage = WinFormsResourceService.GetBitmap("NavBtnBG"); } }
/// <summary> /// 鼠标移动到导航条上的标题上时事件处理 /// </summary> private void TitleBar_MouseMove(object sender, MouseEventArgs e) { if (sender is System.Windows.Forms.Label) { System.Windows.Forms.Label tmpLabel = (System.Windows.Forms.Label)sender; tmpLabel.BackgroundImage = WinFormsResourceService.GetBitmap("ButtonBG02"); } }
public DefaultWorkbench() { Text = ResourceService.GetString("MainWindow.DialogName"); Icon = WinFormsResourceService.GetIcon("Icons.SharpDevelopIcon"); StartPosition = FormStartPosition.Manual; AllowDrop = true; }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.PnlLogo = new System.Windows.Forms.Panel(); this.PnlBackGround = new System.Windows.Forms.Panel(); this.PnlBottomLine = new System.Windows.Forms.Panel(); this.PnlTopLine = new System.Windows.Forms.Panel(); this.PnlBackGround.SuspendLayout(); this.SuspendLayout(); // // PnlLogo // this.PnlLogo.BackgroundImage = WinFormsResourceService.GetBitmap("DesignerLogo"); this.PnlLogo.Dock = System.Windows.Forms.DockStyle.Bottom; this.PnlLogo.Location = new System.Drawing.Point(0, 443); this.PnlLogo.Name = "PnlLogo"; this.PnlLogo.Size = new System.Drawing.Size(160, 50); this.PnlLogo.TabIndex = 0; // // PnlBackGround // this.PnlBackGround.BackgroundImage = WinFormsResourceService.GetBitmap("SideBarBG"); this.PnlBackGround.Controls.Add(this.PnlBottomLine); this.PnlBackGround.Controls.Add(this.PnlTopLine); this.PnlBackGround.Dock = System.Windows.Forms.DockStyle.Fill; this.PnlBackGround.Location = new System.Drawing.Point(0, 0); this.PnlBackGround.Name = "PnlBackGround"; this.PnlBackGround.Padding = new System.Windows.Forms.Padding(2, 0, 5, 0); this.PnlBackGround.Size = new System.Drawing.Size(160, 443); this.PnlBackGround.TabIndex = 1; // // PnlBottomLine // this.PnlBottomLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(153)))), ((int)(((byte)(153))))); this.PnlBottomLine.Location = new System.Drawing.Point(2, 400); this.PnlBottomLine.Name = "PnlBottomLine"; this.PnlBottomLine.Size = new System.Drawing.Size(153, 1); this.PnlBottomLine.TabIndex = 1; // // PnlTopLine // this.PnlTopLine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(153)))), ((int)(((byte)(153)))), ((int)(((byte)(153))))); this.PnlTopLine.Dock = System.Windows.Forms.DockStyle.Top; this.PnlTopLine.Location = new System.Drawing.Point(2, 0); this.PnlTopLine.Name = "PnlTopLine"; this.PnlTopLine.Size = new System.Drawing.Size(153, 1); this.PnlTopLine.TabIndex = 0; // // NavBar // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.Controls.Add(this.PnlBackGround); this.Controls.Add(this.PnlLogo); this.Name = "NavBar"; this.Size = new System.Drawing.Size(160, 493); this.SizeChanged += new System.EventHandler(this.NavBar_SizeChanged); this.PnlBackGround.ResumeLayout(false); this.ResumeLayout(false); }
protected virtual void InitializeView() { ImageList smalllist = new ImageList(); ImageList imglist = new ImageList(); smalllist.ColorDepth = ColorDepth.Depth32Bit; imglist.ColorDepth = ColorDepth.Depth32Bit; imglist.ImageSize = new Size(32, 32); smalllist.ImageSize = new Size(16, 16); smalllist.Images.Add(WinFormsResourceService.GetBitmap("Icons.32x32.EmptyProjectIcon")); imglist.Images.Add(WinFormsResourceService.GetBitmap("Icons.32x32.EmptyProjectIcon")); // load the icons and set their index from the image list in the hashtable int i = 0; Dictionary <string, int> tmp = new Dictionary <string, int>(icons); foreach (KeyValuePair <string, int> entry in icons) { Bitmap bitmap = IconService.GetBitmap(entry.Key); if (bitmap != null) { smalllist.Images.Add(bitmap); imglist.Images.Add(bitmap); tmp[entry.Key] = ++i; } else { LoggingService.Warn("NewProjectDialog: can't load bitmap " + entry.Key.ToString() + " using default"); } } // set the correct imageindex for all templates icons = tmp; foreach (TemplateItem item in alltemplates) { if (item.Template.Icon == null) { item.ImageIndex = 0; } else { item.ImageIndex = icons[item.Template.Icon]; } } templateListView.LargeImageList = imglist; templateListView.SmallImageList = smalllist; InsertCategories(null, categories); categoryTreeView.TreeViewNodeSorter = new TemplateCategoryComparer(); categoryTreeView.Sort(); string initialSelectedCategory = StringParser.Parse("C#\\${res:Templates.File.Categories.WindowsApplications}"); TreeViewHelper.ApplyViewStateString(PropertyService.Get("Dialogs.NewProjectDialog.CategoryTreeState", ""), categoryTreeView); categoryTreeView.SelectedNode = TreeViewHelper.GetNodeByPath(categoryTreeView, PropertyService.Get("Dialogs.NewProjectDialog.LastSelectedCategory", initialSelectedCategory)); }
void AddImages() { goButton.Image = WinFormsResourceService.GetBitmap("Icons.16x16.RunProgramIcon"); refreshButton.Image = WinFormsResourceService.GetBitmap("Icons.16x16.BrowserRefresh"); backButton.Image = WinFormsResourceService.GetBitmap("Icons.16x16.BrowserBefore"); forwardButton.Image = WinFormsResourceService.GetBitmap("Icons.16x16.BrowserAfter"); stopButton.Image = WinFormsResourceService.GetBitmap("Icons.16x16.BrowserCancel"); Icon = WinFormsResourceService.GetIcon("Icons.16x16.WebSearchIcon"); }
public static Bitmap GetBitmap(string name) { if (WinFormsResourceService.GetBitmap(name) != null) { return(WinFormsResourceService.GetBitmap(name)); } return(WinFormsResourceService.GetBitmap("Icons.16x16.MiscFiles")); }
public CurrentPanelPanel(WizardDialog wizard) { normalFont = WinFormsResourceService.LoadFont("SansSerif", 18, GraphicsUnit.World); this.wizard = wizard; Size = new Size(wizard.Width - 220, 30); ResizeRedraw = false; SetStyle(ControlStyles.UserPaint, true); }
public virtual void UpdateText() { if (this.codon != null) { this.Caption = StringParser.Parse(this.codon.Properties["label"]); this.Glyph = WinFormsResourceService.GetBitmap(StringParser.Parse(this.codon.Properties["icon"])); base.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonItemStyles.Large; this.ParseTooltips(); } }
public static Icon GetIcon(string name) { Icon icon = WinFormsResourceService.GetIcon(name); if (icon != null) { return(icon); } return(WinFormsResourceService.GetIcon("Icons.16x16.MiscFiles")); }
void _tabbedView_DocumentAdded(object sender, DocumentEventArgs e) { IWorkspace1 workspace = e.Document.Control as IWorkspace1; var icon = WinFormsResourceService.GetIcon(workspace.ObjectName.ToLower()); if (icon != null) { e.Document.Image = new Bitmap(icon.ToBitmap(), new Size(16, 16)); } }
private void InitNotificationState() { if (!(_listView.ObjectGridView is GridView)) { return; } GridView gridView = (GridView)_listView.ObjectGridView; var listView = (Katrin.Win.ListViewModule.ListViews.ListView)_listView; listView.Load += (sender, e) => { ImageList columnImageList = new ImageList(); columnImageList.Images.Add(WinFormsResourceService.GetBitmap("readcol")); columnImageList.Images.Add(WinFormsResourceService.GetBitmap("readcol")); columnImageList.Images.SetKeyName(0, ""); columnImageList.Images.SetKeyName(1, ""); gridView.Images = columnImageList; listView.DoubleClickCommand = null; foreach (GridColumn column in gridView.Columns) { if (column.FieldName == "NotificationStatus") { RepositoryItemImageComboBox imgCombox = new RepositoryItemImageComboBox(); ImageList imageList = new ImageList(); imageList.Images.Add(WinFormsResourceService.GetBitmap("notificationreaded")); imageList.Images.Add(WinFormsResourceService.GetBitmap("notification")); imageList.Images.SetKeyName(0, ""); imageList.Images.SetKeyName(1, ""); imgCombox.SmallImages = imageList; ImageComboBoxItem boxItem = new ImageComboBoxItem(); boxItem.Value = 0; boxItem.ImageIndex = 0; imgCombox.Items.Add(boxItem); ImageComboBoxItem boxItem2 = new ImageComboBoxItem(); boxItem2.Value = 1; boxItem2.ImageIndex = 1; imgCombox.Items.Add(boxItem2); column.ColumnEdit = imgCombox; } else if (column.FieldName == "CreatedOn") { column.DisplayFormat.FormatType = FormatType.DateTime; column.DisplayFormat.FormatString = "yyyy/M/d (dddd) HH:mm"; } } gridView.OptionsBehavior.AutoExpandAllGroups = true; Thread tread = new Thread(LoadData); tread.Start(); }; gridView.DoubleClick += gridView_DoubleClick; AuthorizationManager.NotificationList.DataSourceChanged -= NotificationList_DataSourceChanged; AuthorizationManager.NotificationList.DataSourceChanged += NotificationList_DataSourceChanged; }
public virtual void UpdateText() { if (this.codon != null) { this.Caption = StringParser.Parse(this.codon.Properties["title"]); this.Glyph = WinFormsResourceService.GetBitmap(StringParser.Parse(this.codon.Properties["icon"])); this.ParseTooltips(); this.ParseRibbonItemStyle(); this.ParseShortCut(); } }
static void GetImageList() { imageList = new ImageList(); imageList.ColorDepth = ColorDepth.Depth32Bit; AddBitmap(WinFormsResourceService.GetBitmap("Icons.16x16.Library"), 0.2f); AddBitmap(WinFormsResourceService.GetBitmap("Icons.16x16.NameSpace"), 0.4f); AddBitmap(WinFormsResourceService.GetBitmap("Icons.16x16.Class"), 0.15f); AddBitmap(WinFormsResourceService.GetBitmap("Icons.16x16.Method"), 0.2f); AddBitmap(WinFormsResourceService.GetBitmap("Icons.16x16.Property"), 0.2f); }
public void UpdateText() { if (this.codon != null) { this.Glyph = WinFormsResourceService.GetBitmap(StringParser.Parse(this.codon.Properties["icon"])); this.Caption = StringParser.Parse(this.codon.Properties["label"]); this.EditValue = StringParser.Parse(this.codon.Properties["defaultValue"]); this.ParsePropertys(); this.ParseTooltips(); } }
void SetIcon() { if (this.WorkbenchWindow != null) { System.Drawing.Icon icon = WinFormsResourceService.GetIcon(IconService.GetImageForFile(this.PrimaryFileName)); if (icon != null) { this.WorkbenchWindow.Icon = icon; } } }
/// <summary> /// Creates a new instance of the ToolNotFoundDialog. /// </summary> /// <param name="description">The description text</param> /// <param name="linkTarget">The link target (with leading http://)</param> /// <param name="icon">32x32 icon to display next to the description. May be null.</param> public ToolNotFoundDialog(string description, string linkTarget, Image icon) { // The InitializeComponent() call is required for Windows Forms designer support. InitializeComponent(); descriptionLabel.Text = description; linkLabel.Text = linkTarget; pictureBox.Image = icon ?? WinFormsResourceService.GetBitmap("Icons.32x32.Information"); this.Text = StringParser.Parse("${res:ICSharpCode.SharpDevelop.Gui.Dialogs.ToolNotFoundDialog.Title}"); okButton.Text = StringParser.Parse("${res:Global.OKButtonText}"); }
public ResourceList(ResourceEditorControl editor) { name.Text = ResourceService.GetString("Global.Name"); name.Width = 250; type.Text = ResourceService.GetString("ResourceEditor.ResourceEdit.TypeColumn"); type.Width = 170; content.Text = ResourceService.GetString("ResourceEditor.ResourceEdit.ContentColumn"); content.Width = 300; comment.Text = ResourceService.GetString("ResourceEditor.ResourceEdit.CommentColumn"); comment.Width = 300; Columns.AddRange(new ColumnHeader[] { name, type, content, comment }); FullRowSelect = true; AutoArrange = true; Alignment = ListViewAlignment.Left; View = View.Details; GridLines = true; LabelEdit = true; Dock = DockStyle.Fill; HideSelection = false; BorderStyle = System.Windows.Forms.BorderStyle.None; images.Images.Add(WinFormsResourceService.GetIcon("Icons.16x16.ResourceEditor.string")); images.Images.Add(WinFormsResourceService.GetIcon("Icons.16x16.ResourceEditor.bmp")); images.Images.Add(WinFormsResourceService.GetIcon("Icons.16x16.ResourceEditor.icon")); images.Images.Add(WinFormsResourceService.GetIcon("Icons.16x16.ResourceEditor.cursor")); images.Images.Add(WinFormsResourceService.GetIcon("Icons.16x16.ResourceEditor.bin")); images.Images.Add(WinFormsResourceService.GetIcon("Icons.16x16.ResourceEditor.obj")); SmallImageList = images; // Set up sorting: // User can sort the list by name and by type, // whereas sorting by type also implicitly sorts by name. IListViewItemComparer textComparer = new ListViewTextColumnComparer(); IListViewItemComparer typeNameComparer = new ListViewMultipleColumnsComparer(textComparer, 1, textComparer, 0); sorter = new ListViewItemSorter(this, new IListViewItemComparer[] { textComparer, typeNameComparer, null, null }); sorter.SortColumnIndex = 0; sorter.SortOrder = SortOrder.Ascending; ContextMenuStrip = MenuService.CreateContextMenu(editor, "/SharpDevelop/ResourceEditor/ResourceList/ContextMenu"); }
public virtual void UpdateText() { if (this.codon != null) { this.Glyph = WinFormsResourceService.GetBitmap(StringParser.Parse(this.codon.Properties["icon"])); this.Caption = StringParser.Parse(this.codon.Properties["label"]); this.EditValue = StringParser.Parse(this.codon.Properties["defaultValue"]); base.CaptionAlignment = HorzAlignment.Near; this.ParsePropertys(); this.ParseRibbonItemStyle(); this.ParseTooltips(); } }
public AboutSharpDevelopTabPage() { versionTextBox.Text = RevisionClass.Major + "." + RevisionClass.Minor + "." + RevisionClass.Build; buildTextBox.Text = RevisionClass.Revision; versionLabel.Location = new System.Drawing.Point(8, 8); versionLabel.Text = ResourceService.GetString("Dialog.About.label1Text"); versionLabel.Size = new System.Drawing.Size(64, 16); versionLabel.TabIndex = 1; Controls.Add(versionLabel); versionTextBox.Location = new System.Drawing.Point(64 + 8 + 4, 8); versionTextBox.ReadOnly = true; versionTextBox.TabIndex = 4; versionTextBox.Size = new System.Drawing.Size(48, 20); Controls.Add(versionTextBox); buildLabel.Location = new System.Drawing.Point(64 + 12 + 48 + 4, 8); buildLabel.Text = ResourceService.GetString("Dialog.About.label2Text"); buildLabel.Size = new System.Drawing.Size(48, 16); buildLabel.TabIndex = 2; Controls.Add(buildLabel); buildTextBox.Location = new System.Drawing.Point(64 + 12 + 48 + 4 + 48 + 4, 8); buildTextBox.ReadOnly = true; buildTextBox.TabIndex = 3; buildTextBox.Size = new System.Drawing.Size(72, 20); Controls.Add(buildTextBox); sponsorLabel.Location = new System.Drawing.Point(8, 34); sponsorLabel.Text = LicenseSentence; sponsorLabel.Size = new System.Drawing.Size(362, 24); sponsorLabel.TabIndex = 8; Controls.Add(sponsorLabel); versionInfoTextBox.Location = new System.Drawing.Point(8, 34 + 28); versionInfoTextBox.Size = new System.Drawing.Size(362, 100); versionInfoTextBox.Multiline = true; versionInfoTextBox.ReadOnly = true; versionInfoTextBox.WordWrap = false; versionInfoTextBox.Text = GetVersionInformationString(); versionInfoTextBox.ScrollBars = ScrollBars.Both; versionInfoTextBox.TabIndex = 9; versionInfoTextBox.Font = WinFormsResourceService.LoadFont("Courier New", 8); versionInfoTextBox.KeyDown += new KeyEventHandler(versionInfoTextBox_KeyDown); versionInfoTextBox.RightToLeft = RightToLeft.No; Controls.Add(versionInfoTextBox); Dock = DockStyle.Fill; }