部分样式调整 ai生图逻辑调整
This commit is contained in:
1 parent
f04c74fa32
commit
f9572ea046
11 files changed
+162
-75
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using AllBase;
|
||||
using AllBase.Helper;
|
||||
using NaiBa.Util;
|
||||
using NaiBa.Util.Extension;
|
||||
using System;
|
||||
@@ -12,6 +13,7 @@ using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TemuKJD.UserComponent;
|
||||
|
||||
namespace TemuKJD.Extension
|
||||
{
|
||||
@@ -22,7 +24,7 @@ namespace TemuKJD.Extension
|
||||
return CellCollection.Cast<DataGridViewCell>().FirstOrDefault(c => c.OwningColumn.Name == name)?.Value;
|
||||
}
|
||||
|
||||
public static CheckBox AddSelectorColumn(this DataGridView dgv, string columnName = "Selected", Action<DataGridViewColumn> addHeaderCheckBoxOverride = null)
|
||||
public static UcCheckBox AddSelectorColumn(this DataGridView dgv, string columnName = "Selected", Action<DataGridViewColumn> addHeaderCheckBoxOverride = null)
|
||||
{
|
||||
if (dgv.Columns[columnName] == null)
|
||||
{
|
||||
@@ -53,7 +55,7 @@ namespace TemuKJD.Extension
|
||||
}
|
||||
}
|
||||
|
||||
public static CheckBox AddHeaderCheckBox(this DataGridViewColumn column, HorizontalAlignment align = HorizontalAlignment.Center, int leftBorderOffset = 0, int rightBorderOffset = 0, Func<object, bool> getValue = null, Action<object, bool> setValue = null, bool isSetCheckedChangedEvent = true, CheckBox checkBox = null, bool isClearHeaderText = false)
|
||||
public static UcCheckBox AddHeaderCheckBox(this DataGridViewColumn column, HorizontalAlignment align = HorizontalAlignment.Center, int leftBorderOffset = 0, int rightBorderOffset = 0, Func<object, bool> getValue = null, Action<object, bool> setValue = null, bool isSetCheckedChangedEvent = true, UcCheckBox checkBox = null, bool isClearHeaderText = false)
|
||||
{
|
||||
if (column?.DataGridView == null) //throw new ArgumentNullException("First you need to add the column to grid.");
|
||||
MessageBox.Show("DataGridView中没有对应的CheckBox列");
|
||||
@@ -61,10 +63,11 @@ namespace TemuKJD.Extension
|
||||
// Creating checkbox without panel
|
||||
if (checkBox == null)
|
||||
{
|
||||
checkBox = new CheckBox();
|
||||
checkBox = new UcCheckBox();
|
||||
|
||||
checkBox.Name = "chk" + column.Name;
|
||||
}
|
||||
checkBox.Size = new Size(24, 20);
|
||||
checkBox.Size = new Size(13, 13);
|
||||
checkBox.BackColor = Color.Transparent;
|
||||
checkBox.Enabled = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user