private void btnSettings_Click(object sender, RoutedEventArgs e) { if (_wndST == null) { _wndST = new wndSettings(_ARR.MySettings, _ARR.MyLolClientProcessInvokeHandler, _ARR.DisplayPopup); _wndST.Closed += (s, args) => _wndST = null; } else { StaticWindowUtilities.EnsureVisibility(_wndST); } _wndST.Show(); }
/// <summary> /// 打开设置 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SettingsMenuItem_Click(object sender, RoutedEventArgs e) { wndSettings ws = new wndSettings(); ws.Show(); }