コード例 #1
0
        public static void Theme(MetroForm form)
        {
            form.Theme = (MetroThemeStyle)(int)Options["theme"];
            form.Style = (MetroColorStyle)(int)Options["color"];

            Theme(form.Controls);

            form.Refresh();
        }
コード例 #2
0
 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);
 }