/// <summary> /// OnLoad Handler called when the statistics window loaded /// </summary> /// <param name="onLoad">Details about the loaded form</param> /// <returns>Iterators</returns> private IEnumerator <ITask> OnWindowStatisticsLoadHandler(OnLoad onLoad) { // Save a handle to the form _windowStatistics = (WindowStatistics)onLoad.Form; // Load saved window position Globals.GlobalWinFormsServicePort.FormInvoke( delegate() { _windowStatistics.SetDesktopLocation(_state.WindowStatisticsX, _state.WindowStatisticsY); } ); LogInfo("Statistics window form loaded"); yield break; }
private void OpenStatistical(object sender, MouseButtonEventArgs e) { WindowStatistics WS = new WindowStatistics(this._Server); WS.Show(); }