or

public void CtrlDataGridList_CellFormatting(object sender, CellFormattingEventArgs e) { switch (e.Column.Name) { case "CommandColumnSearchMother": case "CommandColumnSearchFather": if (!string.IsNullOrWhiteSpace(e.CellElement.Text.Trim())) { e.CellElement.CustumizeLinkCell(); } break; case "CommandColumnOpen": if (string.IsNullOrEmpty(_openMessage)) { _openMessage = I18n.Term.I18nTerm.GetMessage("OPEN"); } e.CellElement.Text = _openMessage; e.CellElement.CustumizeLinkCell(); break; } }public static void CustumizeLinkCell(this GridCellElement cellElement) { cellElement.Font = new Font(SystemFonts.DialogFont, FontStyle.Underline); cellElement.ForeColor = Color.Blue; }
<plugin load="true" type="AssemblyName, ClassName" path="."> <Form> <Guid>d3b14ad1-e970-4445-9a27-2cedf211ca3a</Guid> <AllowedDock>All</AllowedDock> <CurrentDock>Bottom</CurrentDock> <CurrentMode>Inner</CurrentMode> <IsSelected>true</IsSelected> <IsAutoHide>false</IsAutoHide> <Width>400</Width> <Height>371</Height> <ParentGuid>1fbc51f7-f459-425b-884d-91a33602440c</ParentGuid> <Name>PTZ</Name> <Screen>1</Screen> </Form></plugin>foreach (SnapInBase plugin in BuildPluginHierarchy(this.plugins)){ try { if (plugin.MetaData.ContainsKey("Form") && plugin.MetaData["Form"] != null) { XmlNode n = plugin.MetaData["Form"]; plugin.Dock = DockStyle.Fill; DockPosition position = ParseXmlNode<DockPosition>(n, "DockPosition"); DockType dockType = ParseXmlNode<DockType>(n, "DockType"); Guid guid = ParseXmlNode<Guid>(n, "Guid"); int width = ParseXmlNode<Int32>(n, "Width", plugin.Width); int height = ParseXmlNode<Int32>(n, "Height", plugin.Height); bool isAutoHide = ParseXmlNode<Boolean>(n, "IsAutoHide"); Guid parentGuid = ParseXmlNode<Guid>(n, "ParentGuid"); int screen = ParseXmlNode<Int32>(n, "Screen", 1); if (screen == 1) { if (parentGuid != Guid.Empty) { HostWindow parent; if (this.controlCache.TryGetValue(parentGuid, out parent) == true) { HostWindow window = null; window = this.radDock1.DockControl(plugin, parent, position, dockType); if (isAutoHide == true) { this.radDock1.AutoHideWindow(window); } this.controlCache.Add(guid, window); } } else { var window = this.radDock1.DockControl(plugin, position, dockType); if (isAutoHide == true) { this.radDock1.AutoHideWindow(window); } this.controlCache.Add(guid, window); } } } else { logger.Error(string.Format("No form metadata for {0}", plugin.Name)); } } catch (Exception ex) { logger.Error(ex); }}private void InitializeComponent() { this.rdpvAppCodeFiles = new Telerik.WinControls.UI.RadPageView(); this.rdpvpBank = new Telerik.WinControls.UI.RadPageViewPage(); this.ctlManageBank1 = new CRS.Client.App.Documents.CodeFiles.ApplicationCodeFiles.BankDocuments.ctlManageBank(); ((System.ComponentModel.ISupportInitialize)(this.rdpvAppCodeFiles)).BeginInit(); this.rdpvAppCodeFiles.SuspendLayout(); this.rdpvpBank.SuspendLayout(); this.SuspendLayout(); // // rdpvAppCodeFiles // this.rdpvAppCodeFiles.Controls.Add(this.rdpvpBank); this.rdpvAppCodeFiles.Dock = System.Windows.Forms.DockStyle.Fill; this.rdpvAppCodeFiles.Location = new System.Drawing.Point(0, 0); this.rdpvAppCodeFiles.Name = "rdpvAppCodeFiles"; this.rdpvAppCodeFiles.SelectedPage = this.rdpvpBank; this.rdpvAppCodeFiles.Size = new System.Drawing.Size(846, 502); this.rdpvAppCodeFiles.TabIndex = 1; this.rdpvAppCodeFiles.Text = "radPageView1"; this.rdpvAppCodeFiles.SelectedPageChanged += new System.EventHandler(this.rdpvAppCodeFiles_SelectedPageChanged); ((Telerik.WinControls.UI.RadPageViewStripElement)(this.rdpvAppCodeFiles.GetChildAt(0))).StripAlignment = Telerik.WinControls.UI.StripViewAlignment.Right; ((Telerik.WinControls.UI.RadPageViewStripElement)(this.rdpvAppCodeFiles.GetChildAt(0))).ItemContentOrientation = Telerik.WinControls.UI.PageViewContentOrientation.Horizontal; // // rdpvpBank // this.rdpvpBank.Controls.Add(this.ctlManageBank1); this.rdpvpBank.Location = new System.Drawing.Point(10, 10); this.rdpvpBank.Name = "rdpvpBank"; this.rdpvpBank.Size = new System.Drawing.Size(750, 481); this.rdpvpBank.Text = "Bank"; // // ctlManageBank1 // this.ctlManageBank1.CurrentMode = CRS.Client.Automation.Documents.ctlDocumentUIBase.OperationMode.None; this.ctlManageBank1.Dock = System.Windows.Forms.DockStyle.Fill; this.ctlManageBank1.Document = null; this.ctlManageBank1.Location = new System.Drawing.Point(0, 0); this.ctlManageBank1.Name = "ctlManageBank1"; this.ctlManageBank1.Size = new System.Drawing.Size(750, 481); this.ctlManageBank1.TabIndex = 0; // ctlApplicationCodeFilesSwitchBoard // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.rdpvAppCodeFiles); this.Name = "ctlApplicationCodeFilesSwitchBoard"; this.Size = new System.Drawing.Size(846, 502); ((System.ComponentModel.ISupportInitialize)(this.rdpvAppCodeFiles)).EndInit(); this.rdpvAppCodeFiles.ResumeLayout(false); this.rdpvpBank.ResumeLayout(false); this.ResumeLayout(false); }