/// <summary> /// Opens the warning window where the user is warned that the voter has already vote. /// </summary> /// <param name="voter">The voter to be shown</param> public void OpenWarningWindow(VoterDO voter) { { warningWindow = new WarningVW(voter); this.warningWindow.UnlockButton.Click += (o, eA) => this.Unlock(); this.warningWindow.UnlockButton.Click += (o, eA) => this.warningWindow.Close(); this.warningWindow.ShowDialog(); } }
/// <summary> /// Closes the warning window /// </summary> public void CloseWarningWindow() { warningWindow.CloseDialog(); warningWindow = null; return; }