///<summary>Gets the TableSchema bound to a node in a grid's level tree.</summary> public static TableSchema GetSchema(this GridLevelNode node) { if (node == null) { throw new ArgumentNullException("node"); } var childPath = new Stack <string>(); while (!node.IsRootLevel) { childPath.Push(node.RelationName); node = node.Parent; } //Node now refers to the root node. var schema = GridGetter(node).MainView.GetSourceSchema(); while (childPath.Count > 0) { var cr = schema.ChildRelations[childPath.Pop()]; if (cr == null) { return(null); } schema = cr.ChildSchema; } return(schema); }
static void ApplyDataSource(SnapList list, GridLevelNode node) { if (!node.IsRootLevel) { list.DataMember = node.RelationName; } }
static void GenerateSnapListForCurrentLevel(GridLevelNode node, SnapDocument document, DocumentPosition position, int level) { GridView grid = node.LevelTemplate as GridView; if (grid == null || grid.VisibleColumns.Count == 0) { return; } SnapList list = document.CreateSnList(document.Range.End, grid.Name); list.BeginUpdate(); ApplyDataSource(list, node); ApplyGroups(list, grid); ApplySorting(list, grid); ApplyFilter(list, grid); Table table = null; SnapDocument template = null; MakeTemplate(list, grid, out table, out template); MakeReportFooter(list, grid); ApplyDetails(node, table, template, level); list.ApplyTableStyles(level); list.EndUpdate(); }
private static void donePrintDTL(GridLevelNode gln) { (gln.LevelTemplate as GridView).NormalView(); foreach (GridLevelNode gln1 in gln.Nodes) { donePrintDTL(gln1); } }
private void HideDetailView(GridView view) { GridLevelNode node = view.GridControl.LevelTree.Find(view); if (node.RelationName == "CT1") { node.OwnerCollection.Remove(node); } }
private void InitializeGrid() { grid = new GridControl(); view = new GridView(grid); detailView = new GridView(grid); detailNode = grid.LevelTree.Nodes.Add("SuppliersProducts", detailView); grid.Dock = DockStyle.Fill; this.Controls.Add(grid); }
private static void setPrintDTL(GridLevelNode gln) { (gln.LevelTemplate as GridView).ZoomView(); (gln.LevelTemplate as GridView).OptionsPrint.PrintDetails = true; (gln.LevelTemplate as GridView).OptionsPrint.AutoWidth = false; foreach (GridLevelNode gln1 in gln.Nodes) { setPrintDTL(gln1); } }
static void ApplyDetails(GridLevelNode node, Table table, SnapDocument template, int level) { if (node.HasChildren) { foreach (GridLevelNode child in node.Nodes) { TableRow detail = table.Rows.Append(); table.MergeCells(detail.FirstCell, detail.LastCell); GenerateSnapListForCurrentLevel(child, template, detail.Range.Start, level + 1); } } }
/// <summary> /// Den View für einen GridNode austauschen. /// </summary> public static void ChangeView(GridControl grid, GridLevelNode node, BaseView newView) { // Dem Node den neuen View zuweisen. if (node.IsRootLevel) { grid.MainView = newView; } else { node.LevelTemplate = newView; // Für Subview das Template ändern. } }
/// <summary>转换函数 /// /// </summary> /// <param name="Grid"></param> /// <param name="node"></param> /// <param name="viewName"></param> /// <param name="removeOld"></param> protected virtual void ChangeView(GridControl Grid, GridLevelNode node, string viewName, bool removeOld) { GridLevelNode levelNode = node; if (levelNode == null) { return; } BaseView view = Grid.CreateView(viewName); Grid.ViewCollection.Add(view); BaseView prev = levelNode.LevelTemplate; MemoryStream ms = null; if (prev != null) { ms = new MemoryStream(); prev.SaveLayoutToStream(ms, OptionsLayoutBase.FullLayout); } if (node.IsRootLevel) { prev = Grid.MainView; Grid.MainView = view; } else { levelNode.LevelTemplate = view; } if (ms != null) { if (removeOld && prev != null) { prev.Dispose(); } ms.Seek(0, SeekOrigin.Begin); view.RestoreLayoutFromStream(ms, OptionsLayoutBase.FullLayout); ms.Close(); MethodInfo mi = view.GetType().GetMethod("DesignerMakeColumnsVisible", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance); if (mi != null) { mi.Invoke(view, null); } if (prev != null) { AssignViewProperties(prev, view); } } if (removeOld && prev != null) { prev.Dispose(); } }
public frmBC_BangGiaChiTiet() { InitializeComponent(); grvBangGia = new GtidXtraGridView(grcBangGia); grvBangGia.OptionsView.ColumnAutoWidth = false; grvBangGia.OptionsView.ShowAutoFilterRow = true; grvBangGia.OptionsView.ShowViewCaption = true; grvChinhSach = new GtidXtraGridView(grcBangGia); grvChinhSach.OptionsView.ColumnAutoWidth = false; grvChinhSach.OptionsView.ShowGroupPanel = false; grvSanPhamKem = new GtidXtraGridView(grcBangGia); grvSanPhamKem.OptionsView.ColumnAutoWidth = false; grvSanPhamKem.OptionsView.ShowGroupPanel = false; grvSieuThi = new GtidXtraGridView(grcBangGia); grvSieuThi.OptionsView.ColumnAutoWidth = false; grvSieuThi.OptionsView.ShowGroupPanel = false; grvDoiTuong = new GtidXtraGridView(grcBangGia); grvDoiTuong.OptionsView.ColumnAutoWidth = false; grvDoiTuong.OptionsView.ShowGroupPanel = false; grvKhuyenMai = new GtidXtraGridView(grcBangGia); grvKhuyenMai.OptionsView.ColumnAutoWidth = false; grvKhuyenMai.OptionsView.ShowGroupPanel = false; grvThanhToan = new GtidXtraGridView(grcBangGia); grvThanhToan.OptionsView.ColumnAutoWidth = false; grvThanhToan.OptionsView.ShowGroupPanel = false; grvThoiGian = new GtidXtraGridView(grcBangGia); grvThoiGian.OptionsView.ColumnAutoWidth = false; grvThoiGian.OptionsView.ShowGroupPanel = false; grcBangGia.MainView = grvBangGia; grcBangGia.LevelTree.RelationName = "BangGia"; chinhSachNode = grcBangGia.LevelTree.Nodes.Add("ChinhSach", grvChinhSach); chinhSachNode.Nodes.Add("SanPhamKem", grvSanPhamKem); chinhSachNode.Nodes.Add("SieuThi", grvSieuThi); chinhSachNode.Nodes.Add("DoiTuong", grvDoiTuong); chinhSachNode.Nodes.Add("KhuyenMai", grvKhuyenMai); chinhSachNode.Nodes.Add("ThanhToan", grvThanhToan); chinhSachNode.Nodes.Add("ThoiGian", grvThoiGian); grvBangGia.MasterRowGetRelationName += grvBangGia_MasterRowGetRelationName; grvBangGia.MasterRowGetRelationDisplayCaption += grvBangGia_MasterRowGetRelationDisplayCaption; grvBangGia.MasterRowGetRelationCount += grvBangGia_MasterRowGetRelationCount; grvBangGia.MasterRowGetChildList += grvBangGia_MasterRowGetChildList; grvBangGia.MasterRowEmpty += grvBangGia_MasterRowEmpty; grvChinhSach.MasterRowGetRelationName += grvChinhSach_MasterRowGetRelationName; grvChinhSach.MasterRowGetRelationDisplayCaption += grvChinhSach_MasterRowGetRelationDisplayCaption; grvChinhSach.MasterRowGetRelationCount += grvChinhSach_MasterRowGetRelationCount; grvChinhSach.MasterRowGetChildList += grvChinhSach_MasterRowGetChildList; grvChinhSach.MasterRowEmpty += grvChinhSach_MasterRowEmpty; }
protected void InitMDBData() { SqlConnection conText = new SqlConnection(DbAccess.connSql); try { // conText.Open(); // string adsql = @" select KpiYeartime+'Äê' KpiYeartime,businessType ,indicatorsName,checkDepartment ,undertakeLevel ,qualityMan ,dataSource from QMS_KPIDataSource //group by KpiYeartime, businessType ,indicatorsName,checkDepartment ,undertakeLevel,qualityMan ,dataSource "; // SqlDataAdapter adda = new SqlDataAdapter(adsql, conText); // adda.Fill(ds, "adtable"); // string desql = @" select kpiMonthtime,indicatorsName ,lastYearkpiData ,lastYearMonthkpiData ,thisYearkpiData ,kpiData ,ifComplete ,mathFormula ,Remark // from QMS_KPIDataSource "; // SqlDataAdapter deda = new SqlDataAdapter(desql, conText); // deda.Fill(ds, "detable"); conText.Open(); string adsql = @" select KpiYeartime+'Äê' KpiYeartime,businessType ,indicatorsName,checkDepartment ,undertakeLevel ,qualityMan ,dataSource from QMS_KPIDataSource group by KpiYeartime, businessType ,indicatorsName,checkDepartment ,undertakeLevel,qualityMan ,dataSource " ; SqlDataAdapter adda = new SqlDataAdapter(adsql, conText); adda.Fill(ds, "adtable"); string desql = @" select kpiMonthtime,indicatorsName ,lastYearkpiData ,lastYearMonthkpiData ,thisYearkpiData ,kpiData ,ifComplete ,mathFormula ,Remark from QMS_KPIDataSource " ; adda = new SqlDataAdapter(desql, conText); adda.Fill(ds, "detable"); } catch { conText.Close(); } ds.Relations.Add("adtable", ds.Tables["adtable"].Columns["indicatorsName"], ds.Tables["detable"].Columns["indicatorsName"], false); var node = new GridLevelNode(); node.LevelTemplate = gridView; node.RelationName = "adtable"; gridControl.LevelTree.Nodes.AddRange(new GridLevelNode[] { node }); gridControl.DataSource = ds.Tables["adtable"]; }
private void fViewSumRFM_Load(object sender, EventArgs e) { ds = db.GetDataSetByStore1("GetMTLSX", new string[] { }, new object[] { }); if (ds == null) { return; } if (ds.Tables.Count != 3) { return; } tb = ds.Tables[0]; tb2 = ds.Tables[1]; tb3 = ds.Tables[2]; tb.PrimaryKey = new DataColumn[] { tb.Columns["DTLSXID"] }; tb2.PrimaryKey = new DataColumn[] { tb2.Columns["CTLSXID"] }; tb3.PrimaryKey = new DataColumn[] { tb3.Columns["KTLSXID"] }; r1 = new DataRelation("CT1", tb.Columns["DTLSXID"], tb2.Columns["DTID"]); r2 = new DataRelation("KT1", tb.Columns["DTLSXID"], tb3.Columns["DTID"]); ds.Relations.Add(r1); ds.Relations.Add(r2); _bindingSource.DataSource = ds; _bindingSource.DataMember = tb.TableName; GridLevelNode node1 = gridControl1.LevelTree.Nodes[0]; gridControl1.DataSource = _bindingSource; node1.RelationName = r1.RelationName; gridControl4.DataSource = _bindingSource; gridControl4.DataMember = r2.RelationName;//"KT1"; tb1 = tb.Clone(); gridControl2.DataSource = tb1; tb4 = tb2.Clone(); tb5 = tb3.Clone(); gridControl3.DataSource = tb5; gridControl1.MouseDown += gridControl1_MouseDown; gridControl1.MouseMove += gridControl1_MouseMove; gridControl2.DragEnter += gridControl2_DragEnter; gridControl2.DragDrop += gridControl2_DragDrop; gridControl2.MouseDown += gridControl2_MouseDown; gridControl2.MouseMove += gridControl2_MouseMove; gridControl1.DragEnter += gridControl1_DragEnter; gridControl1.DragDrop += gridControl1_DragDrop; gridView2.RowCountChanged += gridView2_RowCountChanged; //HideDetailView(gridView1); }
private void GeneralForms_Load(object sender, EventArgs e) { //GridControl grid = gridControl1; //GridLevelNode node1 = grid.LevelTree.Nodes.Add("Regalias", gridView1); if (ID_Reporte == 3) { } else { gridView1.SetMasterRowExpandedEx(0, 0, true); gridView1.SetMasterRowExpanded(1, true); GridLevelNode node1 = gridControl1.LevelTree.Nodes.Add("Regalias", gridView1); GridLevelNode node11 = node1.Nodes.Add("Regalias Detalle", gridView2); //node1.Nodes.Add(node11); } //GridLevelNode node2 = grid.LevelTree.Nodes.Add("Traspaso Detalle", gridView3); gridView1.OptionsView.ColumnAutoWidth = false; gridView1.OptionsView.RowAutoHeight = true; gridView1.OptionsBehavior.Editable = true; //gridView1.OptionsView.ShowFooter = true; gridView1.BestFitColumns(); empresa = Login.empresa.ToUpper(); btexcel.Click += new EventHandler(btexcel_click); btupdate.Click += new EventHandler(btupdate_click); filterbt.Click += new EventHandler(filterbt_click); gridView1.OptionsView.ShowFooter = true; if (ID_Reporte == 3) { datePickerini.Value = DateTime.Now.Date.AddDays(-1).AddHours(17); } load_ojetos_toostrip(); //gridView1.CollapseAllDetails(); // works //gridView1.SetMasterRowExpanded(0, false); // works groupControl1.Text = Reportenombre; }
internal GridDetailInfo[] GetDetailInfo(int rowHandle, bool shortInfo) { if (!AllowMasterDetail || GridControl == null) { return(null); } GridLevelNode levelNode = GetLevelNode(); if (GridControl.ShowOnlyPredefinedDetails && (levelNode == null || !levelNode.HasChildren)) { return(null); } ArrayList details = new ArrayList(); if (GridControl.ShowOnlyPredefinedDetails) { foreach (GridLevelNode node in levelNode.Nodes) { int id = GetRelationIndex(rowHandle, node.RelationName); if (id < -1) { continue; } details.Add(new GridDetailInfo(id, node.RelationName, GetRelationDisplayName(rowHandle, id))); } } else { int count = GetRelationCount(rowHandle); for (int n = 0; n < count; n++) { string name = GetRelationName(rowHandle, n); details.Add(new GridDetailInfo(n, name, shortInfo ? name : GetRelationDisplayName(rowHandle, n))); } } if (details.Count == 0) { return(null); } return(details.ToArray(typeof(GridDetailInfo)) as GridDetailInfo[]); }
private void fViewSumRFM_Load(object sender, EventArgs e) { ds = db.GetDataSetByStore1("GetMTLSX4NVL", new string[] { "@MayIn" }, new object[] { MayIn }); if (ds == null) { return; } if (ds.Tables.Count != 3) { return; } tb = ds.Tables[0]; tb2 = ds.Tables[1]; tb3 = ds.Tables[2]; tb.PrimaryKey = new DataColumn[] { tb.Columns["DTLSXID"] }; tb2.PrimaryKey = new DataColumn[] { tb2.Columns["CTLSXID"] }; tb3.PrimaryKey = new DataColumn[] { tb3.Columns["KTLSXID"] }; r1 = new DataRelation("CT1", tb.Columns["DTLSXID"], tb2.Columns["DTID"]); r2 = new DataRelation("KT1", tb.Columns["DTLSXID"], tb3.Columns["DTID"]); tb.ColumnChanged += Tb_ColumnChanged; ds.Relations.Add(r1); ds.Relations.Add(r2); _bindingSource.DataSource = ds; _bindingSource.DataMember = tb.TableName; GridLevelNode node1 = gridControl1.LevelTree.Nodes[0]; gridControl1.DataSource = _bindingSource; node1.RelationName = r1.RelationName; gridControl4.DataSource = _bindingSource; gridControl4.DataMember = r2.RelationName;//"KT1"; repositoryItemCheckEdit1.EditValueChanging += RepositoryItemCheckEdit1_EditValueChanging; tb4 = tb2.Clone(); //HideDetailView(gridView1); }
private void Form1_Load(object sender, EventArgs e) { customersTableAdapter1.Fill(nwindDataSet1.Customers); ordersTableAdapter1.Fill(nwindDataSet1.Orders); GridView masterGridView = new GridView(); GridView detailView = new GridView(); GridLevelNode gridLevelNode2 = new GridLevelNode(); gridLevelNode2.LevelTemplate = detailView; gridLevelNode2.RelationName = "CustomersOrders"; GridControl gridControl = new GridControl(); detailView.DataSourceChanged += new EventHandler(detailView_DataSourceChanged); detailView.GridControl = gridControl; gridControl.ViewCollection.Add(masterGridView); gridControl.LevelTree.Nodes.Add(gridLevelNode2); gridControl.MainView = masterGridView; gridControl.DataSource = nwindDataSet1.Customers; Controls.Add(gridControl); gridControl.Dock = DockStyle.Top; masterGridView.FocusedRowChanged += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(masterGridView_FocusedRowChanged); }
private void InitializeComponent() { GridLevelNode node = new GridLevelNode(); this.gvFriend_Member = new GridView(); this.gcFriend_Icon = new GridColumn(); this.repositoryItemPictureEdit4 = new RepositoryItemPictureEdit(); this.gcFriend_Text = new GridColumn(); this.gpgGridFriends = new GPGChatGrid(); this.gvFriend_Container = new GridView(); this.gcFriend_Title = new GridColumn(); this.gcFriend_Count = new GridColumn(); this.repositoryItemTextEdit2 = new RepositoryItemTextEdit(); this.splitContainer1 = new SplitContainer(); this.splitContainer2 = new SplitContainer(); this.gpgLinkLabelClan = new SkinLabel(); this.gpgLabelName = new SkinLabel(); this.pictureBoxClanIcon = new PictureBox(); this.pictureBoxClanRank = new PictureBox(); this.pictureBoxPlayerIcon = new PictureBox(); this.gpgPanelStats = new GPGPanel(); this.gpgPanel2 = new GPGPanel(); this.gpgStatRow3 = new GPGStatRow(); this.gpgStatRow2 = new GPGStatRow(); this.gpgLabelDescription = new GPGLabel(); this.gpgStatRow1 = new GPGStatRow(); this.backLabelStats = new SkinLabel(); this.gpgPanelEdit = new SplitContainer(); this.skinButtonEdit = new SkinButton(); this.skinButtonCancelEdit = new SkinButton(); this.skinButtonSaveEdit = new SkinButton(); this.gpgTextAreaDescription = new GPGTextArea(); this.splitContainerFriends = new SplitContainer(); this.backLabelFriends = new SkinLabel(); this.gpgScrollPanelFriends = new GPGScrollPanel(); this.skinButtonClose = new SkinButton(); this.skinButtonNext = new SkinButton(); this.skinButtonLast = new SkinButton(); this.gpgContextMenuChat = new GPGContextMenu(); this.ciChat_WhisperPlayer = new MenuItem(); this.ciChat_WebStats = new MenuItem(); this.ciChat_ViewPlayer = new MenuItem(); this.ciChat_IgnorePlayer = new MenuItem(); this.ciChat_UnignorePlayer = new MenuItem(); this.menuItem10 = new MenuItem(); this.ciChat_InviteFriend = new MenuItem(); this.ciChat_RemoveFriend = new MenuItem(); this.menuItem8 = new MenuItem(); this.ciChat_InviteToClan = new MenuItem(); this.ciChat_RequestClanInvite = new MenuItem(); this.ciChat_ViewClan = new MenuItem(); this.gvFriend_Member.BeginInit(); this.repositoryItemPictureEdit4.BeginInit(); this.gpgGridFriends.BeginInit(); this.gvFriend_Container.BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); this.splitContainer2.SuspendLayout(); this.gpgLabelName.SuspendLayout(); ((ISupportInitialize) this.pictureBoxClanIcon).BeginInit(); ((ISupportInitialize) this.pictureBoxClanRank).BeginInit(); ((ISupportInitialize) this.pictureBoxPlayerIcon).BeginInit(); this.gpgPanelStats.SuspendLayout(); this.gpgPanel2.SuspendLayout(); this.gpgPanelEdit.Panel1.SuspendLayout(); this.gpgPanelEdit.Panel2.SuspendLayout(); this.gpgPanelEdit.SuspendLayout(); this.gpgTextAreaDescription.Properties.BeginInit(); this.splitContainerFriends.Panel1.SuspendLayout(); this.splitContainerFriends.Panel2.SuspendLayout(); this.splitContainerFriends.SuspendLayout(); this.gpgScrollPanelFriends.SuspendLayout(); base.SuspendLayout(); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; base.ttDefault.DefaultController.ToolTipLocation = ToolTipLocation.RightTop; this.gvFriend_Member.Appearance.ColumnFilterButton.BackColor = Color.Black; this.gvFriend_Member.Appearance.ColumnFilterButton.BackColor2 = Color.FromArgb(20, 20, 20); this.gvFriend_Member.Appearance.ColumnFilterButton.BorderColor = Color.Black; this.gvFriend_Member.Appearance.ColumnFilterButton.ForeColor = Color.Gray; this.gvFriend_Member.Appearance.ColumnFilterButton.Options.UseBackColor = true; this.gvFriend_Member.Appearance.ColumnFilterButton.Options.UseBorderColor = true; this.gvFriend_Member.Appearance.ColumnFilterButton.Options.UseForeColor = true; this.gvFriend_Member.Appearance.ColumnFilterButtonActive.BackColor = Color.FromArgb(20, 20, 20); this.gvFriend_Member.Appearance.ColumnFilterButtonActive.BackColor2 = Color.FromArgb(0x4e, 0x4e, 0x4e); this.gvFriend_Member.Appearance.ColumnFilterButtonActive.BorderColor = Color.FromArgb(20, 20, 20); this.gvFriend_Member.Appearance.ColumnFilterButtonActive.ForeColor = Color.Blue; this.gvFriend_Member.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true; this.gvFriend_Member.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true; this.gvFriend_Member.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true; this.gvFriend_Member.Appearance.Empty.BackColor = Color.Black; this.gvFriend_Member.Appearance.Empty.Options.UseBackColor = true; this.gvFriend_Member.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Member.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90); this.gvFriend_Member.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Member.Appearance.FilterCloseButton.ForeColor = Color.Black; this.gvFriend_Member.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Member.Appearance.FilterCloseButton.Options.UseBackColor = true; this.gvFriend_Member.Appearance.FilterCloseButton.Options.UseBorderColor = true; this.gvFriend_Member.Appearance.FilterCloseButton.Options.UseForeColor = true; this.gvFriend_Member.Appearance.FilterPanel.BackColor = Color.Black; this.gvFriend_Member.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Member.Appearance.FilterPanel.ForeColor = Color.White; this.gvFriend_Member.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Member.Appearance.FilterPanel.Options.UseBackColor = true; this.gvFriend_Member.Appearance.FilterPanel.Options.UseForeColor = true; this.gvFriend_Member.Appearance.FixedLine.BackColor = Color.FromArgb(0x3a, 0x3a, 0x3a); this.gvFriend_Member.Appearance.FixedLine.Options.UseBackColor = true; this.gvFriend_Member.Appearance.FocusedCell.BackColor = Color.Black; this.gvFriend_Member.Appearance.FocusedCell.Font = new Font("Tahoma", 10f); this.gvFriend_Member.Appearance.FocusedCell.ForeColor = Color.White; this.gvFriend_Member.Appearance.FocusedCell.Options.UseBackColor = true; this.gvFriend_Member.Appearance.FocusedCell.Options.UseFont = true; this.gvFriend_Member.Appearance.FocusedCell.Options.UseForeColor = true; this.gvFriend_Member.Appearance.FocusedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.gvFriend_Member.Appearance.FocusedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190); this.gvFriend_Member.Appearance.FocusedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvFriend_Member.Appearance.FocusedRow.ForeColor = Color.White; this.gvFriend_Member.Appearance.FocusedRow.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Member.Appearance.FocusedRow.Options.UseBackColor = true; this.gvFriend_Member.Appearance.FocusedRow.Options.UseFont = true; this.gvFriend_Member.Appearance.FocusedRow.Options.UseForeColor = true; this.gvFriend_Member.Appearance.FooterPanel.BackColor = Color.Black; this.gvFriend_Member.Appearance.FooterPanel.BorderColor = Color.Black; this.gvFriend_Member.Appearance.FooterPanel.Font = new Font("Tahoma", 10f); this.gvFriend_Member.Appearance.FooterPanel.ForeColor = Color.White; this.gvFriend_Member.Appearance.FooterPanel.Options.UseBackColor = true; this.gvFriend_Member.Appearance.FooterPanel.Options.UseBorderColor = true; this.gvFriend_Member.Appearance.FooterPanel.Options.UseFont = true; this.gvFriend_Member.Appearance.FooterPanel.Options.UseForeColor = true; this.gvFriend_Member.Appearance.GroupButton.BackColor = Color.Black; this.gvFriend_Member.Appearance.GroupButton.BorderColor = Color.Black; this.gvFriend_Member.Appearance.GroupButton.ForeColor = Color.White; this.gvFriend_Member.Appearance.GroupButton.Options.UseBackColor = true; this.gvFriend_Member.Appearance.GroupButton.Options.UseBorderColor = true; this.gvFriend_Member.Appearance.GroupButton.Options.UseForeColor = true; this.gvFriend_Member.Appearance.GroupFooter.BackColor = Color.FromArgb(10, 10, 10); this.gvFriend_Member.Appearance.GroupFooter.BorderColor = Color.FromArgb(10, 10, 10); this.gvFriend_Member.Appearance.GroupFooter.ForeColor = Color.White; this.gvFriend_Member.Appearance.GroupFooter.Options.UseBackColor = true; this.gvFriend_Member.Appearance.GroupFooter.Options.UseBorderColor = true; this.gvFriend_Member.Appearance.GroupFooter.Options.UseForeColor = true; this.gvFriend_Member.Appearance.GroupPanel.BackColor = Color.Black; this.gvFriend_Member.Appearance.GroupPanel.BackColor2 = Color.White; this.gvFriend_Member.Appearance.GroupPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvFriend_Member.Appearance.GroupPanel.ForeColor = Color.White; this.gvFriend_Member.Appearance.GroupPanel.Options.UseBackColor = true; this.gvFriend_Member.Appearance.GroupPanel.Options.UseFont = true; this.gvFriend_Member.Appearance.GroupPanel.Options.UseForeColor = true; this.gvFriend_Member.Appearance.GroupRow.BackColor = Color.Gray; this.gvFriend_Member.Appearance.GroupRow.Font = new Font("Tahoma", 10f); this.gvFriend_Member.Appearance.GroupRow.ForeColor = Color.White; this.gvFriend_Member.Appearance.GroupRow.Options.UseBackColor = true; this.gvFriend_Member.Appearance.GroupRow.Options.UseFont = true; this.gvFriend_Member.Appearance.GroupRow.Options.UseForeColor = true; this.gvFriend_Member.Appearance.HeaderPanel.BackColor = Color.Black; this.gvFriend_Member.Appearance.HeaderPanel.BorderColor = Color.Black; this.gvFriend_Member.Appearance.HeaderPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvFriend_Member.Appearance.HeaderPanel.ForeColor = Color.White; this.gvFriend_Member.Appearance.HeaderPanel.Options.UseBackColor = true; this.gvFriend_Member.Appearance.HeaderPanel.Options.UseBorderColor = true; this.gvFriend_Member.Appearance.HeaderPanel.Options.UseFont = true; this.gvFriend_Member.Appearance.HeaderPanel.Options.UseForeColor = true; this.gvFriend_Member.Appearance.HideSelectionRow.BackColor = Color.Gray; this.gvFriend_Member.Appearance.HideSelectionRow.Font = new Font("Tahoma", 10f); this.gvFriend_Member.Appearance.HideSelectionRow.ForeColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Member.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvFriend_Member.Appearance.HideSelectionRow.Options.UseFont = true; this.gvFriend_Member.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvFriend_Member.Appearance.HorzLine.BackColor = Color.Yellow; this.gvFriend_Member.Appearance.HorzLine.Options.UseBackColor = true; this.gvFriend_Member.Appearance.Preview.BackColor = Color.White; this.gvFriend_Member.Appearance.Preview.Font = new Font("Tahoma", 10f); this.gvFriend_Member.Appearance.Preview.ForeColor = Color.Purple; this.gvFriend_Member.Appearance.Preview.Options.UseBackColor = true; this.gvFriend_Member.Appearance.Preview.Options.UseFont = true; this.gvFriend_Member.Appearance.Preview.Options.UseForeColor = true; this.gvFriend_Member.Appearance.Row.BackColor = Color.Black; this.gvFriend_Member.Appearance.Row.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvFriend_Member.Appearance.Row.ForeColor = Color.White; this.gvFriend_Member.Appearance.Row.Options.UseBackColor = true; this.gvFriend_Member.Appearance.Row.Options.UseFont = true; this.gvFriend_Member.Appearance.Row.Options.UseForeColor = true; this.gvFriend_Member.Appearance.RowSeparator.BackColor = Color.White; this.gvFriend_Member.Appearance.RowSeparator.BackColor2 = Color.White; this.gvFriend_Member.Appearance.RowSeparator.Options.UseBackColor = true; this.gvFriend_Member.Appearance.SelectedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.gvFriend_Member.Appearance.SelectedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190); this.gvFriend_Member.Appearance.SelectedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvFriend_Member.Appearance.SelectedRow.ForeColor = Color.White; this.gvFriend_Member.Appearance.SelectedRow.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Member.Appearance.SelectedRow.Options.UseBackColor = true; this.gvFriend_Member.Appearance.SelectedRow.Options.UseFont = true; this.gvFriend_Member.Appearance.SelectedRow.Options.UseForeColor = true; this.gvFriend_Member.Appearance.TopNewRow.Font = new Font("Tahoma", 10f); this.gvFriend_Member.Appearance.TopNewRow.ForeColor = Color.White; this.gvFriend_Member.Appearance.TopNewRow.Options.UseFont = true; this.gvFriend_Member.Appearance.TopNewRow.Options.UseForeColor = true; this.gvFriend_Member.Appearance.VertLine.BackColor = Color.Yellow; this.gvFriend_Member.Appearance.VertLine.Options.UseBackColor = true; this.gvFriend_Member.BorderStyle = BorderStyles.NoBorder; this.gvFriend_Member.Columns.AddRange(new GridColumn[] { this.gcFriend_Icon, this.gcFriend_Text }); this.gvFriend_Member.FocusRectStyle = DrawFocusRectStyle.None; this.gvFriend_Member.GridControl = this.gpgGridFriends; this.gvFriend_Member.HorzScrollVisibility = ScrollVisibility.Never; this.gvFriend_Member.LevelIndent = 0; this.gvFriend_Member.Name = "gvFriend_Member"; this.gvFriend_Member.OptionsBehavior.SmartVertScrollBar = false; this.gvFriend_Member.OptionsLayout.Columns.AddNewColumns = false; this.gvFriend_Member.OptionsLayout.Columns.RemoveOldColumns = false; this.gvFriend_Member.OptionsLayout.Columns.StoreLayout = false; this.gvFriend_Member.OptionsLayout.StoreDataSettings = false; this.gvFriend_Member.OptionsLayout.StoreVisualOptions = false; this.gvFriend_Member.OptionsSelection.EnableAppearanceFocusedCell = false; this.gvFriend_Member.OptionsView.ShowColumnHeaders = false; this.gvFriend_Member.OptionsView.ShowDetailButtons = false; this.gvFriend_Member.OptionsView.ShowGroupPanel = false; this.gvFriend_Member.OptionsView.ShowHorzLines = false; this.gvFriend_Member.OptionsView.ShowIndicator = false; this.gvFriend_Member.OptionsView.ShowPreviewLines = false; this.gvFriend_Member.OptionsView.ShowVertLines = false; this.gvFriend_Member.ScrollStyle = ScrollStyleFlags.None; this.gvFriend_Member.VertScrollVisibility = ScrollVisibility.Never; this.gvFriend_Member.RowCountChanged += new EventHandler(this.gvFriend_Member_RowCountChanged); this.gcFriend_Icon.Caption = "gcIcon"; this.gcFriend_Icon.ColumnEdit = this.repositoryItemPictureEdit4; this.gcFriend_Icon.FieldName = "Icon"; this.gcFriend_Icon.Name = "gcFriend_Icon"; this.gcFriend_Icon.OptionsColumn.AllowEdit = false; this.gcFriend_Icon.OptionsColumn.AllowSize = false; this.gcFriend_Icon.OptionsColumn.FixedWidth = true; this.gcFriend_Icon.Visible = true; this.gcFriend_Icon.VisibleIndex = 0; this.gcFriend_Icon.Width = 40; this.repositoryItemPictureEdit4.Name = "repositoryItemPictureEdit4"; this.repositoryItemPictureEdit4.SizeMode = PictureSizeMode.Stretch; this.gcFriend_Text.Caption = "gcText"; this.gcFriend_Text.FieldName = "Text"; this.gcFriend_Text.Name = "gcFriend_Text"; this.gcFriend_Text.OptionsColumn.AllowEdit = false; this.gcFriend_Text.Visible = true; this.gcFriend_Text.VisibleIndex = 1; this.gpgGridFriends.CustomizeStyle = false; this.gpgGridFriends.Dock = DockStyle.Top; this.gpgGridFriends.EmbeddedNavigator.Name = ""; this.gpgGridFriends.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gpgGridFriends.IgnoreMouseWheel = true; node.LevelTemplate = this.gvFriend_Member; node.RelationName = "Members"; this.gpgGridFriends.LevelTree.Nodes.AddRange(new GridLevelNode[] { node }); this.gpgGridFriends.Location = new Point(0, 0); this.gpgGridFriends.LookAndFeel.SkinName = "London Liquid Sky"; this.gpgGridFriends.LookAndFeel.UseDefaultLookAndFeel = false; this.gpgGridFriends.MainView = this.gvFriend_Container; this.gpgGridFriends.Name = "gpgGridFriends"; this.gpgGridFriends.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemPictureEdit4, this.repositoryItemTextEdit2 }); this.gpgGridFriends.ShowOnlyPredefinedDetails = true; this.gpgGridFriends.Size = new Size(0xbc, 0x105); this.gpgGridFriends.TabIndex = 5; this.gpgGridFriends.ViewCollection.AddRange(new BaseView[] { this.gvFriend_Container, this.gvFriend_Member }); this.gvFriend_Container.Appearance.ColumnFilterButton.BackColor = Color.Black; this.gvFriend_Container.Appearance.ColumnFilterButton.BackColor2 = Color.FromArgb(20, 20, 20); this.gvFriend_Container.Appearance.ColumnFilterButton.BorderColor = Color.Black; this.gvFriend_Container.Appearance.ColumnFilterButton.ForeColor = Color.Gray; this.gvFriend_Container.Appearance.ColumnFilterButton.Options.UseBackColor = true; this.gvFriend_Container.Appearance.ColumnFilterButton.Options.UseBorderColor = true; this.gvFriend_Container.Appearance.ColumnFilterButton.Options.UseForeColor = true; this.gvFriend_Container.Appearance.ColumnFilterButtonActive.BackColor = Color.FromArgb(20, 20, 20); this.gvFriend_Container.Appearance.ColumnFilterButtonActive.BackColor2 = Color.FromArgb(0x4e, 0x4e, 0x4e); this.gvFriend_Container.Appearance.ColumnFilterButtonActive.BorderColor = Color.FromArgb(20, 20, 20); this.gvFriend_Container.Appearance.ColumnFilterButtonActive.ForeColor = Color.Blue; this.gvFriend_Container.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true; this.gvFriend_Container.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true; this.gvFriend_Container.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true; this.gvFriend_Container.Appearance.Empty.BackColor = Color.Black; this.gvFriend_Container.Appearance.Empty.Options.UseBackColor = true; this.gvFriend_Container.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Container.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90); this.gvFriend_Container.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Container.Appearance.FilterCloseButton.ForeColor = Color.Black; this.gvFriend_Container.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Container.Appearance.FilterCloseButton.Options.UseBackColor = true; this.gvFriend_Container.Appearance.FilterCloseButton.Options.UseBorderColor = true; this.gvFriend_Container.Appearance.FilterCloseButton.Options.UseForeColor = true; this.gvFriend_Container.Appearance.FilterPanel.BackColor = Color.Black; this.gvFriend_Container.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Container.Appearance.FilterPanel.ForeColor = Color.White; this.gvFriend_Container.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Container.Appearance.FilterPanel.Options.UseBackColor = true; this.gvFriend_Container.Appearance.FilterPanel.Options.UseForeColor = true; this.gvFriend_Container.Appearance.FixedLine.BackColor = Color.FromArgb(0x3a, 0x3a, 0x3a); this.gvFriend_Container.Appearance.FixedLine.Options.UseBackColor = true; this.gvFriend_Container.Appearance.FocusedCell.BackColor = Color.Black; this.gvFriend_Container.Appearance.FocusedCell.Font = new Font("Tahoma", 10f); this.gvFriend_Container.Appearance.FocusedCell.ForeColor = Color.White; this.gvFriend_Container.Appearance.FocusedCell.Options.UseBackColor = true; this.gvFriend_Container.Appearance.FocusedCell.Options.UseFont = true; this.gvFriend_Container.Appearance.FocusedCell.Options.UseForeColor = true; this.gvFriend_Container.Appearance.FocusedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.gvFriend_Container.Appearance.FocusedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190); this.gvFriend_Container.Appearance.FocusedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvFriend_Container.Appearance.FocusedRow.ForeColor = Color.White; this.gvFriend_Container.Appearance.FocusedRow.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Container.Appearance.FocusedRow.Options.UseBackColor = true; this.gvFriend_Container.Appearance.FocusedRow.Options.UseFont = true; this.gvFriend_Container.Appearance.FocusedRow.Options.UseForeColor = true; this.gvFriend_Container.Appearance.FooterPanel.BackColor = Color.Black; this.gvFriend_Container.Appearance.FooterPanel.BorderColor = Color.Black; this.gvFriend_Container.Appearance.FooterPanel.Font = new Font("Tahoma", 10f); this.gvFriend_Container.Appearance.FooterPanel.ForeColor = Color.White; this.gvFriend_Container.Appearance.FooterPanel.Options.UseBackColor = true; this.gvFriend_Container.Appearance.FooterPanel.Options.UseBorderColor = true; this.gvFriend_Container.Appearance.FooterPanel.Options.UseFont = true; this.gvFriend_Container.Appearance.FooterPanel.Options.UseForeColor = true; this.gvFriend_Container.Appearance.GroupButton.BackColor = Color.Black; this.gvFriend_Container.Appearance.GroupButton.BorderColor = Color.Black; this.gvFriend_Container.Appearance.GroupButton.ForeColor = Color.White; this.gvFriend_Container.Appearance.GroupButton.Options.UseBackColor = true; this.gvFriend_Container.Appearance.GroupButton.Options.UseBorderColor = true; this.gvFriend_Container.Appearance.GroupButton.Options.UseForeColor = true; this.gvFriend_Container.Appearance.GroupFooter.BackColor = Color.FromArgb(10, 10, 10); this.gvFriend_Container.Appearance.GroupFooter.BorderColor = Color.FromArgb(10, 10, 10); this.gvFriend_Container.Appearance.GroupFooter.ForeColor = Color.White; this.gvFriend_Container.Appearance.GroupFooter.Options.UseBackColor = true; this.gvFriend_Container.Appearance.GroupFooter.Options.UseBorderColor = true; this.gvFriend_Container.Appearance.GroupFooter.Options.UseForeColor = true; this.gvFriend_Container.Appearance.GroupPanel.BackColor = Color.Black; this.gvFriend_Container.Appearance.GroupPanel.BackColor2 = Color.White; this.gvFriend_Container.Appearance.GroupPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvFriend_Container.Appearance.GroupPanel.ForeColor = Color.White; this.gvFriend_Container.Appearance.GroupPanel.Options.UseBackColor = true; this.gvFriend_Container.Appearance.GroupPanel.Options.UseFont = true; this.gvFriend_Container.Appearance.GroupPanel.Options.UseForeColor = true; this.gvFriend_Container.Appearance.GroupRow.BackColor = Color.Gray; this.gvFriend_Container.Appearance.GroupRow.Font = new Font("Tahoma", 10f); this.gvFriend_Container.Appearance.GroupRow.ForeColor = Color.White; this.gvFriend_Container.Appearance.GroupRow.Options.UseBackColor = true; this.gvFriend_Container.Appearance.GroupRow.Options.UseFont = true; this.gvFriend_Container.Appearance.GroupRow.Options.UseForeColor = true; this.gvFriend_Container.Appearance.HeaderPanel.BackColor = Color.Black; this.gvFriend_Container.Appearance.HeaderPanel.BorderColor = Color.Black; this.gvFriend_Container.Appearance.HeaderPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvFriend_Container.Appearance.HeaderPanel.ForeColor = Color.White; this.gvFriend_Container.Appearance.HeaderPanel.Options.UseBackColor = true; this.gvFriend_Container.Appearance.HeaderPanel.Options.UseBorderColor = true; this.gvFriend_Container.Appearance.HeaderPanel.Options.UseFont = true; this.gvFriend_Container.Appearance.HeaderPanel.Options.UseForeColor = true; this.gvFriend_Container.Appearance.HideSelectionRow.BackColor = Color.Gray; this.gvFriend_Container.Appearance.HideSelectionRow.Font = new Font("Tahoma", 10f); this.gvFriend_Container.Appearance.HideSelectionRow.ForeColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvFriend_Container.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvFriend_Container.Appearance.HideSelectionRow.Options.UseFont = true; this.gvFriend_Container.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvFriend_Container.Appearance.HorzLine.BackColor = Color.Yellow; this.gvFriend_Container.Appearance.HorzLine.Options.UseBackColor = true; this.gvFriend_Container.Appearance.Preview.BackColor = Color.White; this.gvFriend_Container.Appearance.Preview.Font = new Font("Tahoma", 10f); this.gvFriend_Container.Appearance.Preview.ForeColor = Color.Purple; this.gvFriend_Container.Appearance.Preview.Options.UseBackColor = true; this.gvFriend_Container.Appearance.Preview.Options.UseFont = true; this.gvFriend_Container.Appearance.Preview.Options.UseForeColor = true; this.gvFriend_Container.Appearance.Row.BackColor = Color.FromArgb(0x10, 0x21, 80); this.gvFriend_Container.Appearance.Row.BackColor2 = Color.FromArgb(6, 0x10, 0x29); this.gvFriend_Container.Appearance.Row.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvFriend_Container.Appearance.Row.ForeColor = Color.White; this.gvFriend_Container.Appearance.Row.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Container.Appearance.Row.Options.UseBackColor = true; this.gvFriend_Container.Appearance.Row.Options.UseFont = true; this.gvFriend_Container.Appearance.Row.Options.UseForeColor = true; this.gvFriend_Container.Appearance.RowSeparator.BackColor = Color.White; this.gvFriend_Container.Appearance.RowSeparator.BackColor2 = Color.White; this.gvFriend_Container.Appearance.RowSeparator.Options.UseBackColor = true; this.gvFriend_Container.Appearance.SelectedRow.BackColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.gvFriend_Container.Appearance.SelectedRow.BackColor2 = Color.FromArgb(0x52, 0x83, 190); this.gvFriend_Container.Appearance.SelectedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvFriend_Container.Appearance.SelectedRow.ForeColor = Color.White; this.gvFriend_Container.Appearance.SelectedRow.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvFriend_Container.Appearance.SelectedRow.Options.UseBackColor = true; this.gvFriend_Container.Appearance.SelectedRow.Options.UseFont = true; this.gvFriend_Container.Appearance.SelectedRow.Options.UseForeColor = true; this.gvFriend_Container.Appearance.TopNewRow.Font = new Font("Tahoma", 10f); this.gvFriend_Container.Appearance.TopNewRow.ForeColor = Color.White; this.gvFriend_Container.Appearance.TopNewRow.Options.UseFont = true; this.gvFriend_Container.Appearance.TopNewRow.Options.UseForeColor = true; this.gvFriend_Container.Appearance.VertLine.BackColor = Color.Yellow; this.gvFriend_Container.Appearance.VertLine.Options.UseBackColor = true; this.gvFriend_Container.BorderStyle = BorderStyles.NoBorder; this.gvFriend_Container.Columns.AddRange(new GridColumn[] { this.gcFriend_Title, this.gcFriend_Count, this.gcFriend_Title, this.gcFriend_Count }); this.gvFriend_Container.FocusRectStyle = DrawFocusRectStyle.None; this.gvFriend_Container.GridControl = this.gpgGridFriends; this.gvFriend_Container.HorzScrollVisibility = ScrollVisibility.Never; this.gvFriend_Container.LevelIndent = 0; this.gvFriend_Container.Name = "gvFriend_Container"; this.gvFriend_Container.OptionsBehavior.SmartVertScrollBar = false; this.gvFriend_Container.OptionsCustomization.AllowGroup = false; this.gvFriend_Container.OptionsCustomization.AllowRowSizing = true; this.gvFriend_Container.OptionsDetail.ShowDetailTabs = false; this.gvFriend_Container.OptionsSelection.EnableAppearanceFocusedCell = false; this.gvFriend_Container.OptionsView.ShowChildrenInGroupPanel = true; this.gvFriend_Container.OptionsView.ShowColumnHeaders = false; this.gvFriend_Container.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gvFriend_Container.OptionsView.ShowGroupPanel = false; this.gvFriend_Container.OptionsView.ShowHorzLines = false; this.gvFriend_Container.OptionsView.ShowIndicator = false; this.gvFriend_Container.OptionsView.ShowVertLines = false; this.gvFriend_Container.ScrollStyle = ScrollStyleFlags.None; this.gvFriend_Container.VertScrollVisibility = ScrollVisibility.Never; this.gvFriend_Container.RowCountChanged += new EventHandler(this.gvFriend_Container_RowCountChanged); this.gcFriend_Title.Caption = "gcTitle"; this.gcFriend_Title.FieldName = "Title"; this.gcFriend_Title.Name = "gcFriend_Title"; this.gcFriend_Title.OptionsColumn.AllowEdit = false; this.gcFriend_Title.Visible = true; this.gcFriend_Title.VisibleIndex = 1; this.gcFriend_Count.Caption = "gcCount"; this.gcFriend_Count.FieldName = "Count"; this.gcFriend_Count.Name = "gcFriend_Count"; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.splitContainer1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.splitContainer1.FixedPanel = FixedPanel.Panel2; this.splitContainer1.Location = new Point(12, 0x53); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Panel1.Controls.Add(this.splitContainer2); base.ttDefault.SetSuperTip(this.splitContainer1.Panel1, null); this.splitContainer1.Panel2.Controls.Add(this.splitContainerFriends); base.ttDefault.SetSuperTip(this.splitContainer1.Panel2, null); this.splitContainer1.Size = new Size(0x22f, 0x11f); this.splitContainer1.SplitterDistance = 0x16f; base.ttDefault.SetSuperTip(this.splitContainer1, null); this.splitContainer1.TabIndex = 4; this.splitContainer2.Dock = DockStyle.Fill; this.splitContainer2.FixedPanel = FixedPanel.Panel1; this.splitContainer2.Location = new Point(0, 0); this.splitContainer2.Margin = new Padding(0); this.splitContainer2.Name = "splitContainer2"; this.splitContainer2.Orientation = Orientation.Horizontal; this.splitContainer2.Panel1.Controls.Add(this.gpgLinkLabelClan); this.splitContainer2.Panel1.Controls.Add(this.gpgLabelName); base.ttDefault.SetSuperTip(this.splitContainer2.Panel1, null); this.splitContainer2.Panel2.AutoScroll = true; this.splitContainer2.Panel2.Controls.Add(this.gpgPanelStats); this.splitContainer2.Panel2.Controls.Add(this.gpgPanelEdit); base.ttDefault.SetSuperTip(this.splitContainer2.Panel2, null); this.splitContainer2.Size = new Size(0x16f, 0x11f); this.splitContainer2.SplitterDistance = 0x19; this.splitContainer2.SplitterWidth = 1; base.ttDefault.SetSuperTip(this.splitContainer2, null); this.splitContainer2.TabIndex = 4; this.gpgLinkLabelClan.AutoStyle = false; this.gpgLinkLabelClan.BackColor = Color.Black; this.gpgLinkLabelClan.Cursor = Cursors.Hand; this.gpgLinkLabelClan.DrawEdges = false; this.gpgLinkLabelClan.Font = new Font("Verdana", 10f, FontStyle.Bold); this.gpgLinkLabelClan.ForeColor = Color.Red; this.gpgLinkLabelClan.HorizontalScalingMode = ScalingModes.Tile; this.gpgLinkLabelClan.IsStyled = false; this.gpgLinkLabelClan.Location = new Point(0x33, 0); this.gpgLinkLabelClan.Margin = new Padding(0); this.gpgLinkLabelClan.Name = "gpgLinkLabelClan"; this.gpgLinkLabelClan.Size = new Size(0x2f, 20); this.gpgLinkLabelClan.SkinBasePath = @"Controls\Background Label\Rectangle"; base.ttDefault.SetSuperTip(this.gpgLinkLabelClan, null); this.gpgLinkLabelClan.TabIndex = 10; this.gpgLinkLabelClan.Text = "WWW"; this.gpgLinkLabelClan.TextAlign = ContentAlignment.TopCenter; this.gpgLinkLabelClan.TextPadding = new Padding(0); this.gpgLinkLabelClan.Click += new EventHandler(this.gpgLinkLabelClan_Click); this.gpgLabelName.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.gpgLabelName.AutoStyle = false; this.gpgLabelName.BackColor = Color.Black; this.gpgLabelName.Controls.Add(this.pictureBoxClanIcon); this.gpgLabelName.Controls.Add(this.pictureBoxClanRank); this.gpgLabelName.Controls.Add(this.pictureBoxPlayerIcon); this.gpgLabelName.DrawEdges = true; this.gpgLabelName.Font = new Font("Arial", 12f, FontStyle.Bold); this.gpgLabelName.ForeColor = Color.White; this.gpgLabelName.HorizontalScalingMode = ScalingModes.Tile; this.gpgLabelName.IsStyled = false; this.gpgLabelName.Location = new Point(0, 0); this.gpgLabelName.Name = "gpgLabelName"; this.gpgLabelName.Size = new Size(350, 20); this.gpgLabelName.SkinBasePath = @"Controls\Background Label\Rectangle"; base.ttDefault.SetSuperTip(this.gpgLabelName, null); this.gpgLabelName.TabIndex = 5; this.gpgLabelName.Text = "Test"; this.gpgLabelName.TextAlign = ContentAlignment.MiddleLeft; this.gpgLabelName.TextPadding = new Padding(0); this.gpgLabelName.DoubleClick += new EventHandler(this.gpgLabelName_DoubleClick); this.gpgLabelName.MouseUp += new MouseEventHandler(this.gpgLabelName_MouseUp); this.pictureBoxClanIcon.Anchor = AnchorStyles.Right | AnchorStyles.Top; this.pictureBoxClanIcon.Location = new Point(0x108, 0); this.pictureBoxClanIcon.Name = "pictureBoxClanIcon"; this.pictureBoxClanIcon.Size = new Size(40, 20); this.pictureBoxClanIcon.SizeMode = PictureBoxSizeMode.StretchImage; base.ttDefault.SetSuperTip(this.pictureBoxClanIcon, null); this.pictureBoxClanIcon.TabIndex = 12; this.pictureBoxClanIcon.TabStop = false; this.pictureBoxClanRank.Anchor = AnchorStyles.Right | AnchorStyles.Top; this.pictureBoxClanRank.Location = new Point(310, 0); this.pictureBoxClanRank.Name = "pictureBoxClanRank"; this.pictureBoxClanRank.Size = new Size(40, 20); this.pictureBoxClanRank.SizeMode = PictureBoxSizeMode.StretchImage; base.ttDefault.SetSuperTip(this.pictureBoxClanRank, null); this.pictureBoxClanRank.TabIndex = 11; this.pictureBoxClanRank.TabStop = false; this.pictureBoxPlayerIcon.Anchor = AnchorStyles.Right | AnchorStyles.Top; this.pictureBoxPlayerIcon.Location = new Point(0xd9, 0); this.pictureBoxPlayerIcon.Name = "pictureBoxPlayerIcon"; this.pictureBoxPlayerIcon.Size = new Size(40, 20); this.pictureBoxPlayerIcon.SizeMode = PictureBoxSizeMode.StretchImage; base.ttDefault.SetSuperTip(this.pictureBoxPlayerIcon, null); this.pictureBoxPlayerIcon.TabIndex = 9; this.pictureBoxPlayerIcon.TabStop = false; this.gpgPanelStats.AutoScroll = true; this.gpgPanelStats.Controls.Add(this.gpgPanel2); this.gpgPanelStats.Dock = DockStyle.Fill; this.gpgPanelStats.Location = new Point(0, 150); this.gpgPanelStats.Name = "gpgPanelStats"; this.gpgPanelStats.Size = new Size(0x16f, 0x6f); base.ttDefault.SetSuperTip(this.gpgPanelStats, null); this.gpgPanelStats.TabIndex = 6; this.gpgPanel2.AutoScroll = true; this.gpgPanel2.Controls.Add(this.gpgStatRow3); this.gpgPanel2.Controls.Add(this.gpgStatRow2); this.gpgPanel2.Controls.Add(this.gpgLabelDescription); this.gpgPanel2.Controls.Add(this.gpgStatRow1); this.gpgPanel2.Controls.Add(this.backLabelStats); this.gpgPanel2.Dock = DockStyle.Fill; this.gpgPanel2.Location = new Point(0, 0); this.gpgPanel2.Name = "gpgPanel2"; this.gpgPanel2.Size = new Size(0x16f, 0x6f); base.ttDefault.SetSuperTip(this.gpgPanel2, null); this.gpgPanel2.TabIndex = 10; this.gpgStatRow3.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.gpgStatRow3.DataBackColor = Color.Black; this.gpgStatRow3.DataForeColor = Color.Yellow; this.gpgStatRow3.DesignerItemCount = 3; this.gpgStatRow3.HeaderBackColor = Color.Gray; this.gpgStatRow3.HeaderForeColor = Color.White; this.gpgStatRow3.Location = new Point(0, 0x9a); this.gpgStatRow3.Margin = new Padding(0); this.gpgStatRow3.Name = "gpgStatRow3"; this.gpgStatRow3.Size = new Size(0x12b, 0x43); base.ttDefault.SetSuperTip(this.gpgStatRow3, null); this.gpgStatRow3.TabIndex = 10; this.gpgStatRow3.Text = "gpgStatRow3"; this.gpgStatRow2.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.gpgStatRow2.DataBackColor = Color.Black; this.gpgStatRow2.DataForeColor = Color.Yellow; this.gpgStatRow2.DesignerItemCount = 3; this.gpgStatRow2.HeaderBackColor = Color.Gray; this.gpgStatRow2.HeaderForeColor = Color.White; this.gpgStatRow2.Location = new Point(0, 0x68); this.gpgStatRow2.Margin = new Padding(0); this.gpgStatRow2.Name = "gpgStatRow2"; this.gpgStatRow2.Size = new Size(0x12b, 50); base.ttDefault.SetSuperTip(this.gpgStatRow2, null); this.gpgStatRow2.TabIndex = 9; this.gpgStatRow2.Text = "gpgStatRow2"; this.gpgLabelDescription.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.gpgLabelDescription.AutoStyle = true; this.gpgLabelDescription.Font = new Font("Arial", 9.75f); this.gpgLabelDescription.ForeColor = Color.White; this.gpgLabelDescription.IgnoreMouseWheel = false; this.gpgLabelDescription.IsStyled = false; this.gpgLabelDescription.Location = new Point(-3, 0); this.gpgLabelDescription.Name = "gpgLabelDescription"; this.gpgLabelDescription.Size = new Size(0x12e, 0x18); base.ttDefault.SetSuperTip(this.gpgLabelDescription, null); this.gpgLabelDescription.TabIndex = 5; this.gpgLabelDescription.Text = "(no description)"; this.gpgLabelDescription.TextStyle = TextStyles.Default; this.gpgLabelDescription.VisibleChanged += new EventHandler(this.gpgLabelDescription_VisibleChanged); this.gpgLabelDescription.TextChanged += new EventHandler(this.gpgLabelDescription_TextChanged); this.gpgStatRow1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.gpgStatRow1.DataBackColor = Color.Black; this.gpgStatRow1.DataForeColor = Color.Yellow; this.gpgStatRow1.DesignerItemCount = 3; this.gpgStatRow1.HeaderBackColor = Color.Gray; this.gpgStatRow1.HeaderForeColor = Color.White; this.gpgStatRow1.Location = new Point(0, 0x2c); this.gpgStatRow1.Margin = new Padding(0); this.gpgStatRow1.Name = "gpgStatRow1"; this.gpgStatRow1.Size = new Size(0x12b, 60); base.ttDefault.SetSuperTip(this.gpgStatRow1, null); this.gpgStatRow1.TabIndex = 7; this.gpgStatRow1.Text = "gpgStatRow1"; this.backLabelStats.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.backLabelStats.AutoStyle = false; this.backLabelStats.BackColor = Color.Transparent; this.backLabelStats.DrawEdges = true; this.backLabelStats.Font = new Font("Arial", 12f, FontStyle.Bold); this.backLabelStats.ForeColor = Color.White; this.backLabelStats.HorizontalScalingMode = ScalingModes.Tile; this.backLabelStats.IsStyled = false; this.backLabelStats.Location = new Point(0, 0x18); this.backLabelStats.Margin = new Padding(0); this.backLabelStats.Name = "backLabelStats"; this.backLabelStats.Size = new Size(0x12b, 20); this.backLabelStats.SkinBasePath = @"Controls\Background Label\Rectangle"; base.ttDefault.SetSuperTip(this.backLabelStats, null); this.backLabelStats.TabIndex = 6; this.backLabelStats.Text = "<LOC>Statistics"; this.backLabelStats.TextAlign = ContentAlignment.MiddleLeft; this.backLabelStats.TextPadding = new Padding(0); this.gpgPanelEdit.Dock = DockStyle.Top; this.gpgPanelEdit.FixedPanel = FixedPanel.Panel1; this.gpgPanelEdit.IsSplitterFixed = true; this.gpgPanelEdit.Location = new Point(0, 0); this.gpgPanelEdit.Name = "gpgPanelEdit"; this.gpgPanelEdit.Orientation = Orientation.Horizontal; this.gpgPanelEdit.Panel1.Controls.Add(this.skinButtonEdit); this.gpgPanelEdit.Panel1.Controls.Add(this.skinButtonCancelEdit); this.gpgPanelEdit.Panel1.Controls.Add(this.skinButtonSaveEdit); base.ttDefault.SetSuperTip(this.gpgPanelEdit.Panel1, null); this.gpgPanelEdit.Panel2.Controls.Add(this.gpgTextAreaDescription); base.ttDefault.SetSuperTip(this.gpgPanelEdit.Panel2, null); this.gpgPanelEdit.Size = new Size(0x16f, 150); this.gpgPanelEdit.SplitterDistance = 0x19; base.ttDefault.SetSuperTip(this.gpgPanelEdit, null); this.gpgPanelEdit.TabIndex = 15; this.skinButtonEdit.AutoStyle = true; this.skinButtonEdit.BackColor = Color.Black; this.skinButtonEdit.DialogResult = DialogResult.OK; this.skinButtonEdit.DisabledForecolor = Color.Gray; this.skinButtonEdit.DrawEdges = true; this.skinButtonEdit.FocusColor = Color.Yellow; this.skinButtonEdit.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonEdit.ForeColor = Color.White; this.skinButtonEdit.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonEdit.IsStyled = true; this.skinButtonEdit.Location = new Point(3, 3); this.skinButtonEdit.Name = "skinButtonEdit"; this.skinButtonEdit.Size = new Size(0x51, 20); this.skinButtonEdit.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonEdit, null); this.skinButtonEdit.TabIndex = 10; this.skinButtonEdit.Text = "<LOC>Edit"; this.skinButtonEdit.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonEdit.TextPadding = new Padding(0); this.skinButtonEdit.Click += new EventHandler(this.skinButtonEdit_Click); this.skinButtonCancelEdit.AutoStyle = true; this.skinButtonCancelEdit.BackColor = Color.Black; this.skinButtonCancelEdit.DialogResult = DialogResult.OK; this.skinButtonCancelEdit.DisabledForecolor = Color.Gray; this.skinButtonCancelEdit.DrawEdges = true; this.skinButtonCancelEdit.FocusColor = Color.Yellow; this.skinButtonCancelEdit.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonCancelEdit.ForeColor = Color.White; this.skinButtonCancelEdit.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonCancelEdit.IsStyled = true; this.skinButtonCancelEdit.Location = new Point(90, 3); this.skinButtonCancelEdit.Name = "skinButtonCancelEdit"; this.skinButtonCancelEdit.Size = new Size(0x51, 20); this.skinButtonCancelEdit.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonCancelEdit, null); this.skinButtonCancelEdit.TabIndex = 14; this.skinButtonCancelEdit.Text = "<LOC>Cancel"; this.skinButtonCancelEdit.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonCancelEdit.TextPadding = new Padding(0); this.skinButtonCancelEdit.Visible = false; this.skinButtonCancelEdit.Click += new EventHandler(this.skinButtonCancelEdit_Click); this.skinButtonSaveEdit.AutoStyle = true; this.skinButtonSaveEdit.BackColor = Color.Black; this.skinButtonSaveEdit.DialogResult = DialogResult.OK; this.skinButtonSaveEdit.DisabledForecolor = Color.Gray; this.skinButtonSaveEdit.DrawEdges = true; this.skinButtonSaveEdit.FocusColor = Color.Yellow; this.skinButtonSaveEdit.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonSaveEdit.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonSaveEdit.IsStyled = true; this.skinButtonSaveEdit.Location = new Point(3, 3); this.skinButtonSaveEdit.Name = "skinButtonSaveEdit"; this.skinButtonSaveEdit.Size = new Size(0x51, 20); this.skinButtonSaveEdit.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonSaveEdit, null); this.skinButtonSaveEdit.TabIndex = 13; this.skinButtonSaveEdit.Text = "<LOC>Save"; this.skinButtonSaveEdit.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonSaveEdit.TextPadding = new Padding(0); this.skinButtonSaveEdit.Visible = false; this.skinButtonSaveEdit.Click += new EventHandler(this.skinButtonSaveEdit_Click); this.gpgTextAreaDescription.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.gpgTextAreaDescription.Location = new Point(0, 0); this.gpgTextAreaDescription.Margin = new Padding(0); this.gpgTextAreaDescription.Name = "gpgTextAreaDescription"; this.gpgTextAreaDescription.Properties.Appearance.BackColor = Color.Black; this.gpgTextAreaDescription.Properties.Appearance.BorderColor = Color.FromArgb(0x52, 0x83, 190); this.gpgTextAreaDescription.Properties.Appearance.ForeColor = Color.White; this.gpgTextAreaDescription.Properties.Appearance.Options.UseBackColor = true; this.gpgTextAreaDescription.Properties.Appearance.Options.UseBorderColor = true; this.gpgTextAreaDescription.Properties.Appearance.Options.UseForeColor = true; this.gpgTextAreaDescription.Properties.AppearanceFocused.BackColor = Color.FromArgb(0x10, 0x21, 0x4f); this.gpgTextAreaDescription.Properties.AppearanceFocused.BackColor2 = Color.FromArgb(0, 0, 0); this.gpgTextAreaDescription.Properties.AppearanceFocused.BorderColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.gpgTextAreaDescription.Properties.AppearanceFocused.GradientMode = LinearGradientMode.ForwardDiagonal; this.gpgTextAreaDescription.Properties.AppearanceFocused.Options.UseBackColor = true; this.gpgTextAreaDescription.Properties.AppearanceFocused.Options.UseBorderColor = true; this.gpgTextAreaDescription.Properties.BorderStyle = BorderStyles.Simple; this.gpgTextAreaDescription.Properties.LookAndFeel.SkinName = "London Liquid Sky"; this.gpgTextAreaDescription.Properties.LookAndFeel.UseDefaultLookAndFeel = false; this.gpgTextAreaDescription.Size = new Size(350, 0x79); this.gpgTextAreaDescription.TabIndex = 3; this.gpgTextAreaDescription.Visible = false; this.gpgTextAreaDescription.KeyDown += new KeyEventHandler(this.gpgTextAreaDescription_KeyDown); this.splitContainerFriends.Dock = DockStyle.Fill; this.splitContainerFriends.FixedPanel = FixedPanel.Panel1; this.splitContainerFriends.IsSplitterFixed = true; this.splitContainerFriends.Location = new Point(0, 0); this.splitContainerFriends.Margin = new Padding(3, 0, 0, 0); this.splitContainerFriends.Name = "splitContainerFriends"; this.splitContainerFriends.Orientation = Orientation.Horizontal; this.splitContainerFriends.Panel1.Controls.Add(this.backLabelFriends); base.ttDefault.SetSuperTip(this.splitContainerFriends.Panel1, null); this.splitContainerFriends.Panel2.Controls.Add(this.gpgScrollPanelFriends); base.ttDefault.SetSuperTip(this.splitContainerFriends.Panel2, null); this.splitContainerFriends.Size = new Size(0xbc, 0x11f); this.splitContainerFriends.SplitterDistance = 0x19; this.splitContainerFriends.SplitterWidth = 1; base.ttDefault.SetSuperTip(this.splitContainerFriends, null); this.splitContainerFriends.TabIndex = 0; this.backLabelFriends.AutoStyle = false; this.backLabelFriends.BackColor = Color.Transparent; this.backLabelFriends.Dock = DockStyle.Top; this.backLabelFriends.DrawEdges = true; this.backLabelFriends.Font = new Font("Verdana", 10f, FontStyle.Bold); this.backLabelFriends.ForeColor = Color.White; this.backLabelFriends.HorizontalScalingMode = ScalingModes.Tile; this.backLabelFriends.IsStyled = false; this.backLabelFriends.Location = new Point(0, 0); this.backLabelFriends.Margin = new Padding(0); this.backLabelFriends.Name = "backLabelFriends"; this.backLabelFriends.Size = new Size(0xbc, 20); this.backLabelFriends.SkinBasePath = @"Controls\Background Label\Round Top"; base.ttDefault.SetSuperTip(this.backLabelFriends, null); this.backLabelFriends.TabIndex = 0; this.backLabelFriends.Text = "<LOC>Friends"; this.backLabelFriends.TextAlign = ContentAlignment.BottomCenter; this.backLabelFriends.TextPadding = new Padding(0); this.gpgScrollPanelFriends.AutoScroll = true; this.gpgScrollPanelFriends.BackColor = Color.Black; this.gpgScrollPanelFriends.ChildControl = this.gpgGridFriends; this.gpgScrollPanelFriends.Controls.Add(this.gpgGridFriends); this.gpgScrollPanelFriends.Dock = DockStyle.Fill; this.gpgScrollPanelFriends.Location = new Point(0, 0); this.gpgScrollPanelFriends.Name = "gpgScrollPanelFriends"; this.gpgScrollPanelFriends.Size = new Size(0xbc, 0x105); base.ttDefault.SetSuperTip(this.gpgScrollPanelFriends, null); this.gpgScrollPanelFriends.TabIndex = 6; this.skinButtonClose.Anchor = AnchorStyles.Bottom; this.skinButtonClose.AutoStyle = true; this.skinButtonClose.BackColor = Color.Black; this.skinButtonClose.DialogResult = DialogResult.OK; this.skinButtonClose.DisabledForecolor = Color.Gray; this.skinButtonClose.DrawEdges = true; this.skinButtonClose.FocusColor = Color.Yellow; this.skinButtonClose.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonClose.ForeColor = Color.White; this.skinButtonClose.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonClose.IsStyled = true; this.skinButtonClose.Location = new Point(240, 0x178); this.skinButtonClose.Name = "skinButtonClose"; this.skinButtonClose.Size = new Size(0x68, 0x1a); this.skinButtonClose.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonClose, null); this.skinButtonClose.TabIndex = 9; this.skinButtonClose.Text = "<LOC>Close"; this.skinButtonClose.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonClose.TextPadding = new Padding(0); this.skinButtonClose.Click += new EventHandler(this.skinButtonClose_Click); this.skinButtonNext.Anchor = AnchorStyles.Bottom; this.skinButtonNext.AutoStyle = true; this.skinButtonNext.BackColor = Color.Black; this.skinButtonNext.DialogResult = DialogResult.OK; this.skinButtonNext.DisabledForecolor = Color.Gray; this.skinButtonNext.DrawEdges = true; this.skinButtonNext.FocusColor = Color.Yellow; this.skinButtonNext.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonNext.ForeColor = Color.White; this.skinButtonNext.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonNext.IsStyled = true; this.skinButtonNext.Location = new Point(0x16a, 0x178); this.skinButtonNext.Name = "skinButtonNext"; this.skinButtonNext.Size = new Size(0x68, 0x1a); this.skinButtonNext.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonNext, null); this.skinButtonNext.TabIndex = 10; this.skinButtonNext.Text = "<LOC>Next"; this.skinButtonNext.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonNext.TextPadding = new Padding(0); this.skinButtonNext.Click += new EventHandler(this.skinButtonNext_Click); this.skinButtonLast.Anchor = AnchorStyles.Bottom; this.skinButtonLast.AutoStyle = true; this.skinButtonLast.BackColor = Color.Black; this.skinButtonLast.DialogResult = DialogResult.OK; this.skinButtonLast.DisabledForecolor = Color.Gray; this.skinButtonLast.DrawEdges = true; this.skinButtonLast.FocusColor = Color.Yellow; this.skinButtonLast.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonLast.ForeColor = Color.White; this.skinButtonLast.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonLast.IsStyled = true; this.skinButtonLast.Location = new Point(0x74, 0x178); this.skinButtonLast.Name = "skinButtonLast"; this.skinButtonLast.Size = new Size(0x68, 0x1a); this.skinButtonLast.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonLast, null); this.skinButtonLast.TabIndex = 11; this.skinButtonLast.Text = "<LOC>Last"; this.skinButtonLast.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonLast.TextPadding = new Padding(0); this.skinButtonLast.Click += new EventHandler(this.skinButtonLast_Click); this.gpgContextMenuChat.MenuItems.AddRange(new MenuItem[] { this.ciChat_WhisperPlayer, this.ciChat_WebStats, this.ciChat_ViewPlayer, this.ciChat_IgnorePlayer, this.ciChat_UnignorePlayer, this.menuItem10, this.ciChat_InviteFriend, this.ciChat_RemoveFriend, this.menuItem8, this.ciChat_InviteToClan, this.ciChat_RequestClanInvite, this.ciChat_ViewClan }); this.ciChat_WhisperPlayer.Index = 0; this.ciChat_WhisperPlayer.Text = "<LOC>Send private message"; this.ciChat_WhisperPlayer.Click += new EventHandler(this.ciChat_WhisperPlayer_Click); this.ciChat_WebStats.Index = 1; this.ciChat_WebStats.Text = "<LOC>View web stats"; this.ciChat_WebStats.Click += new EventHandler(this.ciChat_WebStats_Click); this.ciChat_ViewPlayer.Index = 2; this.ciChat_ViewPlayer.Text = "<LOC>View this player's profile"; this.ciChat_ViewPlayer.Click += new EventHandler(this.ciChat_ViewPlayer_Click); this.ciChat_IgnorePlayer.Index = 3; this.ciChat_IgnorePlayer.Text = "<LOC>Ignore Player"; this.ciChat_IgnorePlayer.Click += new EventHandler(this.ciChat_IgnorePlayer_Click); this.ciChat_UnignorePlayer.Index = 4; this.ciChat_UnignorePlayer.Text = "<LOC>Unignore Player"; this.ciChat_UnignorePlayer.Click += new EventHandler(this.ciChat_UnignorePlayer_Click); this.menuItem10.Index = 5; this.menuItem10.Text = "-"; this.ciChat_InviteFriend.Index = 6; this.ciChat_InviteFriend.Text = "<LOC>Invite player to join Friends list"; this.ciChat_InviteFriend.Click += new EventHandler(this.ciChat_InviteFriend_Click); this.ciChat_RemoveFriend.Index = 7; this.ciChat_RemoveFriend.Text = "<LOC>Remove player from Friends list"; this.ciChat_RemoveFriend.Click += new EventHandler(this.ciChat_RemoveFriend_Click); this.menuItem8.Index = 8; this.menuItem8.Text = "-"; this.ciChat_InviteToClan.Index = 9; this.ciChat_InviteToClan.Text = "<LOC>Invite this player to join clan"; this.ciChat_InviteToClan.Click += new EventHandler(this.ciChat_InviteToClan_Click); this.ciChat_RequestClanInvite.Index = 10; this.ciChat_RequestClanInvite.Text = "<LOC>Request to join this player's clan"; this.ciChat_RequestClanInvite.Click += new EventHandler(this.ciChat_RequestClanInvite_Click); this.ciChat_ViewClan.Index = 11; this.ciChat_ViewClan.Text = "<LOC>View this clan's profile"; this.ciChat_ViewClan.Click += new EventHandler(this.ciChat_ViewClan_Click); base.AcceptButton = this.skinButtonClose; base.AutoScaleMode = AutoScaleMode.None; base.CancelButton = this.skinButtonClose; base.ClientSize = new Size(0x247, 0x1bf); base.Controls.Add(this.skinButtonLast); base.Controls.Add(this.skinButtonNext); base.Controls.Add(this.skinButtonClose); base.Controls.Add(this.splitContainer1); this.Font = new Font("Verdana", 8f); base.Location = new Point(0, 0); this.MinimumSize = new Size(0x178, 0x178); base.Name = "DlgPlayerProfile"; base.ttDefault.SetSuperTip(this, null); this.Text = "DlgPlayerProfile"; base.Controls.SetChildIndex(this.splitContainer1, 0); base.Controls.SetChildIndex(this.skinButtonClose, 0); base.Controls.SetChildIndex(this.skinButtonNext, 0); base.Controls.SetChildIndex(this.skinButtonLast, 0); this.gvFriend_Member.EndInit(); this.repositoryItemPictureEdit4.EndInit(); this.gpgGridFriends.EndInit(); this.gvFriend_Container.EndInit(); this.repositoryItemTextEdit2.EndInit(); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.ResumeLayout(false); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel2.ResumeLayout(false); this.splitContainer2.ResumeLayout(false); this.gpgLabelName.ResumeLayout(false); ((ISupportInitialize) this.pictureBoxClanIcon).EndInit(); ((ISupportInitialize) this.pictureBoxClanRank).EndInit(); ((ISupportInitialize) this.pictureBoxPlayerIcon).EndInit(); this.gpgPanelStats.ResumeLayout(false); this.gpgPanel2.ResumeLayout(false); this.gpgPanelEdit.Panel1.ResumeLayout(false); this.gpgPanelEdit.Panel2.ResumeLayout(false); this.gpgPanelEdit.ResumeLayout(false); this.gpgTextAreaDescription.Properties.EndInit(); this.splitContainerFriends.Panel1.ResumeLayout(false); this.splitContainerFriends.Panel2.ResumeLayout(false); this.splitContainerFriends.ResumeLayout(false); this.gpgScrollPanelFriends.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
static void GenerateSnapReportForGridControlContent(GridLevelNode node, SnapDocument document) { GenerateSnapListForCurrentLevel(node, document, document.Range.End, 1); }
private void InitializeComponent() { GridLevelNode node = new GridLevelNode(); GridLevelNode node2 = new GridLevelNode(); this.gpgGroupBoxMembers = new GPGGroupBox(); this.skinLabel2 = new SkinLabel(); this.skinLabel3 = new SkinLabel(); this.skinLabel1 = new SkinLabel(); this.gpgLabel2 = new GPGLabel(); this.gpgLabel1 = new GPGLabel(); this.gpgLabelFaction = new GPGLabel(); this.gpgLabelName = new GPGLabel(); this.gpgPictureBoxPrefMap = new GPGPictureBox(); this.skinButtonLaunch = new SkinButton(); this.skinButtonChangeMap = new SkinButton(); this.textBoxMsg = new GPGTextBox(); this.gpgChatGrid = new GPGChatGrid(); this.gvChat = new GridView(); this.colIcon = new GridColumn(); this.rimPictureEdit3 = new RepositoryItemPictureEdit(); this.colPlayer = new GridColumn(); this.rimMemoEdit3 = new RepositoryItemMemoEdit(); this.colText = new GridColumn(); this.gcVisible = new GridColumn(); this.rimTextEdit = new RepositoryItemTextEdit(); this.gpgLabel3 = new GPGLabel(); this.gpgLabePreflMapName = new GPGLabel(); this.gpgLabeNonPreflMapName = new GPGLabel(); this.gpgLabel5 = new GPGLabel(); this.gpgPictureBoxNonPrefMap = new GPGPictureBox(); this.gpgGroupBox1 = new GPGGroupBox(); this.skinButtonLeaveTeam = new SkinButton(); this.gpgGroupBoxMembers.SuspendLayout(); ((ISupportInitialize) this.gpgPictureBoxPrefMap).BeginInit(); this.textBoxMsg.Properties.BeginInit(); this.gpgChatGrid.BeginInit(); this.gvChat.BeginInit(); this.rimPictureEdit3.BeginInit(); this.rimMemoEdit3.BeginInit(); this.rimTextEdit.BeginInit(); ((ISupportInitialize) this.gpgPictureBoxNonPrefMap).BeginInit(); this.gpgGroupBox1.SuspendLayout(); base.SuspendLayout(); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; base.ttDefault.DefaultController.ToolTipLocation = ToolTipLocation.RightTop; this.gpgGroupBoxMembers.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.gpgGroupBoxMembers.Controls.Add(this.skinLabel2); this.gpgGroupBoxMembers.Controls.Add(this.skinLabel3); this.gpgGroupBoxMembers.Controls.Add(this.skinLabel1); this.gpgGroupBoxMembers.Controls.Add(this.gpgLabel2); this.gpgGroupBoxMembers.Controls.Add(this.gpgLabel1); this.gpgGroupBoxMembers.Controls.Add(this.gpgLabelFaction); this.gpgGroupBoxMembers.Controls.Add(this.gpgLabelName); this.gpgGroupBoxMembers.Location = new Point(12, 0x53); this.gpgGroupBoxMembers.Name = "gpgGroupBoxMembers"; this.gpgGroupBoxMembers.Size = new Size(0x239, 0xf2); base.ttDefault.SetSuperTip(this.gpgGroupBoxMembers, null); this.gpgGroupBoxMembers.TabIndex = 7; this.gpgGroupBoxMembers.TabStop = false; this.gpgGroupBoxMembers.Text = "<LOC>Team Members"; this.skinLabel2.AutoStyle = false; this.skinLabel2.BackColor = Color.Transparent; this.skinLabel2.DrawEdges = false; this.skinLabel2.Font = new Font("Verdana", 10f, FontStyle.Bold); this.skinLabel2.ForeColor = Color.White; this.skinLabel2.HorizontalScalingMode = ScalingModes.Tile; this.skinLabel2.IsStyled = false; this.skinLabel2.Location = new Point(0xcb, 0x16); this.skinLabel2.Name = "skinLabel2"; this.skinLabel2.Size = new Size(0xa6, 20); this.skinLabel2.SkinBasePath = @"Controls\Background Label\BlueGradient"; base.ttDefault.SetSuperTip(this.skinLabel2, null); this.skinLabel2.TabIndex = 5; this.skinLabel2.Text = "<LOC>Faction"; this.skinLabel2.TextAlign = ContentAlignment.MiddleLeft; this.skinLabel2.TextPadding = new Padding(0); this.skinLabel3.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this.skinLabel3.AutoStyle = false; this.skinLabel3.BackColor = Color.Transparent; this.skinLabel3.DrawEdges = true; this.skinLabel3.Font = new Font("Verdana", 10f, FontStyle.Bold); this.skinLabel3.ForeColor = Color.White; this.skinLabel3.HorizontalScalingMode = ScalingModes.Tile; this.skinLabel3.IsStyled = false; this.skinLabel3.Location = new Point(0x16e, 0x16); this.skinLabel3.Name = "skinLabel3"; this.skinLabel3.Size = new Size(0xc3, 20); this.skinLabel3.SkinBasePath = @"Controls\Background Label\BlueGradient"; base.ttDefault.SetSuperTip(this.skinLabel3, null); this.skinLabel3.TabIndex = 6; this.skinLabel3.Text = "<LOC>Ready"; this.skinLabel3.TextAlign = ContentAlignment.MiddleLeft; this.skinLabel3.TextPadding = new Padding(0); this.skinLabel1.AutoStyle = false; this.skinLabel1.BackColor = Color.Transparent; this.skinLabel1.DrawEdges = true; this.skinLabel1.Font = new Font("Verdana", 10f, FontStyle.Bold); this.skinLabel1.ForeColor = Color.White; this.skinLabel1.HorizontalScalingMode = ScalingModes.Tile; this.skinLabel1.IsStyled = false; this.skinLabel1.Location = new Point(9, 0x16); this.skinLabel1.Name = "skinLabel1"; this.skinLabel1.Size = new Size(0xc4, 20); this.skinLabel1.SkinBasePath = @"Controls\Background Label\BlueGradient"; base.ttDefault.SetSuperTip(this.skinLabel1, null); this.skinLabel1.TabIndex = 4; this.skinLabel1.Text = "<LOC>Name"; this.skinLabel1.TextAlign = ContentAlignment.MiddleLeft; this.skinLabel1.TextPadding = new Padding(0); this.gpgLabel2.AutoSize = true; this.gpgLabel2.AutoStyle = true; this.gpgLabel2.Font = new Font("Arial", 9.75f); this.gpgLabel2.ForeColor = Color.White; this.gpgLabel2.IgnoreMouseWheel = false; this.gpgLabel2.IsStyled = false; this.gpgLabel2.Location = new Point(0x1a8, 0x1a); this.gpgLabel2.Name = "gpgLabel2"; this.gpgLabel2.Size = new Size(0x4c, 0x10); base.ttDefault.SetSuperTip(this.gpgLabel2, null); this.gpgLabel2.TabIndex = 3; this.gpgLabel2.Text = "<LOC>Ping"; this.gpgLabel2.TextStyle = TextStyles.Bold; this.gpgLabel2.Visible = false; this.gpgLabel1.AutoSize = true; this.gpgLabel1.AutoStyle = true; this.gpgLabel1.Font = new Font("Arial", 9.75f); this.gpgLabel1.ForeColor = Color.White; this.gpgLabel1.IgnoreMouseWheel = false; this.gpgLabel1.IsStyled = false; this.gpgLabel1.Location = new Point(0x16b, 0x1a); this.gpgLabel1.Name = "gpgLabel1"; this.gpgLabel1.Size = new Size(0x57, 0x10); base.ttDefault.SetSuperTip(this.gpgLabel1, null); this.gpgLabel1.TabIndex = 2; this.gpgLabel1.Text = "<LOC>Ready"; this.gpgLabel1.TextStyle = TextStyles.Bold; this.gpgLabelFaction.AutoSize = true; this.gpgLabelFaction.AutoStyle = true; this.gpgLabelFaction.Font = new Font("Arial", 9.75f); this.gpgLabelFaction.ForeColor = Color.White; this.gpgLabelFaction.IgnoreMouseWheel = false; this.gpgLabelFaction.IsStyled = false; this.gpgLabelFaction.Location = new Point(200, 0x1a); this.gpgLabelFaction.Name = "gpgLabelFaction"; this.gpgLabelFaction.Size = new Size(0x5d, 0x10); base.ttDefault.SetSuperTip(this.gpgLabelFaction, null); this.gpgLabelFaction.TabIndex = 1; this.gpgLabelFaction.Text = "<LOC>Faction"; this.gpgLabelFaction.TextStyle = TextStyles.Bold; this.gpgLabelName.AutoSize = true; this.gpgLabelName.AutoStyle = true; this.gpgLabelName.Font = new Font("Arial", 9.75f); this.gpgLabelName.ForeColor = Color.White; this.gpgLabelName.IgnoreMouseWheel = false; this.gpgLabelName.IsStyled = false; this.gpgLabelName.Location = new Point(6, 0x1a); this.gpgLabelName.Name = "gpgLabelName"; this.gpgLabelName.Size = new Size(0x54, 0x10); base.ttDefault.SetSuperTip(this.gpgLabelName, null); this.gpgLabelName.TabIndex = 0; this.gpgLabelName.Text = "<LOC>Name"; this.gpgLabelName.TextStyle = TextStyles.Bold; this.gpgPictureBoxPrefMap.Location = new Point(6, 0x23); this.gpgPictureBoxPrefMap.Name = "gpgPictureBoxPrefMap"; this.gpgPictureBoxPrefMap.Size = new Size(0x80, 0x80); this.gpgPictureBoxPrefMap.SizeMode = PictureBoxSizeMode.StretchImage; base.ttDefault.SetSuperTip(this.gpgPictureBoxPrefMap, null); this.gpgPictureBoxPrefMap.TabIndex = 8; this.gpgPictureBoxPrefMap.TabStop = false; this.skinButtonLaunch.Anchor = AnchorStyles.Bottom; this.skinButtonLaunch.AutoStyle = true; this.skinButtonLaunch.BackColor = Color.Black; this.skinButtonLaunch.DialogResult = DialogResult.OK; this.skinButtonLaunch.DisabledForecolor = Color.Gray; this.skinButtonLaunch.DrawEdges = true; this.skinButtonLaunch.Enabled = false; this.skinButtonLaunch.FocusColor = Color.Yellow; this.skinButtonLaunch.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonLaunch.ForeColor = Color.White; this.skinButtonLaunch.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonLaunch.IsStyled = true; this.skinButtonLaunch.Location = new Point(0x1d3, 0x227); this.skinButtonLaunch.Name = "skinButtonLaunch"; this.skinButtonLaunch.Size = new Size(130, 0x1a); this.skinButtonLaunch.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonLaunch, null); this.skinButtonLaunch.TabIndex = 9; this.skinButtonLaunch.Text = "<LOC>Launch"; this.skinButtonLaunch.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonLaunch.TextPadding = new Padding(0); this.skinButtonLaunch.Click += new EventHandler(this.skinButtonLaunch_Click); this.skinButtonChangeMap.AutoStyle = true; this.skinButtonChangeMap.BackColor = Color.Black; this.skinButtonChangeMap.DialogResult = DialogResult.OK; this.skinButtonChangeMap.DisabledForecolor = Color.Gray; this.skinButtonChangeMap.DrawEdges = true; this.skinButtonChangeMap.Enabled = false; this.skinButtonChangeMap.FocusColor = Color.Yellow; this.skinButtonChangeMap.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonChangeMap.ForeColor = Color.White; this.skinButtonChangeMap.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonChangeMap.IsStyled = true; this.skinButtonChangeMap.Location = new Point(0x40, 210); this.skinButtonChangeMap.Name = "skinButtonChangeMap"; this.skinButtonChangeMap.Size = new Size(0x9d, 0x1a); this.skinButtonChangeMap.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonChangeMap, null); this.skinButtonChangeMap.TabIndex = 10; this.skinButtonChangeMap.Text = "<LOC>Set Map Preferences"; this.skinButtonChangeMap.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonChangeMap.TextPadding = new Padding(0); this.skinButtonChangeMap.Click += new EventHandler(this.skinButtonChangeMap_Click); this.textBoxMsg.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this.textBoxMsg.Location = new Point(12, 0x205); this.textBoxMsg.Name = "textBoxMsg"; this.textBoxMsg.Properties.Appearance.BackColor = Color.Black; this.textBoxMsg.Properties.Appearance.BorderColor = Color.FromArgb(0x52, 0x83, 190); this.textBoxMsg.Properties.Appearance.ForeColor = Color.White; this.textBoxMsg.Properties.Appearance.Options.UseBackColor = true; this.textBoxMsg.Properties.Appearance.Options.UseBorderColor = true; this.textBoxMsg.Properties.Appearance.Options.UseForeColor = true; this.textBoxMsg.Properties.AppearanceFocused.BackColor = Color.FromArgb(0x10, 0x21, 0x4f); this.textBoxMsg.Properties.AppearanceFocused.BackColor2 = Color.FromArgb(0, 0, 0); this.textBoxMsg.Properties.AppearanceFocused.BorderColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.textBoxMsg.Properties.AppearanceFocused.GradientMode = LinearGradientMode.ForwardDiagonal; this.textBoxMsg.Properties.AppearanceFocused.Options.UseBackColor = true; this.textBoxMsg.Properties.AppearanceFocused.Options.UseBorderColor = true; this.textBoxMsg.Properties.BorderStyle = BorderStyles.Simple; this.textBoxMsg.Properties.LookAndFeel.SkinName = "London Liquid Sky"; this.textBoxMsg.Properties.LookAndFeel.UseDefaultLookAndFeel = false; this.textBoxMsg.Size = new Size(850, 20); this.textBoxMsg.TabIndex = 11; this.gpgChatGrid.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.gpgChatGrid.CustomizeStyle = true; this.gpgChatGrid.EmbeddedNavigator.Name = ""; this.gpgChatGrid.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gpgChatGrid.IgnoreMouseWheel = false; node.RelationName = "Level1"; node2.RelationName = "Level2"; this.gpgChatGrid.LevelTree.Nodes.AddRange(new GridLevelNode[] { node, node2 }); this.gpgChatGrid.Location = new Point(12, 0x151); this.gpgChatGrid.MainView = this.gvChat; this.gpgChatGrid.Name = "gpgChatGrid"; this.gpgChatGrid.RepositoryItems.AddRange(new RepositoryItem[] { this.rimPictureEdit3, this.rimTextEdit, this.rimMemoEdit3 }); this.gpgChatGrid.ShowOnlyPredefinedDetails = true; this.gpgChatGrid.Size = new Size(850, 170); this.gpgChatGrid.TabIndex = 12; this.gpgChatGrid.ViewCollection.AddRange(new BaseView[] { this.gvChat }); this.gvChat.Appearance.ColumnFilterButton.BackColor = Color.Black; this.gvChat.Appearance.ColumnFilterButton.BackColor2 = Color.FromArgb(20, 20, 20); this.gvChat.Appearance.ColumnFilterButton.BorderColor = Color.Black; this.gvChat.Appearance.ColumnFilterButton.ForeColor = Color.Gray; this.gvChat.Appearance.ColumnFilterButton.Options.UseBackColor = true; this.gvChat.Appearance.ColumnFilterButton.Options.UseBorderColor = true; this.gvChat.Appearance.ColumnFilterButton.Options.UseForeColor = true; this.gvChat.Appearance.ColumnFilterButtonActive.BackColor = Color.FromArgb(20, 20, 20); this.gvChat.Appearance.ColumnFilterButtonActive.BackColor2 = Color.FromArgb(0x4e, 0x4e, 0x4e); this.gvChat.Appearance.ColumnFilterButtonActive.BorderColor = Color.FromArgb(20, 20, 20); this.gvChat.Appearance.ColumnFilterButtonActive.ForeColor = Color.Blue; this.gvChat.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true; this.gvChat.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true; this.gvChat.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true; this.gvChat.Appearance.Empty.BackColor = Color.Black; this.gvChat.Appearance.Empty.Options.UseBackColor = true; this.gvChat.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvChat.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90); this.gvChat.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvChat.Appearance.FilterCloseButton.ForeColor = Color.Black; this.gvChat.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvChat.Appearance.FilterCloseButton.Options.UseBackColor = true; this.gvChat.Appearance.FilterCloseButton.Options.UseBorderColor = true; this.gvChat.Appearance.FilterCloseButton.Options.UseForeColor = true; this.gvChat.Appearance.FilterPanel.BackColor = Color.Black; this.gvChat.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200); this.gvChat.Appearance.FilterPanel.ForeColor = Color.White; this.gvChat.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvChat.Appearance.FilterPanel.Options.UseBackColor = true; this.gvChat.Appearance.FilterPanel.Options.UseForeColor = true; this.gvChat.Appearance.FixedLine.BackColor = Color.FromArgb(0x3a, 0x3a, 0x3a); this.gvChat.Appearance.FixedLine.Options.UseBackColor = true; this.gvChat.Appearance.FocusedCell.BackColor = Color.Black; this.gvChat.Appearance.FocusedCell.Font = new Font("Tahoma", 10f); this.gvChat.Appearance.FocusedCell.ForeColor = Color.White; this.gvChat.Appearance.FocusedCell.Options.UseBackColor = true; this.gvChat.Appearance.FocusedCell.Options.UseFont = true; this.gvChat.Appearance.FocusedCell.Options.UseForeColor = true; this.gvChat.Appearance.FocusedRow.BackColor = Color.FromArgb(0x40, 0x40, 0x40); this.gvChat.Appearance.FocusedRow.BackColor2 = Color.Black; this.gvChat.Appearance.FocusedRow.Font = new Font("Arial", 9.75f, FontStyle.Bold); this.gvChat.Appearance.FocusedRow.ForeColor = Color.White; this.gvChat.Appearance.FocusedRow.Options.UseBackColor = true; this.gvChat.Appearance.FocusedRow.Options.UseFont = true; this.gvChat.Appearance.FocusedRow.Options.UseForeColor = true; this.gvChat.Appearance.FooterPanel.BackColor = Color.Black; this.gvChat.Appearance.FooterPanel.BorderColor = Color.Black; this.gvChat.Appearance.FooterPanel.Font = new Font("Tahoma", 10f); this.gvChat.Appearance.FooterPanel.ForeColor = Color.White; this.gvChat.Appearance.FooterPanel.Options.UseBackColor = true; this.gvChat.Appearance.FooterPanel.Options.UseBorderColor = true; this.gvChat.Appearance.FooterPanel.Options.UseFont = true; this.gvChat.Appearance.FooterPanel.Options.UseForeColor = true; this.gvChat.Appearance.GroupButton.BackColor = Color.Black; this.gvChat.Appearance.GroupButton.BorderColor = Color.Black; this.gvChat.Appearance.GroupButton.ForeColor = Color.White; this.gvChat.Appearance.GroupButton.Options.UseBackColor = true; this.gvChat.Appearance.GroupButton.Options.UseBorderColor = true; this.gvChat.Appearance.GroupButton.Options.UseForeColor = true; this.gvChat.Appearance.GroupFooter.BackColor = Color.FromArgb(10, 10, 10); this.gvChat.Appearance.GroupFooter.BorderColor = Color.FromArgb(10, 10, 10); this.gvChat.Appearance.GroupFooter.ForeColor = Color.White; this.gvChat.Appearance.GroupFooter.Options.UseBackColor = true; this.gvChat.Appearance.GroupFooter.Options.UseBorderColor = true; this.gvChat.Appearance.GroupFooter.Options.UseForeColor = true; this.gvChat.Appearance.GroupPanel.BackColor = Color.Black; this.gvChat.Appearance.GroupPanel.BackColor2 = Color.White; this.gvChat.Appearance.GroupPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvChat.Appearance.GroupPanel.ForeColor = Color.White; this.gvChat.Appearance.GroupPanel.Options.UseBackColor = true; this.gvChat.Appearance.GroupPanel.Options.UseFont = true; this.gvChat.Appearance.GroupPanel.Options.UseForeColor = true; this.gvChat.Appearance.GroupRow.BackColor = Color.Gray; this.gvChat.Appearance.GroupRow.Font = new Font("Tahoma", 10f); this.gvChat.Appearance.GroupRow.ForeColor = Color.White; this.gvChat.Appearance.GroupRow.Options.UseBackColor = true; this.gvChat.Appearance.GroupRow.Options.UseFont = true; this.gvChat.Appearance.GroupRow.Options.UseForeColor = true; this.gvChat.Appearance.HeaderPanel.BackColor = Color.Black; this.gvChat.Appearance.HeaderPanel.BorderColor = Color.Black; this.gvChat.Appearance.HeaderPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvChat.Appearance.HeaderPanel.ForeColor = Color.White; this.gvChat.Appearance.HeaderPanel.Options.UseBackColor = true; this.gvChat.Appearance.HeaderPanel.Options.UseBorderColor = true; this.gvChat.Appearance.HeaderPanel.Options.UseFont = true; this.gvChat.Appearance.HeaderPanel.Options.UseForeColor = true; this.gvChat.Appearance.HideSelectionRow.BackColor = Color.Black; this.gvChat.Appearance.HideSelectionRow.Font = new Font("Tahoma", 10f); this.gvChat.Appearance.HideSelectionRow.ForeColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvChat.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvChat.Appearance.HideSelectionRow.Options.UseFont = true; this.gvChat.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvChat.Appearance.HorzLine.BackColor = Color.Yellow; this.gvChat.Appearance.HorzLine.Options.UseBackColor = true; this.gvChat.Appearance.Preview.BackColor = Color.White; this.gvChat.Appearance.Preview.Font = new Font("Tahoma", 10f); this.gvChat.Appearance.Preview.ForeColor = Color.Purple; this.gvChat.Appearance.Preview.Options.UseBackColor = true; this.gvChat.Appearance.Preview.Options.UseFont = true; this.gvChat.Appearance.Preview.Options.UseForeColor = true; this.gvChat.Appearance.Row.BackColor = Color.Black; this.gvChat.Appearance.Row.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0xb2); this.gvChat.Appearance.Row.ForeColor = Color.White; this.gvChat.Appearance.Row.Options.UseBackColor = true; this.gvChat.Appearance.Row.Options.UseFont = true; this.gvChat.Appearance.Row.Options.UseForeColor = true; this.gvChat.Appearance.RowSeparator.BackColor = Color.White; this.gvChat.Appearance.RowSeparator.BackColor2 = Color.White; this.gvChat.Appearance.RowSeparator.Options.UseBackColor = true; this.gvChat.Appearance.SelectedRow.BackColor = Color.FromArgb(0x40, 0x40, 0x40); this.gvChat.Appearance.SelectedRow.BackColor2 = Color.Black; this.gvChat.Appearance.SelectedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvChat.Appearance.SelectedRow.ForeColor = Color.White; this.gvChat.Appearance.SelectedRow.Options.UseBackColor = true; this.gvChat.Appearance.SelectedRow.Options.UseFont = true; this.gvChat.Appearance.SelectedRow.Options.UseForeColor = true; this.gvChat.Appearance.TopNewRow.Font = new Font("Tahoma", 10f); this.gvChat.Appearance.TopNewRow.ForeColor = Color.White; this.gvChat.Appearance.TopNewRow.Options.UseFont = true; this.gvChat.Appearance.TopNewRow.Options.UseForeColor = true; this.gvChat.Appearance.VertLine.BackColor = Color.Yellow; this.gvChat.Appearance.VertLine.Options.UseBackColor = true; this.gvChat.BorderStyle = BorderStyles.NoBorder; this.gvChat.Columns.AddRange(new GridColumn[] { this.colIcon, this.colPlayer, this.colText, this.gcVisible }); this.gvChat.GridControl = this.gpgChatGrid; this.gvChat.Name = "gvChat"; this.gvChat.OptionsDetail.AllowZoomDetail = false; this.gvChat.OptionsDetail.EnableMasterViewMode = false; this.gvChat.OptionsDetail.ShowDetailTabs = false; this.gvChat.OptionsDetail.SmartDetailExpand = false; this.gvChat.OptionsSelection.EnableAppearanceFocusedCell = false; this.gvChat.OptionsSelection.MultiSelect = true; this.gvChat.OptionsView.RowAutoHeight = true; this.gvChat.OptionsView.ShowColumnHeaders = false; this.gvChat.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gvChat.OptionsView.ShowGroupPanel = false; this.gvChat.OptionsView.ShowHorzLines = false; this.gvChat.OptionsView.ShowIndicator = false; this.gvChat.OptionsView.ShowVertLines = false; this.colIcon.Caption = "Player Icon"; this.colIcon.ColumnEdit = this.rimPictureEdit3; this.colIcon.FieldName = "Icon"; this.colIcon.Name = "colIcon"; this.colIcon.OptionsColumn.AllowEdit = false; this.colIcon.OptionsColumn.FixedWidth = true; this.colIcon.OptionsColumn.ReadOnly = true; this.colIcon.Width = 40; this.rimPictureEdit3.Name = "rimPictureEdit3"; this.rimPictureEdit3.PictureAlignment = ContentAlignment.TopCenter; this.colPlayer.Caption = "Player Name"; this.colPlayer.ColumnEdit = this.rimMemoEdit3; this.colPlayer.FieldName = "PlayerInfo"; this.colPlayer.Name = "colPlayer"; this.colPlayer.OptionsColumn.AllowEdit = false; this.colPlayer.OptionsColumn.FixedWidth = true; this.colPlayer.OptionsColumn.ReadOnly = true; this.colPlayer.Visible = true; this.colPlayer.VisibleIndex = 0; this.colPlayer.Width = 150; this.rimMemoEdit3.MaxLength = 500; this.rimMemoEdit3.Name = "rimMemoEdit3"; this.colText.Caption = "Chat Content"; this.colText.ColumnEdit = this.rimMemoEdit3; this.colText.FieldName = "Text"; this.colText.Name = "colText"; this.colText.OptionsColumn.AllowEdit = false; this.colText.OptionsColumn.ReadOnly = true; this.colText.Visible = true; this.colText.VisibleIndex = 1; this.colText.Width = 0x120; this.gcVisible.Caption = "gcVisible"; this.gcVisible.FieldName = "IsVisible"; this.gcVisible.Name = "gcVisible"; this.rimTextEdit.AutoHeight = false; this.rimTextEdit.Name = "rimTextEdit"; this.gpgLabel3.AutoStyle = true; this.gpgLabel3.Font = new Font("Arial", 9.75f); this.gpgLabel3.ForeColor = Color.White; this.gpgLabel3.IgnoreMouseWheel = false; this.gpgLabel3.IsStyled = false; this.gpgLabel3.Location = new Point(3, 0x10); this.gpgLabel3.Name = "gpgLabel3"; this.gpgLabel3.Size = new Size(0x83, 0x10); base.ttDefault.SetSuperTip(this.gpgLabel3, null); this.gpgLabel3.TabIndex = 13; this.gpgLabel3.Text = "<LOC>Thumbs Up"; this.gpgLabel3.TextAlign = ContentAlignment.MiddleCenter; this.gpgLabel3.TextStyle = TextStyles.Bold; this.gpgLabePreflMapName.AutoStyle = true; this.gpgLabePreflMapName.Font = new Font("Arial", 9.75f); this.gpgLabePreflMapName.ForeColor = Color.White; this.gpgLabePreflMapName.IgnoreMouseWheel = false; this.gpgLabePreflMapName.IsStyled = false; this.gpgLabePreflMapName.Location = new Point(3, 0xa6); this.gpgLabePreflMapName.Name = "gpgLabePreflMapName"; this.gpgLabePreflMapName.Size = new Size(0x83, 0x29); base.ttDefault.SetSuperTip(this.gpgLabePreflMapName, null); this.gpgLabePreflMapName.TabIndex = 14; this.gpgLabePreflMapName.Text = "Map Name"; this.gpgLabePreflMapName.TextAlign = ContentAlignment.TopCenter; this.gpgLabePreflMapName.TextStyle = TextStyles.Default; this.gpgLabeNonPreflMapName.AutoStyle = true; this.gpgLabeNonPreflMapName.Font = new Font("Arial", 9.75f); this.gpgLabeNonPreflMapName.ForeColor = Color.White; this.gpgLabeNonPreflMapName.IgnoreMouseWheel = false; this.gpgLabeNonPreflMapName.IsStyled = false; this.gpgLabeNonPreflMapName.Location = new Point(140, 0xa6); this.gpgLabeNonPreflMapName.Name = "gpgLabeNonPreflMapName"; this.gpgLabeNonPreflMapName.Size = new Size(0x80, 0x29); base.ttDefault.SetSuperTip(this.gpgLabeNonPreflMapName, null); this.gpgLabeNonPreflMapName.TabIndex = 0x11; this.gpgLabeNonPreflMapName.Text = "Map Name"; this.gpgLabeNonPreflMapName.TextAlign = ContentAlignment.TopCenter; this.gpgLabeNonPreflMapName.TextStyle = TextStyles.Default; this.gpgLabel5.AutoStyle = true; this.gpgLabel5.Font = new Font("Arial", 9.75f); this.gpgLabel5.ForeColor = Color.White; this.gpgLabel5.IgnoreMouseWheel = false; this.gpgLabel5.IsStyled = false; this.gpgLabel5.Location = new Point(0x89, 0x10); this.gpgLabel5.Name = "gpgLabel5"; this.gpgLabel5.Size = new Size(0x83, 0x10); base.ttDefault.SetSuperTip(this.gpgLabel5, null); this.gpgLabel5.TabIndex = 0x10; this.gpgLabel5.Text = "<LOC>Thumbs down"; this.gpgLabel5.TextAlign = ContentAlignment.MiddleCenter; this.gpgLabel5.TextStyle = TextStyles.Bold; this.gpgPictureBoxNonPrefMap.Location = new Point(140, 0x23); this.gpgPictureBoxNonPrefMap.Name = "gpgPictureBoxNonPrefMap"; this.gpgPictureBoxNonPrefMap.Size = new Size(0x80, 0x80); this.gpgPictureBoxNonPrefMap.SizeMode = PictureBoxSizeMode.StretchImage; base.ttDefault.SetSuperTip(this.gpgPictureBoxNonPrefMap, null); this.gpgPictureBoxNonPrefMap.TabIndex = 15; this.gpgPictureBoxNonPrefMap.TabStop = false; this.gpgGroupBox1.Anchor = AnchorStyles.Right | AnchorStyles.Top; this.gpgGroupBox1.Controls.Add(this.gpgLabel3); this.gpgGroupBox1.Controls.Add(this.gpgLabeNonPreflMapName); this.gpgGroupBox1.Controls.Add(this.gpgPictureBoxPrefMap); this.gpgGroupBox1.Controls.Add(this.gpgLabel5); this.gpgGroupBox1.Controls.Add(this.skinButtonChangeMap); this.gpgGroupBox1.Controls.Add(this.gpgPictureBoxNonPrefMap); this.gpgGroupBox1.Controls.Add(this.gpgLabePreflMapName); this.gpgGroupBox1.Location = new Point(0x24b, 0x53); this.gpgGroupBox1.Name = "gpgGroupBox1"; this.gpgGroupBox1.Size = new Size(0x113, 0xf2); base.ttDefault.SetSuperTip(this.gpgGroupBox1, null); this.gpgGroupBox1.TabIndex = 0x12; this.gpgGroupBox1.TabStop = false; this.gpgGroupBox1.Text = "<LOC>Current Map Preferences"; this.skinButtonLeaveTeam.Anchor = AnchorStyles.Bottom; this.skinButtonLeaveTeam.AutoStyle = true; this.skinButtonLeaveTeam.BackColor = Color.Black; this.skinButtonLeaveTeam.DialogResult = DialogResult.OK; this.skinButtonLeaveTeam.DisabledForecolor = Color.Gray; this.skinButtonLeaveTeam.DrawEdges = true; this.skinButtonLeaveTeam.FocusColor = Color.Yellow; this.skinButtonLeaveTeam.Font = new Font("Verdana", 8f, FontStyle.Bold); this.skinButtonLeaveTeam.ForeColor = Color.White; this.skinButtonLeaveTeam.HorizontalScalingMode = ScalingModes.Tile; this.skinButtonLeaveTeam.IsStyled = true; this.skinButtonLeaveTeam.Location = new Point(0x14b, 0x227); this.skinButtonLeaveTeam.Name = "skinButtonLeaveTeam"; this.skinButtonLeaveTeam.Size = new Size(130, 0x1a); this.skinButtonLeaveTeam.SkinBasePath = @"Controls\Button\Round Edge"; base.ttDefault.SetSuperTip(this.skinButtonLeaveTeam, null); this.skinButtonLeaveTeam.TabIndex = 10; this.skinButtonLeaveTeam.Text = "<LOC>Disband"; this.skinButtonLeaveTeam.TextAlign = ContentAlignment.MiddleCenter; this.skinButtonLeaveTeam.TextPadding = new Padding(0); this.skinButtonLeaveTeam.Click += new EventHandler(this.skinButtonLeaveTeam_Click); base.AutoScaleDimensions = new SizeF(7f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x369, 640); base.Controls.Add(this.skinButtonLeaveTeam); base.Controls.Add(this.gpgGroupBox1); base.Controls.Add(this.gpgChatGrid); base.Controls.Add(this.textBoxMsg); base.Controls.Add(this.skinButtonLaunch); base.Controls.Add(this.gpgGroupBoxMembers); this.Font = new Font("Verdana", 8f); base.Location = new Point(0, 0); this.MinimumSize = new Size(0x369, 640); base.Name = "DlgTeamGame"; base.ttDefault.SetSuperTip(this, null); this.Text = "<LOC>Team Selection"; base.Controls.SetChildIndex(this.gpgGroupBoxMembers, 0); base.Controls.SetChildIndex(this.skinButtonLaunch, 0); base.Controls.SetChildIndex(this.textBoxMsg, 0); base.Controls.SetChildIndex(this.gpgChatGrid, 0); base.Controls.SetChildIndex(this.gpgGroupBox1, 0); base.Controls.SetChildIndex(this.skinButtonLeaveTeam, 0); this.gpgGroupBoxMembers.ResumeLayout(false); this.gpgGroupBoxMembers.PerformLayout(); ((ISupportInitialize) this.gpgPictureBoxPrefMap).EndInit(); this.textBoxMsg.Properties.EndInit(); this.gpgChatGrid.EndInit(); this.gvChat.EndInit(); this.rimPictureEdit3.EndInit(); this.rimMemoEdit3.EndInit(); this.rimTextEdit.EndInit(); ((ISupportInitialize) this.gpgPictureBoxNonPrefMap).EndInit(); this.gpgGroupBox1.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { this.components = (IContainer) new Container(); GridLevelNode gridLevelNode = new GridLevelNode(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(GoodAnalogForm)); this.gridView2 = new GridView(); this.colgood_marking = new GridColumn(); this.colgood_name = new GridColumn(); this.gridControl1 = new GridControl(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.toolStripMenuItem1 = new ToolStripMenuItem(); this.toolStripMenuItem2 = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.toolStripMenuItem3 = new ToolStripMenuItem(); this.toolStripMenuItem4 = new ToolStripMenuItem(); this.ds = new DataSet(); this.table_goodanalog = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.dataColumn3 = new DataColumn(); this.dataColumn9 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.table_goodanalogdetail = new DataTable(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.table_goodanaloggroup = new DataTable(); this.dataColumn10 = new DataColumn(); this.dataColumn11 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.gridView1 = new GridView(); this.colidgoodanalog = new GridColumn(); this.colname = new GridColumn(); this.colanaloggroup = new GridColumn(); this.colcomment = new GridColumn(); this.colidgoodanaloggroup = new GridColumn(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.treeList1 = new TreeList(); this.treeListColumn1 = new TreeListColumn(); this.contextMenuStrip2 = new ContextMenuStrip(this.components); this.toolStripMenuItem5 = new ToolStripMenuItem(); this.toolStripMenuItem6 = new ToolStripMenuItem(); this.toolStripMenuItem7 = new ToolStripMenuItem(); this.toolStripSeparator2 = new ToolStripSeparator(); this.toolStripMenuItem8 = new ToolStripMenuItem(); this.splitter1 = new Splitter(); this.imageList1 = new ImageList(this.components); this.gridView2.BeginInit(); this.gridControl1.BeginInit(); this.contextMenuStrip1.SuspendLayout(); this.ds.BeginInit(); this.table_goodanalog.BeginInit(); this.table_goodanalogdetail.BeginInit(); this.table_goodanaloggroup.BeginInit(); this.gridView1.BeginInit(); this.panel1.SuspendLayout(); this.treeList1.BeginInit(); this.contextMenuStrip2.SuspendLayout(); this.SuspendLayout(); this.gridView2.OptionsDetail.ShowDetailTabs = false; this.gridView2.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView2.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView2.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView2.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView2.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView2.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView2.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView2.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView2.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView2.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView2.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView2.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView2.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView2.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView2.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView2.BorderStyle = BorderStyles.Simple; this.gridView2.Columns.AddRange(new GridColumn[2] { this.colgood_marking, this.colgood_name }); this.gridView2.GridControl = this.gridControl1; this.gridView2.Name = "gridView2"; this.gridView2.OptionsCustomization.AllowFilter = false; this.gridView2.OptionsCustomization.AllowGroup = false; this.gridView2.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView2.OptionsView.ShowGroupPanel = false; this.gridView2.OptionsView.ShowIndicator = false; this.colgood_marking.Caption = "Артикул материала"; this.colgood_marking.FieldName = "good_marking"; this.colgood_marking.Name = "colgood_marking"; this.colgood_marking.Visible = true; this.colgood_marking.VisibleIndex = 0; this.colgood_marking.Width = 252; this.colgood_name.Caption = "Наименование материала"; this.colgood_name.FieldName = "good_name"; this.colgood_name.Name = "colgood_name"; this.colgood_name.Visible = true; this.colgood_name.VisibleIndex = 1; this.colgood_name.Width = 603; this.gridControl1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControl1.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControl1.ContextMenuStrip = this.contextMenuStrip1; this.gridControl1.DataMember = "goodanalog"; this.gridControl1.DataSource = (object)this.ds; this.gridControl1.Dock = DockStyle.Fill; this.gridControl1.EmbeddedNavigator.Name = ""; gridLevelNode.LevelTemplate = (BaseView)this.gridView2; gridLevelNode.RelationName = "Relation1"; this.gridControl1.LevelTree.Nodes.AddRange(new GridLevelNode[1] { gridLevelNode }); this.gridControl1.Location = new Point(193, 0); this.gridControl1.MainView = (BaseView)this.gridView1; this.gridControl1.Name = "gridControl1"; this.gridControl1.Size = new Size(521, 433); this.gridControl1.TabIndex = 4; this.gridControl1.ViewCollection.AddRange(new BaseView[2] { (BaseView)this.gridView1, (BaseView)this.gridView2 }); this.contextMenuStrip1.Items.AddRange(new ToolStripItem[5] { (ToolStripItem)this.toolStripMenuItem1, (ToolStripItem)this.toolStripMenuItem2, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.toolStripMenuItem3, (ToolStripItem)this.toolStripMenuItem4 }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(187, 98); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(186, 22); this.toolStripMenuItem1.Text = "Добавить аналог"; this.toolStripMenuItem1.Click += new EventHandler(this.toolStripMenuItem1_Click); this.toolStripMenuItem2.Name = "toolStripMenuItem2"; this.toolStripMenuItem2.Size = new Size(186, 22); this.toolStripMenuItem2.Text = "Удалить аналог"; this.toolStripMenuItem2.Click += new EventHandler(this.toolStripMenuItem2_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(183, 6); this.toolStripMenuItem3.Name = "toolStripMenuItem3"; this.toolStripMenuItem3.Size = new Size(186, 22); this.toolStripMenuItem3.Text = "Добавить материал"; this.toolStripMenuItem3.Click += new EventHandler(this.toolStripMenuItem3_Click); this.toolStripMenuItem4.Name = "toolStripMenuItem4"; this.toolStripMenuItem4.Size = new Size(186, 22); this.toolStripMenuItem4.Text = "Удалить материал"; this.toolStripMenuItem4.Click += new EventHandler(this.toolStripMenuItem4_Click); this.ds.DataSetName = "ds_goodanalog"; this.ds.EnforceConstraints = false; this.ds.Relations.AddRange(new DataRelation[1] { new DataRelation("Relation1", "goodanalog", "goodanalogdetail", new string[1] { "idgoodanalog" }, new string[1] { "idgoodanalog" }, 0 != 0) }); this.ds.Tables.AddRange(new DataTable[3] { this.table_goodanalog, this.table_goodanalogdetail, this.table_goodanaloggroup }); this.table_goodanalog.Columns.AddRange(new DataColumn[5] { this.dataColumn1, this.dataColumn2, this.dataColumn3, this.dataColumn9, this.dataColumn13 }); this.table_goodanalog.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idgoodanalog" }, 1 != 0) }); this.table_goodanalog.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_goodanalog.TableName = "goodanalog"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idgoodanalog"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.dataColumn3.ColumnName = "analoggroup"; this.dataColumn9.ColumnName = "comment"; this.dataColumn13.ColumnName = "idgoodanaloggroup"; this.dataColumn13.DataType = typeof(int); this.table_goodanalogdetail.Columns.AddRange(new DataColumn[5] { this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn7, this.dataColumn8 }); this.table_goodanalogdetail.Constraints.AddRange(new Constraint[2] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idgoodanalogdetail" }, 1 != 0), (Constraint) new ForeignKeyConstraint("Relation1", "goodanalog", new string[1] { "idgoodanalog" }, new string[1] { "idgoodanalog" }, AcceptRejectRule.None, Rule.Cascade, Rule.Cascade) }); this.table_goodanalogdetail.PrimaryKey = new DataColumn[1] { this.dataColumn4 }; this.table_goodanalogdetail.TableName = "goodanalogdetail"; this.dataColumn4.AllowDBNull = false; this.dataColumn4.ColumnName = "idgoodanalogdetail"; this.dataColumn4.DataType = typeof(int); this.dataColumn5.ColumnName = "idgoodanalog"; this.dataColumn5.DataType = typeof(int); this.dataColumn6.ColumnName = "idgood"; this.dataColumn6.DataType = typeof(int); this.dataColumn7.ColumnName = "good_name"; this.dataColumn7.Prefix = "local"; this.dataColumn8.ColumnName = "good_marking"; this.dataColumn8.Prefix = "local"; this.table_goodanaloggroup.Columns.AddRange(new DataColumn[3] { this.dataColumn10, this.dataColumn11, this.dataColumn12 }); this.table_goodanaloggroup.TableName = "goodanaloggroup"; this.dataColumn10.ColumnName = "idgoodanaloggroup"; this.dataColumn10.DataType = typeof(int); this.dataColumn11.ColumnName = "parentid"; this.dataColumn11.DataType = typeof(int); this.dataColumn12.ColumnName = "_imageindex"; this.dataColumn12.DataType = typeof(int); this.dataColumn12.DefaultValue = (object)0; this.gridView1.OptionsDetail.ShowDetailTabs = false; this.gridView1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.FocusedRow.ForeColor = Color.Black; this.gridView1.Appearance.FocusedRow.Options.UseBackColor = true; this.gridView1.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridView1.Appearance.FocusedRow.Options.UseForeColor = true; this.gridView1.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.GroupPanel.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridView1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gridView1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridView1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridView1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridView1.Appearance.SelectedRow.ForeColor = Color.Black; this.gridView1.Appearance.SelectedRow.Options.UseBackColor = true; this.gridView1.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridView1.Appearance.SelectedRow.Options.UseForeColor = true; this.gridView1.BorderStyle = BorderStyles.Simple; this.gridView1.Columns.AddRange(new GridColumn[5] { this.colidgoodanalog, this.colname, this.colanaloggroup, this.colcomment, this.colidgoodanaloggroup }); this.gridView1.GridControl = this.gridControl1; this.gridView1.GroupPanelText = "Панель группировки"; this.gridView1.Name = "gridView1"; this.gridView1.OptionsCustomization.AllowFilter = false; this.gridView1.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridView1.OptionsView.ShowIndicator = false; this.colidgoodanalog.Caption = "#"; this.colidgoodanalog.FieldName = "idgoodanalog"; this.colidgoodanalog.Name = "colidgoodanalog"; this.colidgoodanalog.Visible = true; this.colidgoodanalog.VisibleIndex = 0; this.colidgoodanalog.Width = 78; this.colname.Caption = "Наименование"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 1; this.colname.Width = 211; this.colanaloggroup.Caption = "Группа"; this.colanaloggroup.FieldName = "analoggroup"; this.colanaloggroup.Name = "colanaloggroup"; this.colanaloggroup.Visible = true; this.colanaloggroup.VisibleIndex = 2; this.colanaloggroup.Width = 211; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 3; this.colcomment.Width = 212; this.colidgoodanaloggroup.Caption = "idgoodanaloggroup"; this.colidgoodanaloggroup.FieldName = "idgoodanaloggroup"; this.colidgoodanaloggroup.Name = "colidgoodanaloggroup"; this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 433); this.panel1.Name = "panel1"; this.panel1.Size = new Size(714, 33); this.panel1.TabIndex = 3; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(627, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(546, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(465, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.treeList1.LookAndFeel.Style = LookAndFeelStyle.Flat; this.treeList1.LookAndFeel.UseDefaultLookAndFeel = false; this.treeList1.Appearance.FocusedCell.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.FocusedCell.ForeColor = Color.Black; this.treeList1.Appearance.FocusedCell.Options.UseBackColor = true; this.treeList1.Appearance.FocusedCell.Options.UseForeColor = true; this.treeList1.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.FocusedRow.ForeColor = Color.Black; this.treeList1.Appearance.FocusedRow.Options.UseBackColor = true; this.treeList1.Appearance.FocusedRow.Options.UseForeColor = true; this.treeList1.Appearance.HideSelectionRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.HideSelectionRow.ForeColor = Color.Black; this.treeList1.Appearance.HideSelectionRow.Options.UseBackColor = true; this.treeList1.Appearance.HideSelectionRow.Options.UseForeColor = true; this.treeList1.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeList1.Appearance.SelectedRow.ForeColor = Color.Black; this.treeList1.Appearance.SelectedRow.Options.UseBackColor = true; this.treeList1.Appearance.SelectedRow.Options.UseForeColor = true; this.treeList1.BorderStyle = BorderStyles.Simple; this.treeList1.Columns.AddRange(new TreeListColumn[1] { this.treeListColumn1 }); this.treeList1.ContextMenuStrip = this.contextMenuStrip2; this.treeList1.DataMember = "goodanaloggroup"; this.treeList1.DataSource = (object)this.ds; this.treeList1.Dock = DockStyle.Left; this.treeList1.HorzScrollVisibility = DevExpress.XtraTreeList.ScrollVisibility.Never; this.treeList1.ImageIndexFieldName = "imageindex_"; this.treeList1.KeyFieldName = "idgoodanaloggroup"; this.treeList1.Location = new Point(0, 0); this.treeList1.Name = "treeList1"; this.treeList1.OptionsBehavior.AutoFocusNewNode = true; this.treeList1.OptionsView.ShowHorzLines = false; this.treeList1.OptionsView.ShowIndicator = false; this.treeList1.OptionsView.ShowVertLines = false; this.treeList1.ParentFieldName = "parentid"; this.treeList1.SelectImageList = (object)this.imageList1; this.treeList1.Size = new Size(190, 433); this.treeList1.TabIndex = 5; this.treeListColumn1.Caption = "Группы аналогов"; this.treeListColumn1.FieldName = "name"; this.treeListColumn1.MinWidth = 27; this.treeListColumn1.Name = "treeListColumn1"; this.treeListColumn1.OptionsColumn.AllowEdit = false; this.treeListColumn1.VisibleIndex = 0; this.treeListColumn1.Width = 92; this.contextMenuStrip2.Items.AddRange(new ToolStripItem[5] { (ToolStripItem)this.toolStripMenuItem5, (ToolStripItem)this.toolStripMenuItem6, (ToolStripItem)this.toolStripMenuItem7, (ToolStripItem)this.toolStripSeparator2, (ToolStripItem)this.toolStripMenuItem8 }); this.contextMenuStrip2.Name = "contextMenuStrip2"; this.contextMenuStrip2.Size = new Size(232, 98); this.toolStripMenuItem5.Name = "toolStripMenuItem5"; this.toolStripMenuItem5.Size = new Size(231, 22); this.toolStripMenuItem5.Text = "Добавить основную группу"; this.toolStripMenuItem5.Click += new EventHandler(this.toolStripMenuItem5_Click); this.toolStripMenuItem6.Name = "toolStripMenuItem6"; this.toolStripMenuItem6.Size = new Size(231, 22); this.toolStripMenuItem6.Text = "Добавить дочернюю группу"; this.toolStripMenuItem6.Click += new EventHandler(this.toolStripMenuItem6_Click); this.toolStripMenuItem7.Name = "toolStripMenuItem7"; this.toolStripMenuItem7.Size = new Size(231, 22); this.toolStripMenuItem7.Text = "Переименовать"; this.toolStripMenuItem7.Click += new EventHandler(this.toolStripMenuItem7_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(228, 6); this.toolStripMenuItem8.Name = "toolStripMenuItem8"; this.toolStripMenuItem8.Size = new Size(231, 22); this.toolStripMenuItem8.Text = "Удалить"; this.toolStripMenuItem8.Click += new EventHandler(this.toolStripMenuItem8_Click); this.splitter1.Location = new Point(190, 0); this.splitter1.Name = "splitter1"; this.splitter1.Size = new Size(3, 433); this.splitter1.TabIndex = 6; this.splitter1.TabStop = false; this.imageList1.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("imageList1.ImageStream"); this.imageList1.TransparentColor = Color.Transparent; this.imageList1.Images.SetKeyName(0, "Folder.ico"); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControl1); this.Controls.Add((Control)this.splitter1); this.Controls.Add((Control)this.treeList1); this.Controls.Add((Control)this.panel1); this.Name = "GoodAnalogForm"; this.Size = new Size(714, 466); this.Text = "Аналоги материалов"; this.gridView2.EndInit(); this.gridControl1.EndInit(); this.contextMenuStrip1.ResumeLayout(false); this.ds.EndInit(); this.table_goodanalog.EndInit(); this.table_goodanalogdetail.EndInit(); this.table_goodanaloggroup.EndInit(); this.gridView1.EndInit(); this.panel1.ResumeLayout(false); this.treeList1.EndInit(); this.contextMenuStrip2.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); GridLevelNode gridLevelNode = new GridLevelNode(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TemplateProductionTypeForm)); this.gridViewTemplateParam = new GridView(); this.colidtemplateparam = new GridColumn(); this.colmodelparam_name = new GridColumn(); this.colintvalue = new GridColumn(); this.cboNumericValue = new RepositoryItemComboBox(); this.colstrvalue = new GridColumn(); this.cboStrValue1 = new RepositoryItemComboBox(); this.colstrvalue2 = new GridColumn(); this.cboStrValue2 = new RepositoryItemComboBox(); this.gridControlTemplate = new GridControl(); this.MenuItem = new ContextMenuStrip(this.components); this.MenuItemAdd = new ToolStripMenuItem(); this.MenuItemDoublicate = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.MenuItemRemove = new ToolStripMenuItem(); this.toolStripSeparator5 = new ToolStripSeparator(); this.MenuItemMoveToGroup = new ToolStripMenuItem(); this.ds = new ds_template(); this.gridViewTemplate = new GridView(); this.colidtemplate = new GridColumn(); this.colproductiontype_name = new GridColumn(); this.colname = new GridColumn(); this.colcomment = new GridColumn(); this.colpicture = new GridColumn(); this.PictureEdit = new RepositoryItemPictureEdit(); this.splitterControl1 = new SplitterControl(); this.treeListTemplateGroup = new TreeList(); this.coltemplategroup = new TreeListColumn(); this.MenuGroup = new ContextMenuStrip(this.components); this.MenuGroupeAddMain = new ToolStripMenuItem(); this.MenuGroupeAddChild = new ToolStripMenuItem(); this.MenuGroupeRename = new ToolStripMenuItem(); this.toolStripSeparator4 = new ToolStripSeparator(); this.MenuGroupeRemove = new ToolStripMenuItem(); this.toolStripSeparator3 = new ToolStripSeparator(); this.MenuGroupSetMain = new ToolStripMenuItem(); this.MenuGroupMoveToGroup = new ToolStripMenuItem(); this.imageList1 = new ImageList(this.components); this.atButtonsPanel1 = new atButtonsPanel(); this.gridViewTemplateParam.BeginInit(); this.cboNumericValue.BeginInit(); this.cboStrValue1.BeginInit(); this.cboStrValue2.BeginInit(); this.gridControlTemplate.BeginInit(); this.MenuItem.SuspendLayout(); this.ds.BeginInit(); this.gridViewTemplate.BeginInit(); this.PictureEdit.BeginInit(); this.treeListTemplateGroup.BeginInit(); this.MenuGroup.SuspendLayout(); this.atButtonsPanel1.BeginInit(); this.SuspendLayout(); this.gridViewTemplateParam.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.FocusedRow.ForeColor = SystemColors.ControlText; this.gridViewTemplateParam.Appearance.FocusedRow.Options.UseBackColor = true; this.gridViewTemplateParam.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridViewTemplateParam.Appearance.FocusedRow.Options.UseForeColor = true; this.gridViewTemplateParam.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.GroupPanel.Options.UseBackColor = true; this.gridViewTemplateParam.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.HideSelectionRow.ForeColor = SystemColors.ControlText; this.gridViewTemplateParam.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridViewTemplateParam.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridViewTemplateParam.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridViewTemplateParam.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplateParam.Appearance.SelectedRow.ForeColor = SystemColors.ControlText; this.gridViewTemplateParam.Appearance.SelectedRow.Options.UseBackColor = true; this.gridViewTemplateParam.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridViewTemplateParam.Appearance.SelectedRow.Options.UseForeColor = true; this.gridViewTemplateParam.Columns.AddRange(new GridColumn[5] { this.colidtemplateparam, this.colmodelparam_name, this.colintvalue, this.colstrvalue, this.colstrvalue2 }); this.gridViewTemplateParam.GridControl = this.gridControlTemplate; this.gridViewTemplateParam.GroupPanelText = "Панель группировки"; this.gridViewTemplateParam.Name = "gridViewTemplateParam"; this.gridViewTemplateParam.OptionsSelection.MultiSelect = true; this.gridViewTemplateParam.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridViewTemplateParam.OptionsView.ShowIndicator = false; this.colidtemplateparam.Caption = "#"; this.colidtemplateparam.FieldName = "idtemplateparam"; this.colidtemplateparam.Name = "colidtemplateparam"; this.colidtemplateparam.OptionsColumn.AllowEdit = false; this.colidtemplateparam.Visible = true; this.colidtemplateparam.VisibleIndex = 0; this.colmodelparam_name.Caption = "Наименование"; this.colmodelparam_name.FieldName = "modelparam_name"; this.colmodelparam_name.Name = "colmodelparam_name"; this.colmodelparam_name.OptionsColumn.AllowEdit = false; this.colmodelparam_name.Visible = true; this.colmodelparam_name.VisibleIndex = 1; this.colintvalue.Caption = "Число"; this.colintvalue.ColumnEdit = (RepositoryItem)this.cboNumericValue; this.colintvalue.FieldName = "intvalue"; this.colintvalue.Name = "colintvalue"; this.colintvalue.Visible = true; this.colintvalue.VisibleIndex = 2; this.cboNumericValue.AutoHeight = false; this.cboNumericValue.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.cboNumericValue.Name = "cboNumericValue"; this.colstrvalue.Caption = "Строка 1"; this.colstrvalue.ColumnEdit = (RepositoryItem)this.cboStrValue1; this.colstrvalue.FieldName = "strvalue"; this.colstrvalue.Name = "colstrvalue"; this.colstrvalue.Visible = true; this.colstrvalue.VisibleIndex = 3; this.cboStrValue1.AutoHeight = false; this.cboStrValue1.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.cboStrValue1.Name = "cboStrValue1"; this.colstrvalue2.Caption = "Строка 2"; this.colstrvalue2.ColumnEdit = (RepositoryItem)this.cboStrValue2; this.colstrvalue2.FieldName = "strvalue2"; this.colstrvalue2.Name = "colstrvalue2"; this.colstrvalue2.Visible = true; this.colstrvalue2.VisibleIndex = 4; this.cboStrValue2.AutoHeight = false; this.cboStrValue2.Buttons.AddRange(new EditorButton[1] { new EditorButton(ButtonPredefines.Combo) }); this.cboStrValue2.Name = "cboStrValue2"; this.gridControlTemplate.ContextMenuStrip = this.MenuItem; this.gridControlTemplate.DataMember = "templategroup.FK_template_templategroup"; this.gridControlTemplate.DataSource = (object)this.ds; this.gridControlTemplate.Dock = DockStyle.Fill; this.gridControlTemplate.EmbeddedNavigator.Name = ""; this.gridControlTemplate.FormsUseDefaultLookAndFeel = false; gridLevelNode.LevelTemplate = (BaseView)this.gridViewTemplateParam; gridLevelNode.RelationName = "FK_template_templateparam"; this.gridControlTemplate.LevelTree.Nodes.AddRange(new GridLevelNode[1] { gridLevelNode }); this.gridControlTemplate.Location = new Point(203, 0); this.gridControlTemplate.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gridControlTemplate.LookAndFeel.UseDefaultLookAndFeel = false; this.gridControlTemplate.MainView = (BaseView)this.gridViewTemplate; this.gridControlTemplate.Name = "gridControlTemplate"; this.gridControlTemplate.RepositoryItems.AddRange(new RepositoryItem[4] { (RepositoryItem)this.PictureEdit, (RepositoryItem)this.cboStrValue2, (RepositoryItem)this.cboStrValue1, (RepositoryItem)this.cboNumericValue }); this.gridControlTemplate.Size = new Size(669, 361); this.gridControlTemplate.TabIndex = 0; this.gridControlTemplate.ViewCollection.AddRange(new BaseView[2] { (BaseView)this.gridViewTemplate, (BaseView)this.gridViewTemplateParam }); this.MenuItem.Items.AddRange(new ToolStripItem[6] { (ToolStripItem)this.MenuItemAdd, (ToolStripItem)this.MenuItemDoublicate, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.MenuItemRemove, (ToolStripItem)this.toolStripSeparator5, (ToolStripItem)this.MenuItemMoveToGroup }); this.MenuItem.Name = "contextMenuStrip1"; this.MenuItem.Size = new Size(252, 104); this.MenuItemAdd.Name = "MenuItemAdd"; this.MenuItemAdd.ShortcutKeys = Keys.Insert | Keys.Control; this.MenuItemAdd.Size = new Size(251, 22); this.MenuItemAdd.Text = "Добавить шаблон"; this.MenuItemAdd.Click += new EventHandler(this.MenuItemAdd_Click); this.MenuItemDoublicate.Name = "MenuItemDoublicate"; this.MenuItemDoublicate.ShortcutKeys = Keys.Insert | Keys.Control | Keys.Alt; this.MenuItemDoublicate.Size = new Size(251, 22); this.MenuItemDoublicate.Text = "Дублировать шаблон"; this.MenuItemDoublicate.Click += new EventHandler(this.MenuItemDoublicate_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(248, 6); this.MenuItemRemove.Name = "MenuItemRemove"; this.MenuItemRemove.ShortcutKeys = Keys.Delete | Keys.Control; this.MenuItemRemove.Size = new Size(251, 22); this.MenuItemRemove.Text = "Удалить шаблон"; this.MenuItemRemove.Click += new EventHandler(this.MenuItemRemove_Click); this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new Size(248, 6); this.MenuItemMoveToGroup.Name = "MenuItemMoveToGroup"; this.MenuItemMoveToGroup.ShortcutKeys = Keys.F6; this.MenuItemMoveToGroup.Size = new Size(251, 22); this.MenuItemMoveToGroup.Text = "Переместить в группу"; this.MenuItemMoveToGroup.Click += new EventHandler(this.MenuItemMoveToGroup_Click); this.ds.DataSetName = "ds_template"; this.ds.EnforceConstraints = false; this.ds.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; this.gridViewTemplate.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplate.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplate.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplate.Appearance.FocusedRow.ForeColor = SystemColors.ControlText; this.gridViewTemplate.Appearance.FocusedRow.Options.UseBackColor = true; this.gridViewTemplate.Appearance.FocusedRow.Options.UseBorderColor = true; this.gridViewTemplate.Appearance.FocusedRow.Options.UseForeColor = true; this.gridViewTemplate.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplate.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplate.Appearance.GroupPanel.Options.UseBackColor = true; this.gridViewTemplate.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplate.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplate.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gridViewTemplate.Appearance.HideSelectionRow.ForeColor = SystemColors.ControlText; this.gridViewTemplate.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gridViewTemplate.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gridViewTemplate.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gridViewTemplate.Appearance.Row.ForeColor = SystemColors.ControlText; this.gridViewTemplate.Appearance.Row.Options.UseForeColor = true; this.gridViewTemplate.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplate.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplate.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gridViewTemplate.Appearance.SelectedRow.ForeColor = SystemColors.ControlText; this.gridViewTemplate.Appearance.SelectedRow.Options.UseBackColor = true; this.gridViewTemplate.Appearance.SelectedRow.Options.UseBorderColor = true; this.gridViewTemplate.Appearance.SelectedRow.Options.UseForeColor = true; this.gridViewTemplate.BorderStyle = BorderStyles.Simple; this.gridViewTemplate.Columns.AddRange(new GridColumn[5] { this.colidtemplate, this.colproductiontype_name, this.colname, this.colcomment, this.colpicture }); this.gridViewTemplate.GridControl = this.gridControlTemplate; this.gridViewTemplate.GroupPanelText = "Панель группировки"; this.gridViewTemplate.Name = "gridViewTemplate"; this.gridViewTemplate.OptionsBehavior.AllowIncrementalSearch = true; this.gridViewTemplate.OptionsDetail.ShowDetailTabs = false; this.gridViewTemplate.OptionsLayout.StoreVisualOptions = false; this.gridViewTemplate.OptionsSelection.MultiSelect = true; this.gridViewTemplate.OptionsView.RowAutoHeight = true; this.gridViewTemplate.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gridViewTemplate.OptionsView.ShowIndicator = false; this.colidtemplate.AppearanceHeader.ForeColor = SystemColors.ControlText; this.colidtemplate.AppearanceHeader.Options.UseForeColor = true; this.colidtemplate.Caption = "#"; this.colidtemplate.FieldName = "idtemplate"; this.colidtemplate.Name = "colidtemplate"; this.colidtemplate.OptionsColumn.AllowEdit = false; this.colidtemplate.Visible = true; this.colidtemplate.VisibleIndex = 0; this.colidtemplate.Width = 53; this.colproductiontype_name.AppearanceCell.Options.UseTextOptions = true; this.colproductiontype_name.AppearanceCell.TextOptions.WordWrap = WordWrap.Wrap; this.colproductiontype_name.Caption = "Тип продукции"; this.colproductiontype_name.FieldName = "productiontype_name"; this.colproductiontype_name.Name = "colproductiontype_name"; this.colproductiontype_name.OptionsColumn.AllowEdit = false; this.colproductiontype_name.Visible = true; this.colproductiontype_name.VisibleIndex = 1; this.colname.AppearanceCell.Options.UseTextOptions = true; this.colname.AppearanceCell.TextOptions.WordWrap = WordWrap.Wrap; this.colname.AppearanceHeader.ForeColor = SystemColors.ControlText; this.colname.AppearanceHeader.Options.UseForeColor = true; this.colname.Caption = "Наименование"; this.colname.CustomizationCaption = "Наименование"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 2; this.colname.Width = 203; this.colcomment.AppearanceCell.Options.UseTextOptions = true; this.colcomment.AppearanceCell.TextOptions.WordWrap = WordWrap.Wrap; this.colcomment.AppearanceHeader.ForeColor = SystemColors.ControlText; this.colcomment.AppearanceHeader.Options.UseForeColor = true; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 3; this.colcomment.Width = 203; this.colpicture.AppearanceHeader.ForeColor = SystemColors.ControlText; this.colpicture.AppearanceHeader.Options.UseForeColor = true; this.colpicture.Caption = "Картинка"; this.colpicture.ColumnEdit = (RepositoryItem)this.PictureEdit; this.colpicture.FieldName = "picture"; this.colpicture.Name = "colpicture"; this.colpicture.OptionsColumn.AllowEdit = false; this.colpicture.OptionsColumn.ReadOnly = true; this.colpicture.Visible = true; this.colpicture.VisibleIndex = 4; this.colpicture.Width = 208; this.PictureEdit.Name = "PictureEdit"; this.PictureEdit.ReadOnly = true; this.PictureEdit.ShowMenu = false; this.PictureEdit.SizeMode = PictureSizeMode.Zoom; this.splitterControl1.Location = new Point(197, 0); this.splitterControl1.Name = "splitterControl1"; this.splitterControl1.Size = new Size(6, 361); this.splitterControl1.TabIndex = 3; this.splitterControl1.TabStop = false; this.treeListTemplateGroup.Appearance.FocusedCell.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListTemplateGroup.Appearance.FocusedCell.ForeColor = Color.Black; this.treeListTemplateGroup.Appearance.FocusedCell.Options.UseBackColor = true; this.treeListTemplateGroup.Appearance.FocusedCell.Options.UseForeColor = true; this.treeListTemplateGroup.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListTemplateGroup.Appearance.FocusedRow.ForeColor = Color.Black; this.treeListTemplateGroup.Appearance.FocusedRow.Options.UseBackColor = true; this.treeListTemplateGroup.Appearance.FocusedRow.Options.UseForeColor = true; this.treeListTemplateGroup.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListTemplateGroup.Appearance.SelectedRow.ForeColor = Color.Black; this.treeListTemplateGroup.Appearance.SelectedRow.Options.UseBackColor = true; this.treeListTemplateGroup.Appearance.SelectedRow.Options.UseForeColor = true; this.treeListTemplateGroup.BorderStyle = BorderStyles.Simple; this.treeListTemplateGroup.Columns.AddRange(new TreeListColumn[1] { this.coltemplategroup }); this.treeListTemplateGroup.ContextMenuStrip = this.MenuGroup; this.treeListTemplateGroup.DataMember = "templategroup"; this.treeListTemplateGroup.DataSource = (object)this.ds; this.treeListTemplateGroup.Dock = DockStyle.Left; this.treeListTemplateGroup.KeyFieldName = "idtemplategroup"; this.treeListTemplateGroup.Location = new Point(0, 0); this.treeListTemplateGroup.LookAndFeel.Style = LookAndFeelStyle.Flat; this.treeListTemplateGroup.LookAndFeel.UseDefaultLookAndFeel = false; this.treeListTemplateGroup.Name = "treeListTemplateGroup"; this.treeListTemplateGroup.OptionsBehavior.Editable = false; this.treeListTemplateGroup.OptionsView.ShowHorzLines = false; this.treeListTemplateGroup.OptionsView.ShowIndicator = false; this.treeListTemplateGroup.OptionsView.ShowVertLines = false; this.treeListTemplateGroup.ParentFieldName = "parentid"; this.treeListTemplateGroup.SelectImageList = (object)this.imageList1; this.treeListTemplateGroup.Size = new Size(197, 361); this.treeListTemplateGroup.TabIndex = 1; this.coltemplategroup.Caption = "Группы шаблонов"; this.coltemplategroup.FieldName = "name"; this.coltemplategroup.MinWidth = 173; this.coltemplategroup.Name = "coltemplategroup"; this.coltemplategroup.OptionsColumn.AllowSort = false; this.coltemplategroup.Visible = true; this.coltemplategroup.VisibleIndex = 0; this.coltemplategroup.Width = 93; this.MenuGroup.Items.AddRange(new ToolStripItem[8] { (ToolStripItem)this.MenuGroupeAddMain, (ToolStripItem)this.MenuGroupeAddChild, (ToolStripItem)this.MenuGroupeRename, (ToolStripItem)this.toolStripSeparator4, (ToolStripItem)this.MenuGroupeRemove, (ToolStripItem)this.toolStripSeparator3, (ToolStripItem)this.MenuGroupSetMain, (ToolStripItem)this.MenuGroupMoveToGroup }); this.MenuGroup.Name = "contextMenuStrip1"; this.MenuGroup.Size = new Size(298, 148); this.MenuGroupeAddMain.Name = "MenuGroupeAddMain"; this.MenuGroupeAddMain.ShortcutKeys = Keys.Insert | Keys.Control; this.MenuGroupeAddMain.Size = new Size(297, 22); this.MenuGroupeAddMain.Text = "Добавить основную группу"; this.MenuGroupeAddMain.Click += new EventHandler(this.mnuAddRootGroupe_Click); this.MenuGroupeAddChild.Name = "MenuGroupeAddChild"; this.MenuGroupeAddChild.ShortcutKeys = Keys.Insert | Keys.Shift | Keys.Control; this.MenuGroupeAddChild.Size = new Size(297, 22); this.MenuGroupeAddChild.Text = "Добавить дочернюю группу"; this.MenuGroupeAddChild.Click += new EventHandler(this.MenuGroupAddChild_Click); this.MenuGroupeRename.Name = "MenuGroupeRename"; this.MenuGroupeRename.ShortcutKeys = Keys.Return | Keys.Control; this.MenuGroupeRename.Size = new Size(297, 22); this.MenuGroupeRename.Text = "Переименовать группу"; this.MenuGroupeRename.Click += new EventHandler(this.mnuRenameGroup_Click); this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new Size(294, 6); this.MenuGroupeRemove.Name = "MenuGroupeRemove"; this.MenuGroupeRemove.ShortcutKeys = Keys.Delete | Keys.Control; this.MenuGroupeRemove.Size = new Size(297, 22); this.MenuGroupeRemove.Text = "Удалить"; this.MenuGroupeRemove.Click += new EventHandler(this.MenuGroupRemove_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new Size(294, 6); this.MenuGroupSetMain.Name = "MenuGroupSetMain"; this.MenuGroupSetMain.ShortcutKeys = Keys.M | Keys.Shift | Keys.Control; this.MenuGroupSetMain.Size = new Size(297, 22); this.MenuGroupSetMain.Text = "Сделать группу основной"; this.MenuGroupMoveToGroup.Name = "MenuGroupMoveToGroup"; this.MenuGroupMoveToGroup.ShortcutKeys = Keys.F6; this.MenuGroupMoveToGroup.Size = new Size(297, 22); this.MenuGroupMoveToGroup.Text = "Переместить в группу"; this.imageList1.ImageStream = (ImageListStreamer)componentResourceManager.GetObject("imageList1.ImageStream"); this.imageList1.TransparentColor = Color.Magenta; this.imageList1.Images.SetKeyName(0, "VSFolder_closed.bmp"); this.atButtonsPanel1.AcceptButton = atButtonsPanel.bpButtons.Save; this.atButtonsPanel1.CancelButton = atButtonsPanel.bpButtons.Cancel; this.atButtonsPanel1.CancelButtonText = ""; this.atButtonsPanel1.CancelButtonUseCancelSelect = true; this.atButtonsPanel1.CancelButtonVisible = true; this.atButtonsPanel1.CloseButtonText = ""; this.atButtonsPanel1.CloseButtonUseCancelSelect = false; this.atButtonsPanel1.CloseButtonVisible = false; this.atButtonsPanel1.DataMember = (string)null; this.atButtonsPanel1.DataSource = (DataSet)null; this.atButtonsPanel1.Dock = DockStyle.Bottom; this.atButtonsPanel1.EnabledCancelButton = true; this.atButtonsPanel1.EnabledCloseButton = true; this.atButtonsPanel1.EnabledPrintButton = true; this.atButtonsPanel1.EnabledRefreshButton = true; this.atButtonsPanel1.EnabledSaveButton = true; this.atButtonsPanel1.EnabledScriptButton = true; this.atButtonsPanel1.IdDocAppearance = 0; this.atButtonsPanel1.Location = new Point(0, 361); this.atButtonsPanel1.Name = "atButtonsPanel1"; this.atButtonsPanel1.PrintButtonText = ""; this.atButtonsPanel1.PrintButtonVisible = false; this.atButtonsPanel1.ProcessedIsDialog = true; this.atButtonsPanel1.RefreshButtonText = "Обновить"; this.atButtonsPanel1.RefreshButtonUseSelectItem = true; this.atButtonsPanel1.RefreshButtonVisible = true; this.atButtonsPanel1.SaveButtonText = "Выбрать"; this.atButtonsPanel1.SaveButtonUseSelectItem = true; this.atButtonsPanel1.SaveButtonVisible = true; this.atButtonsPanel1.ScriptButtonText = ""; this.atButtonsPanel1.ScriptButtonVisible = false; this.atButtonsPanel1.Size = new Size(872, 33); this.atButtonsPanel1.TabIndex = 2; this.atButtonsPanel1.TextCancelButton = "Отменить"; this.atButtonsPanel1.TextCloseButton = "Закрыть"; this.atButtonsPanel1.TextPrintButton = "Обновить параметры"; this.atButtonsPanel1.TextRefreshButton = "Обновить"; this.atButtonsPanel1.TextSaveButton = "Применить"; this.atButtonsPanel1.TextScriptButton = "Скрипты..."; this.atButtonsPanel1.VisibleCancelButton = true; this.atButtonsPanel1.VisibleCloseButton = true; this.atButtonsPanel1.VisiblePrintButton = true; this.atButtonsPanel1.VisibleRefreshButton = false; this.atButtonsPanel1.VisibleSaveButton = true; this.atButtonsPanel1.VisibleScriptButton = false; this.atButtonsPanel1.WidthPrintButton = 130; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gridControlTemplate); this.Controls.Add((Control)this.splitterControl1); this.Controls.Add((Control)this.treeListTemplateGroup); this.Controls.Add((Control)this.atButtonsPanel1); this.Name = "TemplateProductionTypeForm"; this.Size = new Size(872, 394); this.Text = "Шаблоны продукции"; this.gridViewTemplateParam.EndInit(); this.cboNumericValue.EndInit(); this.cboStrValue1.EndInit(); this.cboStrValue2.EndInit(); this.gridControlTemplate.EndInit(); this.MenuItem.ResumeLayout(false); this.ds.EndInit(); this.gridViewTemplate.EndInit(); this.PictureEdit.EndInit(); this.treeListTemplateGroup.EndInit(); this.MenuGroup.ResumeLayout(false); this.atButtonsPanel1.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = (IContainer) new Container(); GridLevelNode gridLevelNode = new GridLevelNode(); this.gvFilterDetail = new GridView(); this.colidmarkingfilterdetail = new GridColumn(); this.colgood_marking = new GridColumn(); this.colgood_name = new GridColumn(); this.colfilterdetailcomment = new GridColumn(); this.gcFilter = new GridControl(); this.cmsGridMenu = new ContextMenuStrip(this.components); this.MenuItemAddFilter = new ToolStripMenuItem(); this.MenuItemAddFilterGood = new ToolStripMenuItem(); this.toolStripSeparator1 = new ToolStripSeparator(); this.MenuItemRemove = new ToolStripMenuItem(); this.dsData = new DataSet(); this.table_markingfiltertype = new DataTable(); this.dataColumn1 = new DataColumn(); this.dataColumn2 = new DataColumn(); this.table_markingfilter = new DataTable(); this.dataColumn3 = new DataColumn(); this.dataColumn4 = new DataColumn(); this.dataColumn5 = new DataColumn(); this.dataColumn6 = new DataColumn(); this.dataColumn11 = new DataColumn(); this.table_markingfilterdetail = new DataTable(); this.dataColumn7 = new DataColumn(); this.dataColumn8 = new DataColumn(); this.dataColumn9 = new DataColumn(); this.dataColumn10 = new DataColumn(); this.dataColumn12 = new DataColumn(); this.dataColumn13 = new DataColumn(); this.dataColumn14 = new DataColumn(); this.gvFilter = new GridView(); this.colidmarkingfilter = new GridColumn(); this.colname = new GridColumn(); this.colcomment = new GridColumn(); this.repositoryItemTextEdit1 = new AtRepositoryItemTextEdit(); this.repositoryItemTextEdit2 = new AtRepositoryItemTextEdit(); this.repositoryItemCheckEdit2 = new RepositoryItemCheckEdit(); this.treeListGroup = new TreeList(); this.treeListColumn1 = new TreeListColumn(); this.repositoryItemCheckEdit1 = new RepositoryItemCheckEdit(); this.panel1 = new Panel(); this.button3 = new Button(); this.button2 = new Button(); this.button1 = new Button(); this.gvFilterDetail.BeginInit(); this.gcFilter.BeginInit(); this.cmsGridMenu.SuspendLayout(); this.dsData.BeginInit(); this.table_markingfiltertype.BeginInit(); this.table_markingfilter.BeginInit(); this.table_markingfilterdetail.BeginInit(); this.gvFilter.BeginInit(); this.repositoryItemTextEdit1.BeginInit(); this.repositoryItemTextEdit2.BeginInit(); this.repositoryItemCheckEdit2.BeginInit(); this.treeListGroup.BeginInit(); this.repositoryItemCheckEdit1.BeginInit(); this.panel1.SuspendLayout(); this.SuspendLayout(); this.gvFilterDetail.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.FocusedRow.ForeColor = Color.Black; this.gvFilterDetail.Appearance.FocusedRow.Options.UseBackColor = true; this.gvFilterDetail.Appearance.FocusedRow.Options.UseBorderColor = true; this.gvFilterDetail.Appearance.FocusedRow.Options.UseForeColor = true; this.gvFilterDetail.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.GroupPanel.Options.UseBackColor = true; this.gvFilterDetail.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilterDetail.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gvFilterDetail.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvFilterDetail.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gvFilterDetail.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvFilterDetail.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilterDetail.Appearance.SelectedRow.ForeColor = Color.Black; this.gvFilterDetail.Appearance.SelectedRow.Options.UseBackColor = true; this.gvFilterDetail.Appearance.SelectedRow.Options.UseBorderColor = true; this.gvFilterDetail.Appearance.SelectedRow.Options.UseForeColor = true; this.gvFilterDetail.BorderStyle = BorderStyles.Simple; this.gvFilterDetail.Columns.AddRange(new GridColumn[4] { this.colidmarkingfilterdetail, this.colgood_marking, this.colgood_name, this.colfilterdetailcomment }); this.gvFilterDetail.GridControl = this.gcFilter; this.gvFilterDetail.Name = "gvFilterDetail"; this.gvFilterDetail.OptionsCustomization.AllowFilter = false; this.gvFilterDetail.OptionsCustomization.AllowGroup = false; this.gvFilterDetail.OptionsDetail.ShowDetailTabs = false; this.gvFilterDetail.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gvFilterDetail.OptionsView.ShowGroupPanel = false; this.gvFilterDetail.OptionsView.ShowIndicator = false; this.colidmarkingfilterdetail.Caption = "#"; this.colidmarkingfilterdetail.FieldName = "idmarkingfilterdetail"; this.colidmarkingfilterdetail.Name = "colidmarkingfilterdetail"; this.colidmarkingfilterdetail.Visible = true; this.colidmarkingfilterdetail.VisibleIndex = 0; this.colidmarkingfilterdetail.Width = 79; this.colgood_marking.Caption = "Артикул материала"; this.colgood_marking.FieldName = "good_marking"; this.colgood_marking.Name = "colgood_marking"; this.colgood_marking.OptionsColumn.AllowEdit = false; this.colgood_marking.Visible = true; this.colgood_marking.VisibleIndex = 1; this.colgood_marking.Width = 188; this.colgood_name.Caption = "Наименование материала"; this.colgood_name.FieldName = "good_name"; this.colgood_name.Name = "colgood_name"; this.colgood_name.OptionsColumn.AllowEdit = false; this.colgood_name.Visible = true; this.colgood_name.VisibleIndex = 2; this.colgood_name.Width = 327; this.colfilterdetailcomment.Caption = "Комментарий"; this.colfilterdetailcomment.FieldName = "comment"; this.colfilterdetailcomment.Name = "colfilterdetailcomment"; this.colfilterdetailcomment.Visible = true; this.colfilterdetailcomment.VisibleIndex = 3; this.colfilterdetailcomment.Width = 331; this.gcFilter.ContextMenuStrip = this.cmsGridMenu; this.gcFilter.DataMember = "markingfilter"; this.gcFilter.DataSource = (object)this.dsData; this.gcFilter.Dock = DockStyle.Fill; this.gcFilter.EmbeddedNavigator.Name = ""; gridLevelNode.LevelTemplate = (BaseView)this.gvFilterDetail; gridLevelNode.RelationName = "fk_markingfilterl_markingfilterdetail"; this.gcFilter.LevelTree.Nodes.AddRange(new GridLevelNode[1] { gridLevelNode }); this.gcFilter.Location = new Point(214, 0); this.gcFilter.LookAndFeel.Style = LookAndFeelStyle.Flat; this.gcFilter.LookAndFeel.UseDefaultLookAndFeel = false; this.gcFilter.MainView = (BaseView)this.gvFilter; this.gcFilter.Name = "gcFilter"; this.gcFilter.RepositoryItems.AddRange(new RepositoryItem[3] { (RepositoryItem)this.repositoryItemTextEdit1, (RepositoryItem)this.repositoryItemTextEdit2, (RepositoryItem)this.repositoryItemCheckEdit2 }); this.gcFilter.Size = new Size(552, 432); this.gcFilter.TabIndex = 6; this.gcFilter.ViewCollection.AddRange(new BaseView[2] { (BaseView)this.gvFilter, (BaseView)this.gvFilterDetail }); this.cmsGridMenu.Items.AddRange(new ToolStripItem[4] { (ToolStripItem)this.MenuItemAddFilter, (ToolStripItem)this.MenuItemAddFilterGood, (ToolStripItem)this.toolStripSeparator1, (ToolStripItem)this.MenuItemRemove }); this.cmsGridMenu.Name = "contextMenuStrip2"; this.cmsGridMenu.Size = new Size(184, 76); this.MenuItemAddFilter.Name = "MenuItemAddFilter"; this.MenuItemAddFilter.Size = new Size(183, 22); this.MenuItemAddFilter.Text = "Добавить фильтр"; this.MenuItemAddFilter.Click += new EventHandler(this.MenuItemAdd_Click); this.MenuItemAddFilterGood.Name = "MenuItemAddFilterGood"; this.MenuItemAddFilterGood.Size = new Size(183, 22); this.MenuItemAddFilterGood.Text = "Добавить материалы"; this.MenuItemAddFilterGood.Click += new EventHandler(this.MenuItemAddFilterGood_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(180, 6); this.MenuItemRemove.Name = "MenuItemRemove"; this.MenuItemRemove.Size = new Size(183, 22); this.MenuItemRemove.Text = "Удалить "; this.MenuItemRemove.Click += new EventHandler(this.MenuItemRemove_Click); this.dsData.DataSetName = "NewDataSet"; this.dsData.Relations.AddRange(new DataRelation[1] { new DataRelation("fk_markingfilterl_markingfilterdetail", "markingfilter", "markingfilterdetail", new string[1] { "idmarkingfilter" }, new string[1] { "idmarkingfilter" }, 0 != 0) }); this.dsData.Tables.AddRange(new DataTable[3] { this.table_markingfiltertype, this.table_markingfilter, this.table_markingfilterdetail }); this.table_markingfiltertype.Columns.AddRange(new DataColumn[2] { this.dataColumn1, this.dataColumn2 }); this.table_markingfiltertype.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idmarkingfiltertype" }, 1 != 0) }); this.table_markingfiltertype.PrimaryKey = new DataColumn[1] { this.dataColumn1 }; this.table_markingfiltertype.TableName = "markingfiltertype"; this.dataColumn1.AllowDBNull = false; this.dataColumn1.ColumnName = "idmarkingfiltertype"; this.dataColumn1.DataType = typeof(int); this.dataColumn2.ColumnName = "name"; this.table_markingfilter.Columns.AddRange(new DataColumn[5] { this.dataColumn3, this.dataColumn4, this.dataColumn5, this.dataColumn6, this.dataColumn11 }); this.table_markingfilter.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idmarkingfilter" }, 1 != 0) }); this.table_markingfilter.PrimaryKey = new DataColumn[1] { this.dataColumn3 }; this.table_markingfilter.TableName = "markingfilter"; this.dataColumn3.AllowDBNull = false; this.dataColumn3.ColumnName = "idmarkingfilter"; this.dataColumn3.DataType = typeof(int); this.dataColumn4.ColumnName = "name"; this.dataColumn5.ColumnName = "deleted"; this.dataColumn5.DataType = typeof(DateTime); this.dataColumn6.ColumnName = "idmarkingfiltertype"; this.dataColumn6.DataType = typeof(int); this.dataColumn11.ColumnName = "comment"; this.table_markingfilterdetail.Columns.AddRange(new DataColumn[7] { this.dataColumn7, this.dataColumn8, this.dataColumn9, this.dataColumn10, this.dataColumn12, this.dataColumn13, this.dataColumn14 }); this.table_markingfilterdetail.Constraints.AddRange(new Constraint[1] { (Constraint) new UniqueConstraint("Constraint1", new string[1] { "idmarkingfilterdetail" }, 1 != 0) }); this.table_markingfilterdetail.PrimaryKey = new DataColumn[1] { this.dataColumn7 }; this.table_markingfilterdetail.TableName = "markingfilterdetail"; this.dataColumn7.AllowDBNull = false; this.dataColumn7.ColumnName = "idmarkingfilterdetail"; this.dataColumn7.DataType = typeof(int); this.dataColumn8.ColumnName = "idmarkingfilter"; this.dataColumn8.DataType = typeof(int); this.dataColumn9.ColumnName = "idgood"; this.dataColumn9.DataType = typeof(int); this.dataColumn10.ColumnName = "deleted"; this.dataColumn10.DataType = typeof(DateTime); this.dataColumn12.ColumnName = "comment"; this.dataColumn13.ColumnName = "good_name"; this.dataColumn14.ColumnName = "good_marking"; this.gvFilter.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.FocusedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.FocusedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.FocusedRow.ForeColor = Color.Black; this.gvFilter.Appearance.FocusedRow.Options.UseBackColor = true; this.gvFilter.Appearance.FocusedRow.Options.UseBorderColor = true; this.gvFilter.Appearance.FocusedRow.Options.UseForeColor = true; this.gvFilter.Appearance.GroupPanel.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.GroupPanel.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.GroupPanel.Options.UseBackColor = true; this.gvFilter.Appearance.HideSelectionRow.BackColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.HideSelectionRow.BorderColor = Color.FromArgb(192, 192, (int)byte.MaxValue); this.gvFilter.Appearance.HideSelectionRow.ForeColor = Color.Black; this.gvFilter.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvFilter.Appearance.HideSelectionRow.Options.UseBorderColor = true; this.gvFilter.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvFilter.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.SelectedRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.SelectedRow.BorderColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.gvFilter.Appearance.SelectedRow.ForeColor = Color.Black; this.gvFilter.Appearance.SelectedRow.Options.UseBackColor = true; this.gvFilter.Appearance.SelectedRow.Options.UseBorderColor = true; this.gvFilter.Appearance.SelectedRow.Options.UseForeColor = true; this.gvFilter.BorderStyle = BorderStyles.Simple; this.gvFilter.Columns.AddRange(new GridColumn[3] { this.colidmarkingfilter, this.colname, this.colcomment }); this.gvFilter.GridControl = this.gcFilter; this.gvFilter.GroupPanelText = "Панель группировки"; this.gvFilter.Name = "gvFilter"; this.gvFilter.OptionsBehavior.AllowIncrementalSearch = true; this.gvFilter.OptionsCustomization.AllowFilter = false; this.gvFilter.OptionsDetail.ShowDetailTabs = false; this.gvFilter.OptionsSelection.MultiSelect = true; this.gvFilter.OptionsView.ShowAutoFilterRow = true; this.gvFilter.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gvFilter.OptionsView.ShowGroupPanel = false; this.gvFilter.OptionsView.ShowIndicator = false; this.colidmarkingfilter.Caption = "#"; this.colidmarkingfilter.FieldName = "idmarkingfilter"; this.colidmarkingfilter.Name = "colidmarkingfilter"; this.colidmarkingfilter.OptionsColumn.AllowEdit = false; this.colidmarkingfilter.Visible = true; this.colidmarkingfilter.VisibleIndex = 0; this.colidmarkingfilter.Width = 51; this.colname.Caption = "Наименование"; this.colname.FieldName = "name"; this.colname.Name = "colname"; this.colname.Visible = true; this.colname.VisibleIndex = 1; this.colname.Width = 414; this.colcomment.Caption = "Комментарий"; this.colcomment.FieldName = "comment"; this.colcomment.Name = "colcomment"; this.colcomment.Visible = true; this.colcomment.VisibleIndex = 2; this.colcomment.Width = 460; this.repositoryItemTextEdit1.AutoHeight = false; this.repositoryItemTextEdit1.DisplayFormat.FormatString = "n"; this.repositoryItemTextEdit1.DisplayFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.EditFormat.FormatString = "n"; this.repositoryItemTextEdit1.EditFormat.FormatType = FormatType.Numeric; this.repositoryItemTextEdit1.Name = "repositoryItemTextEdit1"; this.repositoryItemTextEdit2.AutoHeight = false; this.repositoryItemTextEdit2.Name = "repositoryItemTextEdit2"; this.repositoryItemCheckEdit2.AutoHeight = false; this.repositoryItemCheckEdit2.Name = "repositoryItemCheckEdit2"; this.treeListGroup.Appearance.FocusedCell.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.FocusedCell.ForeColor = Color.Black; this.treeListGroup.Appearance.FocusedCell.Options.UseBackColor = true; this.treeListGroup.Appearance.FocusedCell.Options.UseForeColor = true; this.treeListGroup.Appearance.FocusedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.FocusedRow.ForeColor = Color.Black; this.treeListGroup.Appearance.FocusedRow.Options.UseBackColor = true; this.treeListGroup.Appearance.FocusedRow.Options.UseForeColor = true; this.treeListGroup.Appearance.HideSelectionRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.HideSelectionRow.BackColor2 = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.HideSelectionRow.ForeColor = Color.Black; this.treeListGroup.Appearance.HideSelectionRow.Options.UseBackColor = true; this.treeListGroup.Appearance.HideSelectionRow.Options.UseForeColor = true; this.treeListGroup.Appearance.SelectedRow.BackColor = Color.FromArgb(128, 128, (int)byte.MaxValue); this.treeListGroup.Appearance.SelectedRow.ForeColor = Color.Black; this.treeListGroup.Appearance.SelectedRow.Options.UseBackColor = true; this.treeListGroup.Appearance.SelectedRow.Options.UseForeColor = true; this.treeListGroup.BorderStyle = BorderStyles.Simple; this.treeListGroup.Columns.AddRange(new TreeListColumn[1] { this.treeListColumn1 }); this.treeListGroup.DataMember = "markingfiltertype"; this.treeListGroup.DataSource = (object)this.dsData; this.treeListGroup.Dock = DockStyle.Left; this.treeListGroup.HorzScrollVisibility = DevExpress.XtraTreeList.ScrollVisibility.Never; this.treeListGroup.ImageIndexFieldName = ""; this.treeListGroup.KeyFieldName = ""; this.treeListGroup.Location = new Point(0, 0); this.treeListGroup.LookAndFeel.Style = LookAndFeelStyle.Flat; this.treeListGroup.LookAndFeel.UseDefaultLookAndFeel = false; this.treeListGroup.Name = "treeListGroup"; this.treeListGroup.OptionsBehavior.AutoFocusNewNode = true; this.treeListGroup.OptionsBehavior.PopulateServiceColumns = true; this.treeListGroup.OptionsView.ShowHorzLines = false; this.treeListGroup.OptionsView.ShowIndicator = false; this.treeListGroup.OptionsView.ShowVertLines = false; this.treeListGroup.ParentFieldName = "parentid"; this.treeListGroup.RepositoryItems.AddRange(new RepositoryItem[1] { (RepositoryItem)this.repositoryItemCheckEdit1 }); this.treeListGroup.Size = new Size(214, 432); this.treeListGroup.TabIndex = 7; this.treeListColumn1.Caption = "Форма"; this.treeListColumn1.FieldName = "name"; this.treeListColumn1.MinWidth = 45; this.treeListColumn1.Name = "treeListColumn1"; this.treeListColumn1.OptionsColumn.AllowEdit = false; this.treeListColumn1.Visible = true; this.treeListColumn1.VisibleIndex = 0; this.treeListColumn1.Width = 118; this.repositoryItemCheckEdit1.AutoHeight = false; this.repositoryItemCheckEdit1.Name = "repositoryItemCheckEdit1"; this.panel1.Controls.Add((Control)this.button3); this.panel1.Controls.Add((Control)this.button2); this.panel1.Controls.Add((Control)this.button1); this.panel1.Dock = DockStyle.Bottom; this.panel1.Location = new Point(0, 432); this.panel1.Name = "panel1"; this.panel1.Size = new Size(766, 33); this.panel1.TabIndex = 5; this.button3.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button3.FlatStyle = FlatStyle.Flat; this.button3.Location = new Point(679, 5); this.button3.Name = "button3"; this.button3.Size = new Size(75, 23); this.button3.TabIndex = 2; this.button3.Text = "Закрыть"; this.button3.Click += new EventHandler(this.button3_Click); this.button2.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button2.FlatStyle = FlatStyle.Flat; this.button2.Location = new Point(598, 5); this.button2.Name = "button2"; this.button2.Size = new Size(75, 23); this.button2.TabIndex = 1; this.button2.Text = "Отменить"; this.button2.Click += new EventHandler(this.button2_Click); this.button1.Anchor = AnchorStyles.Top | AnchorStyles.Right; this.button1.FlatStyle = FlatStyle.Flat; this.button1.Location = new Point(517, 5); this.button1.Name = "button1"; this.button1.Size = new Size(75, 23); this.button1.TabIndex = 0; this.button1.Text = "Применить"; this.button1.Click += new EventHandler(this.button1_Click); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.Font; this.Controls.Add((Control)this.gcFilter); this.Controls.Add((Control)this.treeListGroup); this.Controls.Add((Control)this.panel1); this.Name = "MarkingFilterForm"; this.Size = new Size(766, 465); this.Text = "Фильтры артикулов"; this.gvFilterDetail.EndInit(); this.gcFilter.EndInit(); this.cmsGridMenu.ResumeLayout(false); this.dsData.EndInit(); this.table_markingfiltertype.EndInit(); this.table_markingfilter.EndInit(); this.table_markingfilterdetail.EndInit(); this.gvFilter.EndInit(); this.repositoryItemTextEdit1.EndInit(); this.repositoryItemTextEdit2.EndInit(); this.repositoryItemCheckEdit2.EndInit(); this.treeListGroup.EndInit(); this.repositoryItemCheckEdit1.EndInit(); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Einen View eines GridControls ändern /// </summary> /// <param name="grid">Das Grid, für den der View geändert werden soll</param> /// <param name="node">Der Node innerhalb der View-Hiearchie, für den der View geändert werden soll.</param> /// <param name="viewName">Name (Typ) des neuen Views.</param> /// <param name="removeOld"></param> /// <returns>Der erstellte View</returns> public static BaseView CreateView(GridControl grid, GridLevelNode node, string viewName, bool removeOld) { if (node == null) { return(null); } // View schoh da. BaseView previousView = node.LevelTemplate; if (previousView is GridView) { var gv = previousView as GridView; gv.GroupCount = 0; // gv.FilteredColumnsCount = 0; } // Neuen View erzeugen BaseView newView = grid.CreateView(viewName); Debug.Assert(newView != null, "View " + viewName + " konnte nicht angelegt werden."); grid.ViewCollection.Add(newView); // Layout des alten Views sichern. previousView = node.LevelTemplate; MemoryStream ms = null; if (previousView != null) { ms = new MemoryStream(); previousView.SaveLayoutToStream(ms, OptionsLayoutBase.FullLayout); } // Dem Node den neuen View zuweisen. ChangeView(grid, node, newView); if (ms != null) { ms.Seek(0, SeekOrigin.Begin); newView.RestoreLayoutFromStream(ms, OptionsLayoutBase.FullLayout); ms.Close(); MethodInfo mi = newView.GetType() .GetMethod("DesignerMakeColumnsVisible", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance); if (mi != null) { mi.Invoke(newView, null); } if (previousView != null) { AssignViewProperties(previousView, newView); } } if (removeOld && previousView != null) { previousView.Dispose(); } return(newView); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmVideo)); GridLevelNode gridLevelNode = new GridLevelNode(); splitContainerControl1 = new SplitContainerControl(); pbImage = new PictureBox(); gcImages = new GridControl(); lvImages = new LayoutView(); colImage = new LayoutViewColumn(); repositoryItemPictureEdit1 = new RepositoryItemPictureEdit(); layoutViewField_layoutViewColumn1 = new LayoutViewField(); layoutViewCard1 = new LayoutViewCard(); gridView1 = new GridView(); btPlay = new SimpleButton(); btPause = new SimpleButton(); btStop = new SimpleButton(); btOpen = new SimpleButton(); btCancel = new SimpleButton(); btAccept = new SimpleButton(); trackBarControl1 = new TrackBarControl(); labelControl1 = new LabelControl(); btClear = new SimpleButton(); splitContainerControl1.BeginInit(); splitContainerControl1.SuspendLayout(); ((ISupportInitialize)pbImage).BeginInit(); gcImages.BeginInit(); lvImages.BeginInit(); repositoryItemPictureEdit1.BeginInit(); layoutViewField_layoutViewColumn1.BeginInit(); layoutViewCard1.BeginInit(); gridView1.BeginInit(); ((ISupportInitialize)trackBarControl1).BeginInit(); trackBarControl1.Properties.BeginInit(); SuspendLayout(); componentResourceManager.ApplyResources(splitContainerControl1, "splitContainerControl1"); splitContainerControl1.Name = "splitContainerControl1"; componentResourceManager.ApplyResources(splitContainerControl1.Panel1, "splitContainerControl1.Panel1"); splitContainerControl1.Panel1.Controls.Add(pbImage); componentResourceManager.ApplyResources(splitContainerControl1.Panel2, "splitContainerControl1.Panel2"); splitContainerControl1.Panel2.Controls.Add(gcImages); splitContainerControl1.SplitterPosition = 751; componentResourceManager.ApplyResources(pbImage, "pbImage"); pbImage.Name = "pbImage"; pbImage.TabStop = false; componentResourceManager.ApplyResources(gcImages, "gcImages"); gcImages.EmbeddedNavigator.AccessibleDescription = componentResourceManager.GetString("gcImages.EmbeddedNavigator.AccessibleDescription"); gcImages.EmbeddedNavigator.AccessibleName = componentResourceManager.GetString("gcImages.EmbeddedNavigator.AccessibleName"); gcImages.EmbeddedNavigator.AllowHtmlTextInToolTip = (DefaultBoolean)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.AllowHtmlTextInToolTip"); gcImages.EmbeddedNavigator.Anchor = (AnchorStyles)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.Anchor"); gcImages.EmbeddedNavigator.BackgroundImage = (Image)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.BackgroundImage"); gcImages.EmbeddedNavigator.BackgroundImageLayout = (ImageLayout)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.BackgroundImageLayout"); gcImages.EmbeddedNavigator.ImeMode = (ImeMode)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.ImeMode"); gcImages.EmbeddedNavigator.MaximumSize = (Size)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.MaximumSize"); gcImages.EmbeddedNavigator.TextLocation = (NavigatorButtonsTextLocation)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.TextLocation"); gcImages.EmbeddedNavigator.ToolTip = componentResourceManager.GetString("gcImages.EmbeddedNavigator.ToolTip"); gcImages.EmbeddedNavigator.ToolTipIconType = (ToolTipIconType)componentResourceManager.GetObject("gcImages.EmbeddedNavigator.ToolTipIconType"); gcImages.EmbeddedNavigator.ToolTipTitle = componentResourceManager.GetString("gcImages.EmbeddedNavigator.ToolTipTitle"); gridLevelNode.RelationName = "Level1"; gcImages.LevelTree.Nodes.AddRange(new GridLevelNode[1] { gridLevelNode }); gcImages.MainView = lvImages; gcImages.Name = "gcImages"; gcImages.ViewCollection.AddRange(new BaseView[2] { lvImages, gridView1 }); componentResourceManager.ApplyResources(lvImages, "lvImages"); lvImages.CardHorzInterval = 0; lvImages.CardMinSize = new Size(150, 150); lvImages.CardVertInterval = 0; lvImages.Columns.AddRange(new LayoutViewColumn[1] { colImage }); lvImages.GridControl = gcImages; lvImages.Name = "lvImages"; lvImages.OptionsBehavior.AllowAddRows = DefaultBoolean.False; lvImages.OptionsBehavior.AllowDeleteRows = DefaultBoolean.False; lvImages.OptionsBehavior.AllowExpandCollapse = false; lvImages.OptionsBehavior.AutoPopulateColumns = false; lvImages.OptionsBehavior.AutoSelectAllInEditor = false; lvImages.OptionsCustomization.AllowFilter = false; lvImages.OptionsCustomization.AllowSort = false; lvImages.OptionsItemText.AlignMode = FieldTextAlignMode.CustomSize; lvImages.OptionsItemText.TextToControlDistance = 0; lvImages.OptionsLayout.Columns.AddNewColumns = false; lvImages.OptionsLayout.Columns.RemoveOldColumns = false; lvImages.OptionsLayout.Columns.StoreLayout = false; lvImages.OptionsLayout.StoreDataSettings = false; lvImages.OptionsLayout.StoreVisualOptions = false; lvImages.OptionsSelection.MultiSelect = true; lvImages.OptionsView.AllowHotTrackFields = false; lvImages.OptionsView.ShowButtonMode = ShowButtonModeEnum.ShowAlways; lvImages.OptionsView.ShowCardExpandButton = false; lvImages.OptionsView.ShowCardFieldBorders = true; lvImages.OptionsView.ShowCardLines = false; lvImages.OptionsView.ShowFieldHints = false; lvImages.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; lvImages.OptionsView.ShowHeaderPanel = false; lvImages.OptionsView.ViewMode = LayoutViewMode.MultiColumn; lvImages.TemplateCard = layoutViewCard1; lvImages.CustomDrawCardCaption += lvImages_CustomDrawCardCaption; colImage.AppearanceCell.Font = (Font)componentResourceManager.GetObject("colImage.AppearanceCell.Font"); colImage.AppearanceCell.FontSizeDelta = (int)componentResourceManager.GetObject("colImage.AppearanceCell.FontSizeDelta"); colImage.AppearanceCell.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("colImage.AppearanceCell.FontStyleDelta"); colImage.AppearanceCell.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("colImage.AppearanceCell.GradientMode"); colImage.AppearanceCell.Image = (Image)componentResourceManager.GetObject("colImage.AppearanceCell.Image"); colImage.AppearanceCell.Options.UseFont = true; colImage.AppearanceHeader.Font = (Font)componentResourceManager.GetObject("colImage.AppearanceHeader.Font"); colImage.AppearanceHeader.FontSizeDelta = (int)componentResourceManager.GetObject("colImage.AppearanceHeader.FontSizeDelta"); colImage.AppearanceHeader.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("colImage.AppearanceHeader.FontStyleDelta"); colImage.AppearanceHeader.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("colImage.AppearanceHeader.GradientMode"); colImage.AppearanceHeader.Image = (Image)componentResourceManager.GetObject("colImage.AppearanceHeader.Image"); colImage.AppearanceHeader.Options.UseFont = true; componentResourceManager.ApplyResources(colImage, "colImage"); colImage.ColumnEdit = repositoryItemPictureEdit1; colImage.FieldName = "Image"; colImage.LayoutViewField = layoutViewField_layoutViewColumn1; colImage.Name = "colImage"; colImage.OptionsColumn.AllowEdit = false; colImage.OptionsColumn.AllowMove = false; colImage.OptionsColumn.AllowShowHide = false; colImage.OptionsColumn.AllowSize = false; colImage.OptionsColumn.ReadOnly = true; componentResourceManager.ApplyResources(repositoryItemPictureEdit1, "repositoryItemPictureEdit1"); repositoryItemPictureEdit1.Name = "repositoryItemPictureEdit1"; repositoryItemPictureEdit1.SizeMode = PictureSizeMode.Zoom; layoutViewField_layoutViewColumn1.EditorPreferredWidth = 122; layoutViewField_layoutViewColumn1.Location = new Point(0, 0); layoutViewField_layoutViewColumn1.Name = "layoutViewField_layoutViewColumn1"; layoutViewField_layoutViewColumn1.Padding = new Padding(0, 0, 0, 0); layoutViewField_layoutViewColumn1.Size = new Size(129, 22); layoutViewField_layoutViewColumn1.TextSize = new Size(7, 13); componentResourceManager.ApplyResources(layoutViewCard1, "layoutViewCard1"); layoutViewCard1.ExpandButtonLocation = GroupElementLocation.AfterText; layoutViewCard1.Items.AddRange(new BaseLayoutItem[1] { layoutViewField_layoutViewColumn1 }); layoutViewCard1.Name = "layoutViewTemplateCard"; layoutViewCard1.OptionsItemText.TextToControlDistance = 0; layoutViewCard1.Padding = new Padding(0, 0, 0, 0); componentResourceManager.ApplyResources(gridView1, "gridView1"); gridView1.GridControl = gcImages; gridView1.Name = "gridView1"; componentResourceManager.ApplyResources(btPlay, "btPlay"); btPlay.Appearance.Font = (Font)componentResourceManager.GetObject("btPlay.Appearance.Font"); btPlay.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btPlay.Appearance.FontSizeDelta"); btPlay.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btPlay.Appearance.FontStyleDelta"); btPlay.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btPlay.Appearance.GradientMode"); btPlay.Appearance.Image = (Image)componentResourceManager.GetObject("btPlay.Appearance.Image"); btPlay.Appearance.Options.UseFont = true; btPlay.Image = Resources.play36; btPlay.Name = "btPlay"; btPlay.Click += btPlay_Click; componentResourceManager.ApplyResources(btPause, "btPause"); btPause.Appearance.Font = (Font)componentResourceManager.GetObject("btPause.Appearance.Font"); btPause.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btPause.Appearance.FontSizeDelta"); btPause.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btPause.Appearance.FontStyleDelta"); btPause.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btPause.Appearance.GradientMode"); btPause.Appearance.Image = (Image)componentResourceManager.GetObject("btPause.Appearance.Image"); btPause.Appearance.Options.UseFont = true; btPause.Image = Resources.pause36; btPause.Name = "btPause"; btPause.Click += btPause_Click; componentResourceManager.ApplyResources(btStop, "btStop"); btStop.Appearance.Font = (Font)componentResourceManager.GetObject("btStop.Appearance.Font"); btStop.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btStop.Appearance.FontSizeDelta"); btStop.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btStop.Appearance.FontStyleDelta"); btStop.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btStop.Appearance.GradientMode"); btStop.Appearance.Image = (Image)componentResourceManager.GetObject("btStop.Appearance.Image"); btStop.Appearance.Options.UseFont = true; btStop.Image = Resources.stop36; btStop.Name = "btStop"; btStop.Click += btStop_Click; componentResourceManager.ApplyResources(btOpen, "btOpen"); btOpen.Appearance.Font = (Font)componentResourceManager.GetObject("btOpen.Appearance.Font"); btOpen.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btOpen.Appearance.FontSizeDelta"); btOpen.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btOpen.Appearance.FontStyleDelta"); btOpen.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btOpen.Appearance.GradientMode"); btOpen.Appearance.Image = (Image)componentResourceManager.GetObject("btOpen.Appearance.Image"); btOpen.Appearance.Options.UseFont = true; btOpen.Image = Resources.Open3; btOpen.Name = "btOpen"; btOpen.Click += btOpen_Click; componentResourceManager.ApplyResources(btCancel, "btCancel"); btCancel.Appearance.Font = (Font)componentResourceManager.GetObject("btCancel.Appearance.Font"); btCancel.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btCancel.Appearance.FontSizeDelta"); btCancel.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btCancel.Appearance.FontStyleDelta"); btCancel.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btCancel.Appearance.GradientMode"); btCancel.Appearance.Image = (Image)componentResourceManager.GetObject("btCancel.Appearance.Image"); btCancel.Appearance.Options.UseFont = true; btCancel.DialogResult = DialogResult.Cancel; btCancel.Name = "btCancel"; btCancel.Click += btCancel_Click; componentResourceManager.ApplyResources(btAccept, "btAccept"); btAccept.Appearance.Font = (Font)componentResourceManager.GetObject("btAccept.Appearance.Font"); btAccept.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btAccept.Appearance.FontSizeDelta"); btAccept.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btAccept.Appearance.FontStyleDelta"); btAccept.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btAccept.Appearance.GradientMode"); btAccept.Appearance.Image = (Image)componentResourceManager.GetObject("btAccept.Appearance.Image"); btAccept.Appearance.Options.UseFont = true; btAccept.Name = "btAccept"; btAccept.Click += btAccept_Click; componentResourceManager.ApplyResources(trackBarControl1, "trackBarControl1"); trackBarControl1.Name = "trackBarControl1"; trackBarControl1.Properties.AccessibleDescription = componentResourceManager.GetString("trackBarControl1.Properties.AccessibleDescription"); trackBarControl1.Properties.AccessibleName = componentResourceManager.GetString("trackBarControl1.Properties.AccessibleName"); trackBarControl1.Properties.Orientation = (Orientation)componentResourceManager.GetObject("trackBarControl1.Properties.Orientation"); trackBarControl1.EditValueChanged += trackBarControl1_EditValueChanged; componentResourceManager.ApplyResources(labelControl1, "labelControl1"); labelControl1.Name = "labelControl1"; componentResourceManager.ApplyResources(btClear, "btClear"); btClear.Appearance.Font = (Font)componentResourceManager.GetObject("btClear.Appearance.Font"); btClear.Appearance.FontSizeDelta = (int)componentResourceManager.GetObject("btClear.Appearance.FontSizeDelta"); btClear.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("btClear.Appearance.FontStyleDelta"); btClear.Appearance.GradientMode = (LinearGradientMode)componentResourceManager.GetObject("btClear.Appearance.GradientMode"); btClear.Appearance.Image = (Image)componentResourceManager.GetObject("btClear.Appearance.Image"); btClear.Appearance.Options.UseFont = true; btClear.Name = "btClear"; btClear.Click += btClear_Click; componentResourceManager.ApplyResources(this, "$this"); AutoScaleMode = AutoScaleMode.Font; Controls.Add(btClear); Controls.Add(labelControl1); Controls.Add(trackBarControl1); Controls.Add(splitContainerControl1); Controls.Add(btCancel); Controls.Add(btAccept); Controls.Add(btOpen); Controls.Add(btStop); Controls.Add(btPause); Controls.Add(btPlay); FormBorderStyle = FormBorderStyle.FixedSingle; MaximizeBox = false; MinimizeBox = false; Name = "FrmVideo"; FormClosing += frmVideo_FormClosing; Load += frmVideo_Load; splitContainerControl1.EndInit(); splitContainerControl1.ResumeLayout(false); ((ISupportInitialize)pbImage).EndInit(); gcImages.EndInit(); lvImages.EndInit(); repositoryItemPictureEdit1.EndInit(); layoutViewField_layoutViewColumn1.EndInit(); layoutViewCard1.EndInit(); gridView1.EndInit(); trackBarControl1.Properties.EndInit(); ((ISupportInitialize)trackBarControl1).EndInit(); ResumeLayout(false); PerformLayout(); }
private void InitializeComponent() { this.components = new Container(); GridLevelNode node = new GridLevelNode(); ComponentResourceManager manager = new ComponentResourceManager(typeof(FrmPrivateChat)); this.splitContainer1 = new SplitContainer(); this.gpgChatGrid = new GPGChatGrid(); this.gvPrivateChat = new GridView(); this.colIcon = new GridColumn(); this.rimPictureEdit3 = new RepositoryItemPictureEdit(); this.colPlayer = new GridColumn(); this.rimMemoEdit3 = new RepositoryItemMemoEdit(); this.colText = new GridColumn(); this.gcVisible = new GridColumn(); this.rimTextEdit = new RepositoryItemTextEdit(); this.textBoxMsg = new GPGTextBox(); this.msQuickButtons = new GPGMenuStrip(this.components); this.btnAddFriend = new ToolStripMenuItem(); this.btnRemoveFriend = new ToolStripMenuItem(); this.btnIgnore = new ToolStripMenuItem(); this.btnClanInvite = new ToolStripMenuItem(); this.btnInviteToTeam = new ToolStripMenuItem(); this.btnMore = new ToolStripMenuItem(); ((ISupportInitialize) base.pbBottom).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); this.gpgChatGrid.BeginInit(); this.gvPrivateChat.BeginInit(); this.rimPictureEdit3.BeginInit(); this.rimMemoEdit3.BeginInit(); this.rimTextEdit.BeginInit(); this.textBoxMsg.Properties.BeginInit(); this.msQuickButtons.SuspendLayout(); base.SuspendLayout(); base.pbBottom.Size = new Size(0x192, 0x39); base.ttDefault.SetSuperTip(base.pbBottom, null); base.ttDefault.DefaultController.AutoPopDelay = 0x3e8; base.ttDefault.DefaultController.ToolTipLocation = ToolTipLocation.RightTop; this.splitContainer1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this.splitContainer1.FixedPanel = FixedPanel.Panel2; this.splitContainer1.IsSplitterFixed = true; this.splitContainer1.Location = new Point(12, 0x53); this.splitContainer1.Name = "splitContainer1"; this.splitContainer1.Orientation = Orientation.Horizontal; this.splitContainer1.Panel1.Controls.Add(this.gpgChatGrid); base.ttDefault.SetSuperTip(this.splitContainer1.Panel1, null); this.splitContainer1.Panel2.Controls.Add(this.textBoxMsg); base.ttDefault.SetSuperTip(this.splitContainer1.Panel2, null); this.splitContainer1.Size = new Size(0x1b6, 0xcc); this.splitContainer1.SplitterDistance = 0xb2; this.splitContainer1.SplitterWidth = 1; base.ttDefault.SetSuperTip(this.splitContainer1, null); this.splitContainer1.TabIndex = 4; this.gpgChatGrid.CustomizeStyle = true; this.gpgChatGrid.Dock = DockStyle.Fill; this.gpgChatGrid.EmbeddedNavigator.Name = ""; this.gpgChatGrid.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gpgChatGrid.IgnoreMouseWheel = false; node.RelationName = "Level1"; this.gpgChatGrid.LevelTree.Nodes.AddRange(new GridLevelNode[] { node }); this.gpgChatGrid.Location = new Point(0, 0); this.gpgChatGrid.MainView = this.gvPrivateChat; this.gpgChatGrid.Name = "gpgChatGrid"; this.gpgChatGrid.RepositoryItems.AddRange(new RepositoryItem[] { this.rimPictureEdit3, this.rimTextEdit, this.rimMemoEdit3 }); this.gpgChatGrid.ShowOnlyPredefinedDetails = true; this.gpgChatGrid.Size = new Size(0x1b6, 0xb2); this.gpgChatGrid.TabIndex = 11; this.gpgChatGrid.ViewCollection.AddRange(new BaseView[] { this.gvPrivateChat }); this.gvPrivateChat.Appearance.ColumnFilterButton.BackColor = Color.Black; this.gvPrivateChat.Appearance.ColumnFilterButton.BackColor2 = Color.FromArgb(20, 20, 20); this.gvPrivateChat.Appearance.ColumnFilterButton.BorderColor = Color.Black; this.gvPrivateChat.Appearance.ColumnFilterButton.ForeColor = Color.Gray; this.gvPrivateChat.Appearance.ColumnFilterButton.Options.UseBackColor = true; this.gvPrivateChat.Appearance.ColumnFilterButton.Options.UseBorderColor = true; this.gvPrivateChat.Appearance.ColumnFilterButton.Options.UseForeColor = true; this.gvPrivateChat.Appearance.ColumnFilterButtonActive.BackColor = Color.FromArgb(20, 20, 20); this.gvPrivateChat.Appearance.ColumnFilterButtonActive.BackColor2 = Color.FromArgb(0x4e, 0x4e, 0x4e); this.gvPrivateChat.Appearance.ColumnFilterButtonActive.BorderColor = Color.FromArgb(20, 20, 20); this.gvPrivateChat.Appearance.ColumnFilterButtonActive.ForeColor = Color.Blue; this.gvPrivateChat.Appearance.ColumnFilterButtonActive.Options.UseBackColor = true; this.gvPrivateChat.Appearance.ColumnFilterButtonActive.Options.UseBorderColor = true; this.gvPrivateChat.Appearance.ColumnFilterButtonActive.Options.UseForeColor = true; this.gvPrivateChat.Appearance.Empty.BackColor = Color.Black; this.gvPrivateChat.Appearance.Empty.Options.UseBackColor = true; this.gvPrivateChat.Appearance.FilterCloseButton.BackColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvPrivateChat.Appearance.FilterCloseButton.BackColor2 = Color.FromArgb(90, 90, 90); this.gvPrivateChat.Appearance.FilterCloseButton.BorderColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvPrivateChat.Appearance.FilterCloseButton.ForeColor = Color.Black; this.gvPrivateChat.Appearance.FilterCloseButton.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvPrivateChat.Appearance.FilterCloseButton.Options.UseBackColor = true; this.gvPrivateChat.Appearance.FilterCloseButton.Options.UseBorderColor = true; this.gvPrivateChat.Appearance.FilterCloseButton.Options.UseForeColor = true; this.gvPrivateChat.Appearance.FilterPanel.BackColor = Color.Black; this.gvPrivateChat.Appearance.FilterPanel.BackColor2 = Color.FromArgb(0xd4, 0xd0, 200); this.gvPrivateChat.Appearance.FilterPanel.ForeColor = Color.White; this.gvPrivateChat.Appearance.FilterPanel.GradientMode = LinearGradientMode.ForwardDiagonal; this.gvPrivateChat.Appearance.FilterPanel.Options.UseBackColor = true; this.gvPrivateChat.Appearance.FilterPanel.Options.UseForeColor = true; this.gvPrivateChat.Appearance.FixedLine.BackColor = Color.FromArgb(0x3a, 0x3a, 0x3a); this.gvPrivateChat.Appearance.FixedLine.Options.UseBackColor = true; this.gvPrivateChat.Appearance.FocusedCell.BackColor = Color.Black; this.gvPrivateChat.Appearance.FocusedCell.Font = new Font("Tahoma", 10f); this.gvPrivateChat.Appearance.FocusedCell.ForeColor = Color.White; this.gvPrivateChat.Appearance.FocusedCell.Options.UseBackColor = true; this.gvPrivateChat.Appearance.FocusedCell.Options.UseFont = true; this.gvPrivateChat.Appearance.FocusedCell.Options.UseForeColor = true; this.gvPrivateChat.Appearance.FocusedRow.BackColor = Color.FromArgb(0x40, 0x40, 0x40); this.gvPrivateChat.Appearance.FocusedRow.BackColor2 = Color.Black; this.gvPrivateChat.Appearance.FocusedRow.Font = new Font("Arial", 9.75f, FontStyle.Bold); this.gvPrivateChat.Appearance.FocusedRow.ForeColor = Color.White; this.gvPrivateChat.Appearance.FocusedRow.Options.UseBackColor = true; this.gvPrivateChat.Appearance.FocusedRow.Options.UseFont = true; this.gvPrivateChat.Appearance.FocusedRow.Options.UseForeColor = true; this.gvPrivateChat.Appearance.FooterPanel.BackColor = Color.Black; this.gvPrivateChat.Appearance.FooterPanel.BorderColor = Color.Black; this.gvPrivateChat.Appearance.FooterPanel.Font = new Font("Tahoma", 10f); this.gvPrivateChat.Appearance.FooterPanel.ForeColor = Color.White; this.gvPrivateChat.Appearance.FooterPanel.Options.UseBackColor = true; this.gvPrivateChat.Appearance.FooterPanel.Options.UseBorderColor = true; this.gvPrivateChat.Appearance.FooterPanel.Options.UseFont = true; this.gvPrivateChat.Appearance.FooterPanel.Options.UseForeColor = true; this.gvPrivateChat.Appearance.GroupButton.BackColor = Color.Black; this.gvPrivateChat.Appearance.GroupButton.BorderColor = Color.Black; this.gvPrivateChat.Appearance.GroupButton.ForeColor = Color.White; this.gvPrivateChat.Appearance.GroupButton.Options.UseBackColor = true; this.gvPrivateChat.Appearance.GroupButton.Options.UseBorderColor = true; this.gvPrivateChat.Appearance.GroupButton.Options.UseForeColor = true; this.gvPrivateChat.Appearance.GroupFooter.BackColor = Color.FromArgb(10, 10, 10); this.gvPrivateChat.Appearance.GroupFooter.BorderColor = Color.FromArgb(10, 10, 10); this.gvPrivateChat.Appearance.GroupFooter.ForeColor = Color.White; this.gvPrivateChat.Appearance.GroupFooter.Options.UseBackColor = true; this.gvPrivateChat.Appearance.GroupFooter.Options.UseBorderColor = true; this.gvPrivateChat.Appearance.GroupFooter.Options.UseForeColor = true; this.gvPrivateChat.Appearance.GroupPanel.BackColor = Color.Black; this.gvPrivateChat.Appearance.GroupPanel.BackColor2 = Color.White; this.gvPrivateChat.Appearance.GroupPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvPrivateChat.Appearance.GroupPanel.ForeColor = Color.White; this.gvPrivateChat.Appearance.GroupPanel.Options.UseBackColor = true; this.gvPrivateChat.Appearance.GroupPanel.Options.UseFont = true; this.gvPrivateChat.Appearance.GroupPanel.Options.UseForeColor = true; this.gvPrivateChat.Appearance.GroupRow.BackColor = Color.Gray; this.gvPrivateChat.Appearance.GroupRow.Font = new Font("Tahoma", 10f); this.gvPrivateChat.Appearance.GroupRow.ForeColor = Color.White; this.gvPrivateChat.Appearance.GroupRow.Options.UseBackColor = true; this.gvPrivateChat.Appearance.GroupRow.Options.UseFont = true; this.gvPrivateChat.Appearance.GroupRow.Options.UseForeColor = true; this.gvPrivateChat.Appearance.HeaderPanel.BackColor = Color.Black; this.gvPrivateChat.Appearance.HeaderPanel.BorderColor = Color.Black; this.gvPrivateChat.Appearance.HeaderPanel.Font = new Font("Tahoma", 10f, FontStyle.Bold); this.gvPrivateChat.Appearance.HeaderPanel.ForeColor = Color.White; this.gvPrivateChat.Appearance.HeaderPanel.Options.UseBackColor = true; this.gvPrivateChat.Appearance.HeaderPanel.Options.UseBorderColor = true; this.gvPrivateChat.Appearance.HeaderPanel.Options.UseFont = true; this.gvPrivateChat.Appearance.HeaderPanel.Options.UseForeColor = true; this.gvPrivateChat.Appearance.HideSelectionRow.BackColor = Color.Black; this.gvPrivateChat.Appearance.HideSelectionRow.Font = new Font("Tahoma", 10f); this.gvPrivateChat.Appearance.HideSelectionRow.ForeColor = Color.FromArgb(0xd4, 0xd0, 200); this.gvPrivateChat.Appearance.HideSelectionRow.Options.UseBackColor = true; this.gvPrivateChat.Appearance.HideSelectionRow.Options.UseFont = true; this.gvPrivateChat.Appearance.HideSelectionRow.Options.UseForeColor = true; this.gvPrivateChat.Appearance.HorzLine.BackColor = Color.Yellow; this.gvPrivateChat.Appearance.HorzLine.Options.UseBackColor = true; this.gvPrivateChat.Appearance.Preview.BackColor = Color.White; this.gvPrivateChat.Appearance.Preview.Font = new Font("Tahoma", 10f); this.gvPrivateChat.Appearance.Preview.ForeColor = Color.Purple; this.gvPrivateChat.Appearance.Preview.Options.UseBackColor = true; this.gvPrivateChat.Appearance.Preview.Options.UseFont = true; this.gvPrivateChat.Appearance.Preview.Options.UseForeColor = true; this.gvPrivateChat.Appearance.Row.BackColor = Color.Black; this.gvPrivateChat.Appearance.Row.Font = new Font("Arial", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0xb2); this.gvPrivateChat.Appearance.Row.ForeColor = Color.White; this.gvPrivateChat.Appearance.Row.Options.UseBackColor = true; this.gvPrivateChat.Appearance.Row.Options.UseFont = true; this.gvPrivateChat.Appearance.Row.Options.UseForeColor = true; this.gvPrivateChat.Appearance.RowSeparator.BackColor = Color.White; this.gvPrivateChat.Appearance.RowSeparator.BackColor2 = Color.White; this.gvPrivateChat.Appearance.RowSeparator.Options.UseBackColor = true; this.gvPrivateChat.Appearance.SelectedRow.BackColor = Color.FromArgb(0x40, 0x40, 0x40); this.gvPrivateChat.Appearance.SelectedRow.BackColor2 = Color.Black; this.gvPrivateChat.Appearance.SelectedRow.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.gvPrivateChat.Appearance.SelectedRow.ForeColor = Color.White; this.gvPrivateChat.Appearance.SelectedRow.Options.UseBackColor = true; this.gvPrivateChat.Appearance.SelectedRow.Options.UseFont = true; this.gvPrivateChat.Appearance.SelectedRow.Options.UseForeColor = true; this.gvPrivateChat.Appearance.TopNewRow.Font = new Font("Tahoma", 10f); this.gvPrivateChat.Appearance.TopNewRow.ForeColor = Color.White; this.gvPrivateChat.Appearance.TopNewRow.Options.UseFont = true; this.gvPrivateChat.Appearance.TopNewRow.Options.UseForeColor = true; this.gvPrivateChat.Appearance.VertLine.BackColor = Color.Yellow; this.gvPrivateChat.Appearance.VertLine.Options.UseBackColor = true; this.gvPrivateChat.BorderStyle = BorderStyles.NoBorder; this.gvPrivateChat.Columns.AddRange(new GridColumn[] { this.colIcon, this.colPlayer, this.colText, this.gcVisible }); this.gvPrivateChat.GridControl = this.gpgChatGrid; this.gvPrivateChat.Name = "gvPrivateChat"; this.gvPrivateChat.OptionsDetail.AllowZoomDetail = false; this.gvPrivateChat.OptionsDetail.EnableMasterViewMode = false; this.gvPrivateChat.OptionsDetail.ShowDetailTabs = false; this.gvPrivateChat.OptionsDetail.SmartDetailExpand = false; this.gvPrivateChat.OptionsSelection.EnableAppearanceFocusedCell = false; this.gvPrivateChat.OptionsSelection.MultiSelect = true; this.gvPrivateChat.OptionsView.RowAutoHeight = true; this.gvPrivateChat.OptionsView.ShowColumnHeaders = false; this.gvPrivateChat.OptionsView.ShowFilterPanelMode = ShowFilterPanelMode.Never; this.gvPrivateChat.OptionsView.ShowGroupPanel = false; this.gvPrivateChat.OptionsView.ShowHorzLines = false; this.gvPrivateChat.OptionsView.ShowIndicator = false; this.gvPrivateChat.OptionsView.ShowVertLines = false; this.gvPrivateChat.CustomDrawCell += new RowCellCustomDrawEventHandler(this.gvChat_CustomDrawCell); this.gvPrivateChat.MouseUp += new MouseEventHandler(this.gvChat_MouseUp); this.gvPrivateChat.CalcRowHeight += new RowHeightEventHandler(this.gvChat_CalcRowHeight); this.gvPrivateChat.MouseMove += new MouseEventHandler(this.gvChat_MouseMove); this.gvPrivateChat.MouseDown += new MouseEventHandler(this.gvChat_MouseDown); this.colIcon.Caption = "Player Icon"; this.colIcon.ColumnEdit = this.rimPictureEdit3; this.colIcon.FieldName = "Icon"; this.colIcon.Name = "colIcon"; this.colIcon.OptionsColumn.AllowEdit = false; this.colIcon.OptionsColumn.FixedWidth = true; this.colIcon.OptionsColumn.ReadOnly = true; this.colIcon.Width = 40; this.rimPictureEdit3.Name = "rimPictureEdit3"; this.rimPictureEdit3.PictureAlignment = ContentAlignment.TopCenter; this.colPlayer.Caption = "Player Name"; this.colPlayer.ColumnEdit = this.rimMemoEdit3; this.colPlayer.FieldName = "PlayerInfo"; this.colPlayer.Name = "colPlayer"; this.colPlayer.OptionsColumn.AllowEdit = false; this.colPlayer.OptionsColumn.FixedWidth = true; this.colPlayer.OptionsColumn.ReadOnly = true; this.colPlayer.Visible = true; this.colPlayer.VisibleIndex = 0; this.colPlayer.Width = 150; this.rimMemoEdit3.MaxLength = 500; this.rimMemoEdit3.Name = "rimMemoEdit3"; this.colText.Caption = "Chat Content"; this.colText.ColumnEdit = this.rimMemoEdit3; this.colText.FieldName = "Text"; this.colText.Name = "colText"; this.colText.OptionsColumn.AllowEdit = false; this.colText.OptionsColumn.ReadOnly = true; this.colText.Visible = true; this.colText.VisibleIndex = 1; this.colText.Width = 0x120; this.gcVisible.Caption = "gcVisible"; this.gcVisible.FieldName = "IsVisible"; this.gcVisible.Name = "gcVisible"; this.rimTextEdit.AutoHeight = false; this.rimTextEdit.Name = "rimTextEdit"; this.textBoxMsg.Dock = DockStyle.Bottom; this.textBoxMsg.Location = new Point(0, 5); this.textBoxMsg.Name = "textBoxMsg"; this.textBoxMsg.Properties.Appearance.BackColor = Color.Black; this.textBoxMsg.Properties.Appearance.BorderColor = Color.FromArgb(0x52, 0x83, 190); this.textBoxMsg.Properties.Appearance.ForeColor = Color.White; this.textBoxMsg.Properties.Appearance.Options.UseBackColor = true; this.textBoxMsg.Properties.Appearance.Options.UseBorderColor = true; this.textBoxMsg.Properties.Appearance.Options.UseForeColor = true; this.textBoxMsg.Properties.AppearanceFocused.BackColor = Color.FromArgb(0x10, 0x21, 0x4f); this.textBoxMsg.Properties.AppearanceFocused.BackColor2 = Color.FromArgb(0, 0, 0); this.textBoxMsg.Properties.AppearanceFocused.BorderColor = Color.FromArgb(0xbb, 0xc9, 0xe2); this.textBoxMsg.Properties.AppearanceFocused.GradientMode = LinearGradientMode.ForwardDiagonal; this.textBoxMsg.Properties.AppearanceFocused.Options.UseBackColor = true; this.textBoxMsg.Properties.AppearanceFocused.Options.UseBorderColor = true; this.textBoxMsg.Properties.BorderStyle = BorderStyles.Simple; this.textBoxMsg.Properties.LookAndFeel.SkinName = "London Liquid Sky"; this.textBoxMsg.Properties.LookAndFeel.UseDefaultLookAndFeel = false; this.textBoxMsg.Properties.MaxLength = 300; this.textBoxMsg.Size = new Size(0x1b6, 20); this.textBoxMsg.TabIndex = 0; this.msQuickButtons.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this.msQuickButtons.AutoSize = false; this.msQuickButtons.BackgroundImage = (Image) manager.GetObject("msQuickButtons.BackgroundImage"); this.msQuickButtons.Dock = DockStyle.None; this.msQuickButtons.GripMargin = new Padding(0); this.msQuickButtons.ImageScalingSize = new Size(0x2d, 0x2d); this.msQuickButtons.Items.AddRange(new ToolStripItem[] { this.btnAddFriend, this.btnRemoveFriend, this.btnIgnore, this.btnClanInvite, this.btnInviteToTeam, this.btnMore }); this.msQuickButtons.Location = new Point(9, 0xd1); this.msQuickButtons.Name = "msQuickButtons"; this.msQuickButtons.Padding = new Padding(0, 0, 10, 0); this.msQuickButtons.RenderMode = ToolStripRenderMode.Professional; this.msQuickButtons.ShowItemToolTips = true; this.msQuickButtons.Size = new Size(0x1b9, 0x34); base.ttDefault.SetSuperTip(this.msQuickButtons, null); this.msQuickButtons.TabIndex = 7; this.msQuickButtons.Paint += new PaintEventHandler(this.msQuickButtons_Paint); this.msQuickButtons.SizeChanged += new EventHandler(this.msQuickButtons_SizeChanged); this.btnAddFriend.AutoSize = false; this.btnAddFriend.AutoToolTip = true; this.btnAddFriend.Image = (Image) manager.GetObject("btnAddFriend.Image"); this.btnAddFriend.ImageScaling = ToolStripItemImageScaling.None; this.btnAddFriend.Name = "btnAddFriend"; this.btnAddFriend.ShortcutKeys = Keys.F2; this.btnAddFriend.Size = new Size(0x25, 0x34); this.btnAddFriend.ToolTipText = "<LOC>Add to Friends List"; this.btnAddFriend.Click += new EventHandler(this.btnAddFriend_Click); this.btnRemoveFriend.AutoSize = false; this.btnRemoveFriend.AutoToolTip = true; this.btnRemoveFriend.Image = (Image) manager.GetObject("btnRemoveFriend.Image"); this.btnRemoveFriend.ImageScaling = ToolStripItemImageScaling.None; this.btnRemoveFriend.Name = "btnRemoveFriend"; this.btnRemoveFriend.ShortcutKeys = Keys.F8; this.btnRemoveFriend.Size = new Size(0x25, 0x34); this.btnRemoveFriend.ToolTipText = "<LOC>Remove From Friends List"; this.btnRemoveFriend.Click += new EventHandler(this.btnRemoveFriend_Click); this.btnIgnore.AutoSize = false; this.btnIgnore.AutoToolTip = true; this.btnIgnore.Image = (Image) manager.GetObject("btnIgnore.Image"); this.btnIgnore.ImageScaling = ToolStripItemImageScaling.None; this.btnIgnore.Name = "btnIgnore"; this.btnIgnore.ShortcutKeys = Keys.F7; this.btnIgnore.Size = new Size(0x25, 0x34); this.btnIgnore.ToolTipText = "<LOC>Ignore This Person"; this.btnIgnore.Click += new EventHandler(this.btnIgnore_Click); this.btnClanInvite.AutoSize = false; this.btnClanInvite.AutoToolTip = true; this.btnClanInvite.Image = (Image) manager.GetObject("btnClanInvite.Image"); this.btnClanInvite.ImageScaling = ToolStripItemImageScaling.None; this.btnClanInvite.Name = "btnClanInvite"; this.btnClanInvite.ShortcutKeys = Keys.F8; this.btnClanInvite.Size = new Size(0x25, 0x34); this.btnClanInvite.ToolTipText = "<LOC>Invite To Clan"; this.btnClanInvite.Click += new EventHandler(this.btnClanInvite_Click); this.btnInviteToTeam.AutoSize = false; this.btnInviteToTeam.AutoToolTip = true; this.btnInviteToTeam.Image = (Image) manager.GetObject("btnInviteToTeam.Image"); this.btnInviteToTeam.ImageScaling = ToolStripItemImageScaling.None; this.btnInviteToTeam.Name = "btnInviteToTeam"; this.btnInviteToTeam.ShortcutKeys = Keys.F8; this.btnInviteToTeam.Size = new Size(0x25, 0x34); this.btnInviteToTeam.ToolTipText = "<LOC>Invite To Arranged Team"; this.btnInviteToTeam.Click += new EventHandler(this.btnInviteToTeam_Click); this.btnMore.AutoSize = false; this.btnMore.AutoToolTip = true; this.btnMore.Image = (Image) manager.GetObject("btnMore.Image"); this.btnMore.ImageScaling = ToolStripItemImageScaling.None; this.btnMore.Name = "btnMore"; this.btnMore.ShortcutKeys = Keys.F6; this.btnMore.Size = new Size(20, 0x34); this.btnMore.ToolTipText = "<LOC>More..."; base.AutoScaleMode = AutoScaleMode.None; base.ClientSize = new Size(0x1cd, 0x156); base.Controls.Add(this.msQuickButtons); base.Controls.Add(this.splitContainer1); this.Font = new Font("Verdana", 8f); base.Location = new Point(0, 0); this.MinimumSize = new Size(200, 0xdd); base.Name = "FrmPrivateChat"; base.ttDefault.SetSuperTip(this, null); this.Text = "FrmPrivateChat"; base.Controls.SetChildIndex(this.splitContainer1, 0); base.Controls.SetChildIndex(this.msQuickButtons, 0); ((ISupportInitialize) base.pbBottom).EndInit(); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); this.splitContainer1.ResumeLayout(false); this.gpgChatGrid.EndInit(); this.gvPrivateChat.EndInit(); this.rimPictureEdit3.EndInit(); this.rimMemoEdit3.EndInit(); this.rimTextEdit.EndInit(); this.textBoxMsg.Properties.EndInit(); this.msQuickButtons.ResumeLayout(false); this.msQuickButtons.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void 查看_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int i = this.gridView1.FocusedRowHandle; if (i >= 0) { CustClassInfo item = CustClassManager.Instance.AllClasses[i]; XtraForm form = new XtraForm(); if (item.ListOrSingle) { GridView gv = new GridView(); gv.OptionsView.ShowGroupPanel = false; gv.OptionsView.NewItemRowPosition = NewItemRowPosition.Top; gv.OptionsView.ShowFooter = true; GridControl gc = new GridControl(); gc.Dock = DockStyle.Fill; gc.MainView = gv; gc.ViewCollection.AddRange(new DevExpress.XtraGrid.Views.Base.BaseView[] { gv }); gv.GridControl = gc; foreach (var itemP in item.ClassType.GetProperties()) { Type typeP = itemP.PropertyType; if (typeP.IsGenericType) //判断是否有属性为List<> //注意这里最多嵌套两层,三层或以上的情况懒得再递归了,一般最多两层 { Type listSubType = typeP.GetGenericArguments()[0]; //如List<string>获取到string type GridView gvSub = new GridView(); gvSub.OptionsView.ShowGroupPanel = false; gvSub.OptionsView.NewItemRowPosition = NewItemRowPosition.Top; gvSub.OptionsView.ShowFooter = true; gvSub.GridControl = gc; GridLevelNode gridLevelNode = new GridLevelNode(); gridLevelNode.LevelTemplate = gvSub; gridLevelNode.RelationName = $@"{itemP.Name}"; gc.LevelTree.Nodes.AddRange(new GridLevelNode[] { gridLevelNode }); } } object genericList = ClassDynamicCreater.CreateGeneric(typeof(BindingList <>), item.ClassType); if (item.DataSourceTag == null || item.DataSourceTag.GetType() != genericList.GetType()) { item.DataSourceTag = genericList; } //IBindingList ibl = item.DataSourceTag as IBindingList; gc.DataSource = item.DataSourceTag; form.Controls.Add(gc); } else { PropertyGridControl pc = new PropertyGridControl(); pc.Dock = DockStyle.Fill; pc.SelectedObject = item.Instance; form.Controls.Add(pc); } form.ShowDialog(); } }