simplify some closing closing logic in some tools
This commit is contained in:
parent
4f2bf8071e
commit
0ed95429cb
|
@ -58,7 +58,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
Closing += (o, e) =>
|
Closing += (o, e) =>
|
||||||
{
|
{
|
||||||
SaveConfigSettings();
|
Settings.Columns = CheatListView.AllColumns;
|
||||||
};
|
};
|
||||||
|
|
||||||
CheatListView.QueryItemText += CheatListView_QueryItemText;
|
CheatListView.QueryItemText += CheatListView_QueryItemText;
|
||||||
|
@ -200,11 +200,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SaveConfigSettings()
|
|
||||||
{
|
|
||||||
Settings.Columns = CheatListView.AllColumns;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadConfigSettings()
|
private void LoadConfigSettings()
|
||||||
{
|
{
|
||||||
CheatListView.AllColumns.Clear();
|
CheatListView.AllColumns.Clear();
|
||||||
|
|
|
@ -21,12 +21,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Icon = Properties.Resources.TextDocIcon;
|
Icon = Properties.Resources.TextDocIcon;
|
||||||
StartPosition = FormStartPosition.CenterParent;
|
StartPosition = FormStartPosition.CenterParent;
|
||||||
Closing += (o, e) => CloseThis();
|
Closing += (o, e) => { _luaImp.WindowClosed(Handle); };
|
||||||
}
|
|
||||||
|
|
||||||
private void CloseThis()
|
|
||||||
{
|
|
||||||
_luaImp.WindowClosed(Handle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DoLuaEvent(IntPtr handle)
|
public void DoLuaEvent(IntPtr handle)
|
||||||
|
|
|
@ -84,7 +84,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
WatchListView.QueryItemText += ListView_QueryItemText;
|
WatchListView.QueryItemText += ListView_QueryItemText;
|
||||||
WatchListView.QueryItemBkColor += ListView_QueryItemBkColor;
|
WatchListView.QueryItemBkColor += ListView_QueryItemBkColor;
|
||||||
Closing += (o, e) => SaveConfigSettings();
|
Closing += (o, e) => { Settings.Columns = WatchListView.AllColumns; };
|
||||||
|
|
||||||
_sortedColumn = "";
|
_sortedColumn = "";
|
||||||
_sortReverse = false;
|
_sortReverse = false;
|
||||||
|
@ -316,11 +316,6 @@ namespace BizHawk.Client.EmuHawk
|
||||||
HardSetDisplayTypeDropDown(_settings.Type);
|
HardSetDisplayTypeDropDown(_settings.Type);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void SaveConfigSettings()
|
|
||||||
{
|
|
||||||
Settings.Columns = WatchListView.AllColumns;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void NewSearch()
|
public void NewSearch()
|
||||||
{
|
{
|
||||||
var compareTo = _searches.CompareTo;
|
var compareTo = _searches.CompareTo;
|
||||||
|
|
Loading…
Reference in New Issue