Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
 private void mnuUserSettingsUserAvailability_Click(object sender, EventArgs e)
 {
     AvailabilityForm.Show(this.CurrentService);
 }