public LayoutFilterView(LayoutList list) { styleClose = GuiEnvironment.Theme["Close"]; AutoSize = true; AllowCellSize = true; AllowFilter = false; AllowSort = false; EditMode = EditModes.ByClick; GenerateColumns = false; GenerateToString = false; valueColumn = new LayoutColumn { Name = nameof(LayoutFilter.Value), Width = 150, Invoker = valueInvoker }; ListInfo = new LayoutListInfo( new LayoutColumn { Name = nameof(LayoutFilter.Logic), Width = 50, Invoker = logicInvoker }, new LayoutColumn { Name = nameof(LayoutFilter.Header), Editable = false, Invoker = headerInvoker }, new LayoutColumn { Name = nameof(LayoutFilter.Comparer), Width = 50, Invoker = comparerInvoker }, valueColumn) { Indent = 9, HeaderWidth = 22, ColumnsVisible = false, GridMode = true, GridAuto = true, StyleRowName = "Row" //StyleRow = new CellStyle() //{ // Alternate = false, // Round = 6, // BackBrush = new CellStyleBrush() // { // Color = Colors.White, // ColorSelect = Colors.White, // ColorHover = Colors.White // }, // BorderBrush = new CellStyleBrush() // { // Color = Colors.Gray, // ColorSelect = Colors.Gray, // ColorHover = Colors.Gray // } //} }; ListSource = new LayoutFilterList(list); Filters.CollectionChanged += (sender, e) => { List.OnFilterChange(); }; Filters.ItemPropertyChanged += (sender, e) => { List.OnFilterChange(); }; }
public static bool IsValid(this LayoutList layouts) { if (!layouts.IsValid <LayoutInfo>()) { return(false); } return(true); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { LayoutList.DataBind(); BindThemes(); } AbleCommerce.Code.PageHelper.SetMaxLengthCountDown(Summary, SummaryCharCount); }
private bool TryScrollToSelectedItem() { var selectedItem = LayoutList.SelectedItem; if (selectedItem == null) { return(false); } LayoutList.ScrollIntoView(selectedItem); return(true); }
/// <summary> /// Safely returns the <see cref="Layout{T}"/> from a layout object. /// </summary> /// <param name="source"></param> /// <param name="getter"></param> /// <typeparam name="TLayout"></typeparam> /// <typeparam name="T"></typeparam> /// <returns></returns> public static LayoutList <T> Select <TLayout, T>(this Layout <TLayout> source, Func <TLayout, LayoutList <T> > getter) where TLayout : Layout where T : Layout { if (source == null || !source.IsPresent) { return(LayoutList.Missing <T>()); } return(getter(source.Value) ?? LayoutList.Missing <T>()); }
/// <summary> /// Safely returns the <see cref="LayoutList{TValue}"/> from the parsed result. /// </summary> /// <param name="result"></param> /// <param name="getter"></param> /// <typeparam name="TCursor"></typeparam> /// <typeparam name="TLayout"></typeparam> /// <typeparam name="T"></typeparam> /// <returns></returns> public static LayoutList <T> Select <TCursor, TLayout, T>(this Result <Cursor <TCursor>, TLayout> result, Func <TLayout, LayoutList <T> > getter) where TLayout : Layout where T : Layout { if (result == null || !result.HasResult) { return(LayoutList.Missing <T>()); } return(getter(result.Result) ?? LayoutList.Missing <T>()); }
public void Should_be_able_to_format_layout() { const string message = @"MSH|^~\&|MACHETELAB|^DOSC|MACHETE|18779|20130405125146269||ORM^O01|1999077678|P|2.3|||AL|AL NTE|1||KOPASD NTE|2||A3RJ NTE|3||7ADS NTE|4||G46DG PID|1|000000000026|60043^^^MACHETE^MRN||MACHETE^JOE||19890909|F|||123 SEASAME STREET^^Oakland^CA^94600||5101234567|5101234567||||||||||||||||N PD1|M|F|N||||F| NTE|1||IN42 PV1|1|O|||||92383^Machete^Janice||||||||||||12345|||||||||||||||||||||||||201304051104 PV2||||||||20150615|20150616|1||||||||||||||||||||||||||N IN1|1|||MACHETE INC|1234 Fruitvale ave^^Oakland^CA^94601^USA||5101234567^^^^^510^1234567|074394|||||||A1|MACHETE^JOE||19890909|123 SEASAME STREET^^Oakland^CA^94600||||||||||||N|||||666889999|0||||||F||||T||60043^^^MACHETE^MRN GT1|1|60043^^^MACHETE^MRN|MACHETE^JOE||123 SEASAME STREET^^Oakland^CA^94600|5416666666|5418888888|19890909|F|P AL1|1|FA|^pollen allergy|SV|jalubu daggu|| ORC|NW|PRO2350||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11636^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa ORC|NW|PRO2351||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11637^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa ORC|NW|PRO2352||XO934N|||^^^^^R||20130405125144|91238^Machete^Joe||92383^Machete^Janice OBR|1|PRO2350||11638^Urinalysis, with Culture if Indicated^L|||20130405135133||||N|||||92383^Machete^Janice|||||||||||^^^^^R DG1|1|I9|788.64^URINARY HESITANCY^I9|URINARY HESITANCY OBX|1||URST^Urine Specimen Type^^^||URN NTE|1||abc NTE|2||dsa"; EntityResult <HL7Entity> parse = Parser.Parse(message); Assert.IsTrue(Schema.TryGetLayout(out ILayoutParserFactory <ORM_O01, HL7Entity> layout)); IParser <HL7Entity, ORM_O01> query = parse.CreateQuery(q => layout.CreateParser(LayoutParserOptions.None, q)); Result <Cursor <HL7Entity>, ORM_O01> result = parse.Query(query); Assert.That(result.HasResult, Is.True); LayoutList <ORM_O01_ORDER> orders = result.Select(x => x.Order); Assert.That(Schema.TryGetLayoutFormatter(out ILayoutFormatter <ORM_O01_ORDER> formatter), Is.True); var context = new StringBuilderFormatContext(); formatter.Format(context, orders[0].Value); Assert.That(context.ToString(), Is.EqualTo(message)); }
private void TestInvokerClick(object sender, EventArgs e) { int count = 1000000; var list = TestResult.Test(count); var plist = new LayoutList(); plist.Text += "Test<" + count.ToString("0,0") + ">\n"; plist.GenerateToString = false; plist.ListSource = list; dock.Put(plist); }
/// <summary> /// Safely returns the <see cref="Layout{T}"/> from a layout object. /// </summary> /// <param name="source"></param> /// <param name="getter"></param> /// <typeparam name="TLayout"></typeparam> /// <typeparam name="T"></typeparam> /// <returns></returns> public static LayoutList <T> Select <TLayout, T>(this Layout <TLayout> source, Func <TLayout, LayoutList <T> > getter) where TLayout : Layout where T : Layout { Debug.Assert(source != null); if (source == null || !source.HasValue) { return(LayoutList.Missing <T>()); } return(getter(source.Value) ?? LayoutList.Missing <T>()); }
private void InitData() { LayoutList ll = this.ctrlLayoutList1.FocusedObject; if (ll == null) { return; } InitSodata2(); selectid = ll.UID; selectname = ll.ListName; InitGridData(); }
/// <summary> /// 删除焦点对象 /// </summary> public void DeleteObject() { //获取焦点对象 LayoutList obj = FocusedObject; if (obj == null) { return; } //请求确认 if (MsgBox.ShowYesNo(Strings.SubmitDelete) != DialogResult.Yes) { return; } //执行删除操作 try { UCDeviceBase.DataService.Delete <LayoutList>(obj); switch (obj.Types) { case "1": UCDeviceBase.DataService.Update("DeleteLine_InfoByFlag1", obj.UID); break; case "2": UCDeviceBase.DataService.Update("DeleteSubstation_InfoByFlag1", obj.UID); break; } } catch (Exception exc) { Debug.Fail(exc.Message); HandleException.TryCatch(exc); return; } this.gridView.BeginUpdate(); //记住当前焦点行索引 int iOldHandle = this.gridView.FocusedRowHandle; //从链表中删除 ObjectList.Remove(obj); //刷新表格 gridControl.RefreshDataSource(); //设置新的焦点行索引 GridHelper.FocuseRowAfterDelete(this.gridView, iOldHandle); this.gridView.EndUpdate(); }
private void InitGridData() { LayoutList ll = this.ctrlLayoutList1.FocusedObject; if (ll == null) { return; } InitSodata1(); this.ctrlLine_Info1.GridView.GroupPanelText = ll.ListName; this.ctrlLine_Info1.Type2 = type2; this.ctrlLine_Info1.RefreshData(ll.UID); }
/// <summary> /// Convert an IEnumerable to a LayoutList /// </summary> /// <param name="layouts">A list of LayoutInfo objects.</param> /// <returns>A LayoutList</returns> public static LayoutList ToLayoutList(this IEnumerable <LayoutInfo> layouts) { LayoutList result = new LayoutList(); foreach (var layout in layouts) { if (layout.IsValid()) { var parent = layout.Parent; result.Add(layout); result.Last().Parent = parent; } } return(result); }
private void ToolDBGenerateClick(object sender, EventArgs e) { var assemblyList = new SelectableList <AsseblyCheck>(); string[] asseblies = Directory.GetFiles(Helper.GetDirectory(), "*.dll"); foreach (string dll in asseblies) { AssemblyDefinition assemblyDefinition = null; try { assemblyDefinition = AssemblyDefinition.ReadAssembly(dll); } catch { continue; } var moduleAttribute = assemblyDefinition.CustomAttributes .Where(item => item.AttributeType.Name == nameof(AssemblyMetadataAttribute)) .Select(item => item.ConstructorArguments.Select(sitem => sitem.Value.ToString()) .ToArray()); if (moduleAttribute.Any(item => item[0] == "module")) { assemblyList.Add(new AsseblyCheck(Assembly.LoadFile(dll))); } } var list = new LayoutList { AllowCheck = true, CheckRecursive = true, AutoToStringFill = true, GenerateToString = true, GenerateColumns = false, ListSource = assemblyList }; var window = new ToolWindow { Title = "Select Assembly", Target = list }; window.Show(this, Point.Zero); window.ButtonAcceptClick += (s, a) => { var schema = new DBSchema("NewSchema"); schema.Generate(assemblyList.Where(p => p.Check).Select(p => p.Assembly)); DBService.Schems.Add(schema); ShowNewItem(schema); }; }
public RowDeleting() { toolProgress = new ToolProgressBar { Name = "toolProgress", DisplayStyle = ToolItemDisplayStyle.Text }; list = new LayoutList() { GenerateToString = false, GenerateColumns = false, Name = "list", Text = "Reference List", ListInfo = new LayoutListInfo( new[] { new LayoutColumn { Name = nameof(ToString), FillWidth = true }, new LayoutColumn { Name = nameof(DBItem.Table), Width = 100, Visible = false }, new LayoutColumn { Name = nameof(DBItem.Status), Width = 100 }, new LayoutColumn { Name = nameof(DBItem.UpdateState), Width = 100 }, new LayoutColumn { Name = nameof(DBItem.Attached), Width = 30 } }, new[] { new LayoutSort("Table", ListSortDirection.Ascending, true) }) { ColumnsVisible = false, }, ListSource = rows }; bar.Add(toolProgress); Label.Text = "Row Deleting"; Name = "RowDeleting"; Target = list; Mode = ToolShowMode.Modal; Size = new Size(800, 600); Localizing(); }
public FindWindow() : base() { this.Height = 100; ButtonAcceptText = "Next"; Label.Text = "Find in text"; LayoutList findParam = new LayoutList(); findParam.CellValueChanged += FindParamCellValueChanged; findParam.Mode = LayoutListMode.Fields; findParam.EditMode = EditModes.ByClick; findParam.FieldSource = prm; this.Target = findParam; this.Mode = ToolShowMode.Modal; }
private void ToolShowImagesClick(object sender, EventArgs e) { if (doc == null) { return; } var listView = new LayoutList { ListSource = doc.GetImages() }; var dialog = new Dialog { Content = listView }; dialog.Run(this); }
public void Export(string filename, LayoutList list) { var doc = new Doc.Odf.CellDocument(); var table = doc.SpreadSheet.GetChilds(typeof(Doc.Odf.Table))[0] as Doc.Odf.Table; table.Clear(); //List<ILayoutItem> cols = LayoutMapTool.GetVisibleItems(list.ListInfo.Columns); //columns ExpMapLayout(table, list.ListInfo.Columns, 0, 2, out int mc, out int ind, null, null); //GetColumn(table, mc + 1, 0); //data if (list.ListInfo.GroupVisible) { foreach (LayoutGroup g in list.Groups) { ind++; var cell = GetCell(table, 0, (int)ind); cell.StyleName = "ce4"; cell.Val = g.TextValue; cell.NumberColumnsSpanned = (mc + 1).ToString(); cell.NumberRowsSpanned = "1"; var row = GetRow(table, ind, false); row.Add(cell); row.Add(new Doc.Odf.CoveredCell(table.Document) { ColumnsRepeatedCount = mc.ToString() }); for (int i = g.IndexStart; i <= g.IndexEnd; i++) { ind++; ExpMapLayout(table, list.ListInfo.Columns, 0, ind, out mc, out ind, list, list.ListSource[i]); } } } else { foreach (object o in list.ListSource) { ind++; ExpMapLayout(table, list.ListInfo.Columns, 0, ind, out mc, out ind, list, o); } } doc.Save(filename); }
private void ToolGenerateClick(object sender, EventArgs e) { var param = new DBExport { Mode = ExportMode.Patch, Stamp = DateTime.Today }; var dtree = new DataTree { AllowCheck = true, CheckRecursive = true, DataKeys = DataTreeKeys.Schema | DataTreeKeys.TableGroup | DataTreeKeys.Table, DataFilter = CurrentSchema }; var list = new LayoutList { EditMode = EditModes.ByClick, FieldSource = param }; var box = new VPaned(); box.Panel1.Resize = false; box.Panel1.Content = list; box.Panel2.Content = dtree; tw.Target = box; tw.Show(this, new Point(0, 0)); tw.ButtonAccept.Click += (o, a) => { var tables = new List <DBTable>(); foreach (Node n in dtree.Nodes) { if (n.Check && n.Tag is DBTable && ((DBTable)n.Tag).Type == DBTableType.Table) { tables.Add(n.Tag as DBTable); } } this.queryText.Text += param.GeneratePatch(tables); }; }
protected void Page_Load(object sender, EventArgs e) { _CategoryId = AbleCommerce.Code.PageHelper.GetCategoryId(); _Category = CategoryDataSource.Load(_CategoryId); CancelButton.NavigateUrl = "Browse.aspx?CategoryId=" + _CategoryId.ToString(); CancelButton2.NavigateUrl = "Browse.aspx?CategoryId=" + _CategoryId.ToString(); if (_Category == null) { Response.Redirect(CancelButton.NavigateUrl); Response.Redirect(CancelButton2.NavigateUrl); } if (!Page.IsPostBack) { LayoutList.DataBind(); BindThemes(); CategoryTree1.SelectedCategories = new int[] { _CategoryId }; CommerceBuilder.Users.User user = AbleContext.Current.User; PublishedBy.Text = user.PrimaryAddress.FirstName + " " + user.PrimaryAddress.LastName; } AbleCommerce.Code.PageHelper.SetPickImageButton(ThumbnailUrl, BrowseThumbnailUrl); AbleCommerce.Code.PageHelper.SetMaxLengthCountDown(MetaKeywordsValue, MetaKeywordsCharCount); AbleCommerce.Code.PageHelper.SetMaxLengthCountDown(MetaDescriptionValue, MetaDescriptionCharCount); if (!AbleContext.Current.Store.Settings.EnableWysiwygEditor) { AbleCommerce.Code.PageHelper.SetHtmlEditor(WebpageContent, ContentHtmlButton); } else { ContentHtmlButton.Visible = false; } if (!AbleContext.Current.Store.Settings.EnableWysiwygEditor) { AbleCommerce.Code.PageHelper.SetHtmlEditor(Summary, SummaryHtmlButton); } else { SummaryHtmlButton.Visible = false; } }
public StartPage() { listProjects = new LayoutList { EditState = EditListState.Edit, Name = "Projects", ListSource = GuiEnvironment.ProjectsInfo }; listProjects.ListInfo.HotSelection = true; listProjects.CellMouseClick += ListRecentCellMouseClick; listLinks = new LayoutList { Mode = LayoutListMode.List, Name = "Links", ListSource = GuiEnvironment.WebLinks }; listLinks.ListInfo.HotSelection = true; box = new GroupBox( new GroupBoxItem { Column = 0, Widget = listProjects, FillHeight = true, Name = "Projects", Width = 370, Height = 400 }, new GroupBoxItem { Column = 1, Widget = listLinks, FillWidth = true, FillHeight = true, Name = "Links", Width = 370, Height = 400 }) { Name = "StartPage" }; label = new Label { Font = Font.WithSize(22D), Name = "label", Text = "Data\\Document Workflow Solution" }; PackStart(label, false, false); PackStart(box, true, true); Name = "StartPage"; Localize(); }
private void FieldsCellValueChanged(object sender, LayoutValueEventArgs e) { if (ListMode && Status == TableEditorStatus.Adding) { LayoutList flist = (LayoutList)sender; var query = DBList.View.Query; LayoutField ff = (LayoutField)e.Cell; if (e.Data != DBNull.Value) { query.BuildParam(ff.Name, e.Data, QQueryBuildParam.AutoLike | QQueryBuildParam.SplitString); } foreach (LayoutField field in flist.Fields) { object val = flist.ReadValue(field, (LayoutColumn)flist.ListInfo.Columns["Value"]); if (!field.Visible || val == null || val == DBNull.Value || GroupHelper.Level(field) != 0) { continue; } if (field == ff) { continue; } if (string.IsNullOrEmpty(val.ToString())) { continue; } query.BuildParam(field.Name, val, QQueryBuildParam.AutoLike | QQueryBuildParam.SplitString); } if (query.Parameters.Count == 0) { loader.Cancel(); } else if (!Table.IsSynchronized) { loader.LoadAsync(query); } //list.View.UpdateFilter(); } }
protected void ShowException(Exception ex) { var list = new LayoutList() { FieldSource = new ExceptionInfo(ex) }; list.ListInfo.CalcHeigh = true; var exceptionWindow = new ToolWindow() { Title = "Exception!", Mode = ToolShowMode.Dialog, Width = 640, Target = list }; exceptionWindow.ButtonClose.Visible = false; exceptionWindow.Show(null, Point.Zero); }
/// <summary> /// Convert an IEnumerable to a LayoutList /// </summary> /// <param name="layouts">A list of LayoutInfo objects.</param> /// <param name="parent">A ConcernInfo object.</param> /// <returns>A LayoutList</returns> public static LayoutList ToLayoutList( this IEnumerable <LayoutInfo> layouts, ConcernInfo parent) { var result = new LayoutList(); if (parent.IsValid()) { foreach (var layout in layouts) { if (layout.IsValid()) { result.Add(layout); result.Last().Parent = parent; } } } return(result); }
protected void Page_Load(object sender, EventArgs e) { _WebpageId = AlwaysConvert.ToInt(Request.QueryString["WebpageId"]); _Webpage = WebpageDataSource.Load(_WebpageId); if (_Webpage == null) { Response.Redirect("Default.aspx"); } if (!Page.IsPostBack) { //INITIALIZE FORM ON FIRST VISIT Name.Focus(); UpdateCaption(); Name.Text = _Webpage.Name; Summary.Text = _Webpage.Summary; SummaryCharCount.Text = (AlwaysConvert.ToInt(SummaryCharCount.Text) - Summary.Text.Length).ToString(); WebpageContent.Text = _Webpage.Description; LayoutList.DataBind(); BindThemes(); string layout = _Webpage.Layout != null ? _Webpage.Layout.FilePath : string.Empty; ListItem item = LayoutList.Items.FindByValue(layout); if (item != null) { item.Selected = true; } Name.Focus(); // SHOW SAVE CONFIRMATION NOTIFICATION IF NEEDED if (Request.UrlReferrer != null && Request.UrlReferrer.AbsolutePath.ToLowerInvariant().EndsWith("addproductpage.aspx")) { SavedMessage.Visible = true; SavedMessage.Text = string.Format(SavedMessage.Text, LocaleHelper.LocalNow); } } AbleCommerce.Code.PageHelper.SetMaxLengthCountDown(Summary, SummaryCharCount); }
private void ToolInsertTemplateClick(object sender, EventArgs e) { var list = new SelectableList <TemplateData>(Document.Template.GetReferencing <TemplateData>(nameof(TemplateData.TemplateId), DBLoadParam.None)); var listView = new LayoutList { ListSource = list }; var window = new ToolWindow { Target = listView }; window.ButtonAcceptClick += (s, a) => { if (listView.SelectedItem == null) { return; } var data = Document.GenerateFromTemplate <T>((TemplateData)listView.SelectedItem); data.Attach(); Current = data; ToolTemplateClick(s, a); }; window.Show(Bar, toolAdd.Bound.BottomLeft); }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { LayoutList.DataBind(); BindThemes(); CommerceBuilder.Users.User user = AbleContext.Current.User; PublishedBy.Text = user.PrimaryAddress.FirstName + " " + user.PrimaryAddress.LastName; } AbleCommerce.Code.PageHelper.SetPickImageButton(ThumbnailUrl, BrowseThumbnailUrl); AbleCommerce.Code.PageHelper.SetMaxLengthCountDown(MetaKeywordsValue, MetaKeywordsCharCount); AbleCommerce.Code.PageHelper.SetMaxLengthCountDown(MetaDescriptionValue, MetaDescriptionCharCount); if (!AbleContext.Current.Store.Settings.EnableWysiwygEditor) { AbleCommerce.Code.PageHelper.SetHtmlEditor(WebpageContent, HtmlButton); } else { HtmlButton.Visible = false; } }
public static ToolWindow InitEditor(string label, object obj, bool dispose = true) { var list = new LayoutList { EditMode = EditModes.ByClick, FieldSource = obj }; var window = new ToolWindow { Mode = ToolShowMode.Dialog, HeaderVisible = true, Target = list }; window.Label.Text = label; if (dispose) { window.Closed += (s, e) => window.Dispose(); } return(window); }
public ToolsbarEditor() { details = new LayoutList(); toolList = new ListEditor(new LayoutList() { GenerateColumns = false, GenerateToString = false, ListInfo = new LayoutListInfo( new LayoutColumn { Name = nameof(ToolItem.ToString), Editable = false }, new LayoutColumn { Name = nameof(ToolItem.Text), FillWidth = true }, new LayoutColumn { Name = nameof(ToolItem.Visible), Width = 50 }, new LayoutColumn { Name = nameof(ToolItem.Glyph) }) { } }); toolList.List.Bind(details, nameof(LayoutList.FieldSource), nameof(LayoutList.SelectedItem)); var map = new GroupBox( new GroupBoxItem { Name = "Items", Widget = toolList, FillWidth = true, FillHeight = true }, new GroupBoxItem { Name = "Details", Widget = details, FillWidth = true, FillHeight = true, Row = 1 }); PackStart(map, true, true); }
public PanedBase(string Name, EvaluatedAttributeList Params, LayoutList Childs) : base(Name, Params, Childs) { }
////////////////////////////////////////////////////////////////////////// public PolishKeyboardLayout() { Name = "Polish"; LayoutList.Clear(); LayoutList.Add(1045); }
/// <summary> /// �Ľ������ /// </summary> public void UpdateObject() { //��ȡ������� LayoutList obj = FocusedObject; if (obj == null) { return; } //���������һ������ LayoutList objCopy = new LayoutList(); DataConverter.CopyTo<LayoutList>(obj, objCopy); //ִ���IJ��� using (FrmLayoutListDialog dlg = new FrmLayoutListDialog()) { dlg.Object = objCopy; //���� dlg.IsShow = isshow; if (dlg.ShowDialog() != DialogResult.OK) { return; } } //�ø������½������ DataConverter.CopyTo<LayoutList>(objCopy, obj); //ˢ�±�� gridControl.RefreshDataSource(); }
public ToolbarExpression(string Name, EvaluatedAttributeList Params, LayoutList Childs) : base(Name, Params, Childs) { }
public ContainerWidgetBase(string Name, EvaluatedAttributeList Params, LayoutList Childs) : base(Name, Params) { this.Childs = Childs; }
public VButtonBoxContainer(string Name, EvaluatedAttributeList Params, LayoutList Childs) : base(Name, Params, Childs) { }
/// <summary> /// ��Ӷ��� /// </summary> public void AddObject() { //�����������Ƿ��Ѿ����� if (ObjectList == null) { return; } //�½����� LayoutList obj = new LayoutList(); obj.Types = type; //ִ����Ӳ��� using (FrmLayoutListDialog dlg = new FrmLayoutListDialog()) { dlg.IsCreate = true; //�����½���־ dlg.Object = obj; dlg.IsShow = isshow; if (dlg.ShowDialog() != DialogResult.OK) { return; } } //���¶�����뵽������ ObjectList.Add(obj); //ˢ�±���������ж�λ���¶����ϡ� gridControl.RefreshDataSource(); GridHelper.FocuseRow(this.gridView, obj); }