public static void InitializeFrom(this XtraTabPage page, IView viewToAdd)
        {
            var control = viewToAdd as Control;

            if (control == null)
            {
                return;
            }
            page.FillWith(viewToAdd);
            page.Text = viewToAdd.Caption;
            page.SetImage(viewToAdd.ApplicationIcon, UIConstants.ICON_SIZE_TAB);
        }
 public static void InitWith(this XtraTabPage tabPage, string caption, ApplicationIcon icon)
 {
     tabPage.Text = caption;
     tabPage.SetImage(icon);
 }