public static void Theme(MetroForm form) { form.Theme = (MetroThemeStyle)(int)Options["theme"]; form.Style = (MetroColorStyle)(int)Options["color"]; Theme(form.Controls); form.Refresh(); }
private static void webControl_TitleChanged(object sender, Awesomium.Core.TitleChangedEventArgs e, MetroForm parentForm) { parentForm.Text = e.Title; parentForm.Refresh(); ((Awesomium.Windows.Forms.WebControl)sender).TitleChanged -= (s, ev) => webControl_TitleChanged(s, ev, parentForm); }