清理运行时的编译警告
- 媒体播放器内部的 Controls 类改名 PlayerControls,不再隐藏 Control.Controls - DataGridView 的 CellEnter、RowEnter 不触发,标明不报"从不使用" Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eedf1aa2fb
commit
19d6872d80
2 files changed
+4
-2
No files matched your search
@@ -69,7 +69,7 @@ namespace AxWMPLib
|
|||||||
|
|
||||||
public AxWindowsMediaPlayer() : base("6bf52a52-394a-11d3-b153-00c04f79faa6")
|
public AxWindowsMediaPlayer() : base("6bf52a52-394a-11d3-b153-00c04f79faa6")
|
||||||
{
|
{
|
||||||
Ctlcontrols = new Controls(this);
|
Ctlcontrols = new PlayerControls(this);
|
||||||
settings = new Settings();
|
settings = new Settings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -143,7 +143,7 @@ namespace AxWMPLib
|
|||||||
props["URL"] = _url;
|
props["URL"] = _url;
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed class Controls(AxWindowsMediaPlayer owner) : IWMPControls
|
private sealed class PlayerControls(AxWindowsMediaPlayer owner) : IWMPControls
|
||||||
{
|
{
|
||||||
public void play()
|
public void play()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -626,8 +626,10 @@ public class DataGridView : Control, ISupportInitialize
|
|||||||
public event DataGridViewCellEventHandler? CellContentDoubleClick;
|
public event DataGridViewCellEventHandler? CellContentDoubleClick;
|
||||||
public event DataGridViewCellEventHandler? CellValueChanged;
|
public event DataGridViewCellEventHandler? CellValueChanged;
|
||||||
public event DataGridViewCellEventHandler? CellEndEdit;
|
public event DataGridViewCellEventHandler? CellEndEdit;
|
||||||
|
#pragma warning disable CS0067 // 只读表格没有当前单元格的概念,这两个事件不触发
|
||||||
public event DataGridViewCellEventHandler? CellEnter;
|
public event DataGridViewCellEventHandler? CellEnter;
|
||||||
public event DataGridViewCellEventHandler? RowEnter;
|
public event DataGridViewCellEventHandler? RowEnter;
|
||||||
|
#pragma warning restore CS0067
|
||||||
public event DataGridViewDataErrorEventHandler? DataError;
|
public event DataGridViewDataErrorEventHandler? DataError;
|
||||||
public event EventHandler? SelectionChanged;
|
public event EventHandler? SelectionChanged;
|
||||||
public event EventHandler? CurrentCellChanged;
|
public event EventHandler? CurrentCellChanged;
|
||||||
|
|||||||
Reference in new issue
Block a user