public static void SetDefaults(IActivity view) { //IView defaults and overrides ViewDefaults.SetDefaults(view); view.Title = DefaultTitle; view.Width = DefaultWidth; view.Height = DefaultHeight; view.BackgroundColor = DefaultBackgroundColor; view.BorderColor = DefaultBorderColor; //IActivity defaults view.Source = DefaultSource; view.Captions = DefaultCaptions; view.ViewPosition = DefaultViewPosition; view.ViewWidth = DefaultViewWidth; view.ViewHeight = DefaultViewHeight; view.ContentZoom = DefaultContentZoom; view.ContentZoomable = DefaultContentZoomable; view.ContentZoomToFit = DefaultContentZoomToFit; view.ContentPartsConfigurable = DefaultContentPartsConfigurable; view.IconbarVisible = DefaultIconbarVisible; view.ToolbarVisible = DefaultToolbarVisible; view.ToolbarOrientation = DefaultToolbarOrientation; //Dirty flag view.Dirty = ViewDefaults.DefaultDirty; //must do last - this should be set again at the end of any SetDefaults method (at descendents) }
public static void SetDefaults(ICaptionsGrid view) { //IView defaults and overrides ViewDefaults.SetDefaults(view); view.Title = DefaultTitle; view.Width = DefaultWidth; view.Height = DefaultHeight; view.BorderColor = DefaultBorderColor; //ICaptionsGrid defaults view.Source = DefaultSource; view.Captions = DefaultCaptions; view.ToolbarVisible = DefaultToolbarVisible; view.IndexVisible = DefaultIndexVisible; view.StartTimeVisible = DefaultStartTimeVisible; view.EndTimeVisible = DefaultEndTimeVisible; view.DurationVisible = DefaultDurationVisible; view.RoleVisible = DefaultRoleVisible; view.CaptionVisible = DefaultCaptionVisible; view.RTLVisible = DefaultRTLVisible; view.CPLVisible = DefaultCPLVisible; view.CPSVisible = DefaultCPSVisible; view.WPMVisible = DefaultWPMVisible; view.AudioVisible = DefaultAudioVisible; view.CommentsVisible = DefaultCommentsVisible; view.CommentsAudioVisible = DefaultCommentsAudioVisible; //view.SaveInvisibleAudio = DefaultSaveInvisibleAudio; view.LimitAudioPlayback = DefaultLimitAudioPlayback; view.LimitAudioRecording = DefaultLimitAudioRecording; view.DrawAudioDuration = DefaultDrawAudioDuration; //Dirty flag view.Dirty = ViewDefaults.DefaultDirty; //must do last - this should be set again at the end of any SetDefaults method (at descendents) }
public static void SetDefaults(IMediaPlayer view) { //IView defaults and overrides ViewDefaults.SetDefaults(view); view.Title = DefaultTitle; view.Width = DefaultWidth; view.Height = DefaultHeight; view.BackgroundColor = DefaultBackgroundColor; view.BorderColor = DefaultBorderColor; //IMediaPlayer defaults view.Source = DefaultSource; view.ReplayOffset = DefaultReplayOffset; view.Captions = DefaultCaptions; view.Speed = DefaultSpeed; view.Volume = DefaultVolume; view.Balance = DefaultBalance; view.AutoPlay = DefaultAutoPlay; view.Looping = DefaultLooping; view.VideoVisible = DefaultVideoVisible; view.ControllerVisible = DefaultControllerVisible; view.CaptionsVisible = DefaultCaptionsVisible; //Dirty flag view.Dirty = ViewDefaults.DefaultDirty; //must do last - this should be set again at the end of any SetDefaults method (at descendents) }
public static void SetDefaults(IBrowser view) { //IView defaults and overrides ViewDefaults.SetDefaults(view); view.Title = DefaultTitle; view.Width = DefaultWidth; view.Height = DefaultHeight; view.BorderColor = DefaultBorderColor; //IBrowser defaults view.Source = DefaultSource; //Dirty flag view.Dirty = ViewDefaults.DefaultDirty; //must do last - this should be set again at the end of any SetDefaults method (at descendents) }
public static void SetDefaults(ITextEditor view) { //IView defaults and overrides ViewDefaults.SetDefaults(view); view.Title = DefaultTitle; view.Width = DefaultWidth; view.Height = DefaultHeight; view.BorderColor = DefaultBorderColor; //ITextview defaults view.Source = DefaultSource; view.ToolbarVisible = DefaultToolbarVisible; view.Editable = DefaultEditable; //Dirty flag view.Dirty = ViewDefaults.DefaultDirty; //must do last - this should be set again at the end of any overriden SetDefaults versions (at descendents) }
public static void SetDefaults(IImageViewer view) { //IView defaults and overrides ViewDefaults.SetDefaults(view); view.Title = DefaultTitle; view.Width = DefaultWidth; view.Height = DefaultHeight; view.BorderColor = DefaultBorderColor; //IImageViewer defaults view.Source = DefaultSource; view.CameraSourceUsed = DefaultCameraSourceUsed; view.ContentZoomToFit = DefaultContentZoomToFit; view.ActionURL = DefaultActionURL; view.ActionTime = DefaultActionTime; //Dirty flag view.Dirty = ViewDefaults.DefaultDirty; //must do last - this should be set again at the end of any SetDefaults method (at descendents) }
public static void SetDefaults(IMapViewer view) { //IView defaults and overrides ViewDefaults.SetDefaults(view); view.Title = DefaultTitle; view.Width = DefaultWidth; view.Height = DefaultHeight; view.BorderColor = DefaultBorderColor; //IMapViewer defaults view.Inertia = DefaultInertia; view.NavigationVisible = DefaultNavigationVisible; view.ScaleVisible = DefaultScaleVisible; view.Culture = DefaultCulture; view.Mode = DefaultMode; view.LabelsVisible = DefaultLabelsVisible; view.LabelsFading = DefaultLabelsFading; view.MapCenter = DefaultMapCenter; view.MapZoom = DefaultMapZoom; //Dirty flag view.Dirty = ViewDefaults.DefaultDirty; //must do last - this should be set again at the end of any SetDefaults method (at descendents) }
public virtual void SetDefaults() { ViewDefaults.SetDefaults(this); //this makes sure we set public properties (invoking "set" accessors), not fields }