/// <summary> /// Initializes a new instance of the <see cref="AutoCloseParameters"/> class using time as the number of seconds before autoclosing, and buttonToUse as the button that will be used for auto-closing. /// </summary> /// <param name="time">The time to wait.</param> /// <param name="buttonToUse">The button to use.</param> public AutoCloseParameters(int time, InformationBoxDefaultButton buttonToUse) { this.mode = AutoCloseDefinedParameters.Button; this.timeToWait = time; this.button = buttonToUse; }
/// <summary> /// Initializes a new instance of the <see cref="AutoCloseParameters"/> class using buttonToUse as the button that will be used for auto-closing. /// </summary> /// <param name="buttonToUse">The button to use.</param> public AutoCloseParameters(InformationBoxDefaultButton buttonToUse) { this.mode = AutoCloseDefinedParameters.Button; this.button = buttonToUse; }
/// <summary> /// Initializes a new instance of the <see cref="AutoCloseParameters"/> class using time as the number of seconds before autoclosing, and result as the InformationBoxResult that will be used as the return. /// </summary> /// <param name="time">The time to wait.</param> /// <param name="result">The result to use.</param> public AutoCloseParameters(int time, InformationBoxResult result) { this.mode = AutoCloseDefinedParameters.Result; this.timeToWait = time; this.result = result; }
/// <summary> /// Initializes a new instance of the <see cref="AutoCloseParameters"/> class using time as the number of seconds before autoclosing. /// </summary> /// <param name="time">The time to wait.</param> public AutoCloseParameters(int time) { this.mode = AutoCloseDefinedParameters.TimeOnly; this.timeToWait = time; }
/// <summary> /// Initializes a new instance of the <see cref="AutoCloseParameters"/> class using result as the InformationBoxResult that will be used as the return. /// </summary> /// <param name="result">The result.</param> public AutoCloseParameters(InformationBoxResult result) { this.mode = AutoCloseDefinedParameters.Result; this.result = result; }