refactor: CycleUiHelper 重命名为 FairyUiHelper
对齐 FairyView 宿主命名。环线/充电/按钮/门进程的 Stop 改为 override,避免隐藏基类;Kiva.ForceStop 改为 override。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -129,7 +129,7 @@ namespace StandardScene.Charge
|
||||
var op = row.ButtonGroup(new[] { "编辑", "删除" }, new[] { "编辑充电桩", "删除充电桩" });
|
||||
if (op == 0) OpenEditDialog(s);
|
||||
else if (op == 1) ConfirmDelete(s);
|
||||
}, height: CycleUiHelper.TableHeightPx(16), enableSearch: true);
|
||||
}, height: FairyUiHelper.TableHeightPx(16), enableSearch: true);
|
||||
|
||||
if (!string.IsNullOrEmpty(_status))
|
||||
{
|
||||
@@ -290,7 +290,7 @@ namespace StandardScene.Charge
|
||||
|
||||
_lastFlush = DateTime.MinValue;
|
||||
_status = "保存成功";
|
||||
CycleUiHelper.Alert("提示", "保存成功");
|
||||
FairyUiHelper.Alert("提示", "保存成功");
|
||||
dlg.Exit();
|
||||
_editDialog = null;
|
||||
_panel?.Repaint();
|
||||
@@ -341,11 +341,11 @@ namespace StandardScene.Charge
|
||||
|
||||
private void ConfirmDelete(ChargeStation station)
|
||||
{
|
||||
CycleUiHelper.ConfirmThen($"确定删除充电桩 [{station.StationId}] {station.Name}?", () =>
|
||||
FairyUiHelper.ConfirmThen($"确定删除充电桩 [{station.StationId}] {station.Name}?", () =>
|
||||
{
|
||||
if (!DataService.DeleteStation(station.StationId, out var err))
|
||||
{
|
||||
CycleUiHelper.Alert("错误", $"删除失败: {err}");
|
||||
FairyUiHelper.Alert("错误", $"删除失败: {err}");
|
||||
return;
|
||||
}
|
||||
var site = SimpleLib.GetSite(station.SiteId ?? 0);
|
||||
@@ -384,9 +384,9 @@ namespace StandardScene.Charge
|
||||
{
|
||||
File.WriteAllText(path, Newtonsoft.Json.JsonConvert.SerializeObject(stations, Newtonsoft.Json.Formatting.Indented));
|
||||
}
|
||||
CycleUiHelper.Alert("提示", "导出成功");
|
||||
FairyUiHelper.Alert("提示", "导出成功");
|
||||
}
|
||||
catch (Exception ex) { CycleUiHelper.Alert("错误", $"导出失败: {ex.Message}"); }
|
||||
catch (Exception ex) { FairyUiHelper.Alert("错误", $"导出失败: {ex.Message}"); }
|
||||
}
|
||||
|
||||
private void ApplyRowColor(PanelBuilder.Row row, ChargeStation s)
|
||||
|
||||
Reference in New Issue
Block a user