private void btnGoTo_ButtonClick(object sender, EventArgs e) { FormCalendar form = new FormCalendar(); form.Date = _date; form.ShowDialog(); if (form.DialogResult == DialogResult.OK) { LoadAppointmentGrid(form.Date); } }
public void openCalendar(ChromiumWebBrowser chrome, string linkCalendar, FormCalendar form) { CefSettings settings = new CefSettings(); if (!Cef.IsInitialized) { Cef.Initialize(settings); } chrome = new ChromiumWebBrowser(linkCalendar); chrome.Load(linkCalendar); form.Controls.Add(chrome); chrome.Dock = DockStyle.Fill; }