加入若干pgsql的接口

This commit is contained in:
2025-12-13 16:33:41 +08:00
parent 97337f31ce
commit f9db3c7226
10 changed files with 1526 additions and 131 deletions

View File

@@ -75,6 +75,7 @@ namespace Ramitta
elementFactory.SetValue(ComboBox.SelectedIndexProperty, 0);
SetBindingToProperty(elementFactory, ComboBox.ItemsSourceProperty, $"[{columnName}].ItemsSource");
SetBindingToProperty(elementFactory, ComboBox.SelectedValueProperty, $"[{columnName}].SelectedValue");
SetBindingToProperty(elementFactory, ComboBox.MaxWidthProperty, $"[{columnName}].MaxWidth");
break;
case ColumnType.Label:
elementFactory = new FrameworkElementFactory(typeof(Label));
@@ -94,9 +95,6 @@ namespace Ramitta
column.CellEditingTemplate = dataTemplate;
xDataGrid.Columns.Add(column);
}
public Dictionary<string, object> AddRow()
{
var keys = ColumnsName.Keys.ToList();