/// <summary> /// Show AvailabilityForm which is used to excercise GetUserAvailability /// and display the output. /// </summary> /// <param name="service">ExchangeService used to make EWS calls</param> public static void Show(ExchangeService service) { if (service == null) { throw new InvalidOperationException("This forms requires an ExchangeService to make EWS calls, 'service' cannot be null."); } AvailabilityForm thisForm = new AvailabilityForm(); thisForm.CurrentService = service; thisForm.Show(); }
private void mnuUserSettingsUserAvailability_Click(object sender, EventArgs e) { AvailabilityForm.Show(this.CurrentService); }