protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); this.Properties["bgStartup"] = false; if (e != null && e.Args.Count() > 0) { if (e.Args[0] == "-bg") { this.Properties["bgStartup"] = true; } } Configs configs = new Configs(); PresetFilters presets = new PresetFilters(); OrganisationSyncer organisationSyncer = new OrganisationSyncer(); TrayApp trayApp = new TrayApp(organisationSyncer, configs); Logger logger = new Logger(); BackgroundOrganiser backgroundOrganiser = new BackgroundOrganiser(new DirectoryModel()); ForegroundOrganiser foregroundOrganiser = new ForegroundOrganiser(new DirectoryModel()); BackgroundView backgroundView = new BackgroundView(); ForegroundView foregroundView = new ForegroundView(); DependencyFactory.Container.RegisterInstance <Configs>("configs", configs); DependencyFactory.Container.RegisterInstance <PresetFilters>("presets", presets); DependencyFactory.Container.RegisterInstance <OrganisationSyncer>("organisationSyncer", organisationSyncer); DependencyFactory.Container.RegisterInstance <BackgroundOrganiser>("backgroundOrganiser", backgroundOrganiser); DependencyFactory.Container.RegisterInstance <ForegroundOrganiser>("foregroundOrganiser", foregroundOrganiser); DependencyFactory.Container.RegisterType <BackgroundView>(); DependencyFactory.Container.RegisterType <ForegroundView>(); DependencyFactory.Container.RegisterType <PresetsView>(); DependencyFactory.Container.RegisterInstance <TrayApp>("trayApp", trayApp); DependencyFactory.Container.RegisterInstance <Logger>("logger", logger); }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (IconImage != null) { IconImage.Dispose(); IconImage = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } }
protected override void OnDisappearing() { base.OnDisappearing(); _cancellationTokenSource.Cancel(); BackgroundView.AbortAnimation("name"); }
protected override void OnSizeAllocated(double width, double height) { base.OnSizeAllocated(width, height); if (width <= 0 || height <= 0) { return; } var bounds = new Rectangle(0, 0, width, height); var w = Math.Min(width, height); var center = bounds.Center; var half = w / 2; var bRect = new Rectangle(center.X - half, center.Y - half, w, w); BackgroundView.BorderRadius = half; BackgroundView.Layout(bRect); thumbRadius = w / 4; Thumb.HeightRequest = Thumb.WidthRequest = half; Thumb.BorderRadius = thumbRadius; ThumbCenter = Center; Radius = half; UpdateThumb(); }
// Use this for initialization public void Initialize(BackgroundView view) { ItemSource = DungeonGenerator.Instance; SetBinding <RoomInfo>(DungeonGenerator.Instance.ROOMIN, view.RefreshRoom); SetBinding <RoadInfo>(DungeonGenerator.Instance.ROOMOUT, view.RefreshRoad); }
public static BackgroundView Load() { BackgroundView view = UIView.Load("Views/BackgroundView", OverriddenViewController.Instance.transform) as BackgroundView; view.name = "BackgroundView"; return(view); }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (enterSwitch != null) { enterSwitch.Dispose(); enterSwitch = null; } if (exitSwitch != null) { exitSwitch.Dispose(); exitSwitch = null; } if (LabelNotification != null) { LabelNotification.Dispose(); LabelNotification = null; } if (TextViewInfo != null) { TextViewInfo.Dispose(); TextViewInfo = null; } }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (CloseBtn != null) { CloseBtn.Dispose(); CloseBtn = null; } if (TextContainerView != null) { TextContainerView.Dispose(); TextContainerView = null; } if (TextLabel != null) { TextLabel.Dispose(); TextLabel = null; } }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (ImageView != null) { ImageView.Dispose(); ImageView = null; } if (Label != null) { Label.Dispose(); Label = null; } if (SeperatorView != null) { SeperatorView.Dispose(); SeperatorView = null; } }
public void ClickStatsButton() { SoundManager.Instance.PlaySoundEffect(SoundType.BUTTON_CLICK); UIViewController.DeactivateUIView("ClientMainView"); UIViewController.ActivateUIView(BackgroundView.Load()); UIViewController.ActivateUIView(HistoryView.Load()); }
public override void LoadView () { base.LoadView (); if (_backgroundImage != null) { /* this.imageView = new UIImageView (bgImage); this.imageView.Frame = new RectangleF (0, 0, this.View.Frame.Size.Width, this.View.Frame.Size.Height); this.imageView.ContentMode = UIViewContentMode.ScaleAspectFit; this.imageView.AutoresizingMask = UIViewAutoresizing.FlexibleLeftMargin | UIViewAutoresizing.FlexibleRightMargin | UIViewAutoresizing.FlexibleTopMargin | UIViewAutoresizing.FlexibleBottomMargin; //imageView.AutoresizingMask = UIViewAutoresizing.FlexibleMargins; View.BackgroundColor = Resources.Colors.Background; View.AddSubview (imageView); */ // new code _backgroundView = new BackgroundView (this); _backgroundView.Frame = View.Frame; _backgroundView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth; _backgroundView.AutosizesSubviews = true; _backgroundView.UserInteractionEnabled = true; //Copy View from Interface designer if (View.Subviews != null && View.Subviews.Length > 0) { _backgroundView.AddSubviews (View.Subviews); foreach (var view in View.Subviews) { view.RemoveFromSuperview (); } } _backgroundView.ContentMode = UIViewContentMode.Redraw; View = _backgroundView; // new code } }
void ReleaseDesignerOutlets() { if (AboutButton != null) { AboutButton.Dispose(); AboutButton = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (LoginButton != null) { LoginButton.Dispose(); LoginButton = null; } if (PasswordInput != null) { PasswordInput.Dispose(); PasswordInput = null; } if (UsernameInput != null) { UsernameInput.Dispose(); UsernameInput = null; } }
internal void SetupBackgroundView(UIView background) { BackgroundView.RemoveFromSuperview(); BackgroundView = background; if (BackgroundView == null) { BackgroundBlurringView.Hidden = true; } else { if (BackgroundBlurringView == null) { if (!IsLessThanIOS6) { BackgroundBlurringView = new UINavigationBar(Bounds); ((UINavigationBar)BackgroundBlurringView).BarStyle = UIBarStyle.Black; } else { BackgroundBlurringView = new UIView(Bounds); BackgroundBlurringView.BackgroundColor = UIColor.FromWhiteAlpha(0.0f, 0.75f); } BackgroundBlurringView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; InsertSubviewBelow(BackgroundBlurringView, ContentView); } BackgroundBlurringView.Hidden = false; BackgroundView.Frame = Bounds; BackgroundView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight; InsertSubviewBelow(BackgroundView, BackgroundBlurringView); } }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (separatorText != null) { separatorText.Dispose(); separatorText = null; } if (subTitleLabel != null) { subTitleLabel.Dispose(); subTitleLabel = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }
void ReleaseDesignerOutlets() { if (BackgroundHighlightView != null) { BackgroundHighlightView.Dispose(); BackgroundHighlightView = null; } if (BackgroundHighlightWidthConstraint != null) { BackgroundHighlightWidthConstraint.Dispose(); BackgroundHighlightWidthConstraint = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (ScoreView != null) { ScoreView.Dispose(); ScoreView = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }
private void ResetAnimation() { SetBackGroundColor(); Animation alphaAnim2 = new AlphaAnimation(0, 1); alphaAnim2.Duration = 300; BackgroundView.StartAnimation(alphaAnim2); }
void ReleaseDesignerOutlets() { if (BackgroundButton != null) { BackgroundButton.Dispose(); BackgroundButton = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (ButtonView != null) { ButtonView.Dispose(); ButtonView = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (FileNameText != null) { FileNameText.Dispose(); FileNameText = null; } if (FileTableView != null) { FileTableView.Dispose(); FileTableView = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (TitleView != null) { TitleView.Dispose(); TitleView = null; } }
void ReleaseDesignerOutlets() { if (AttackButton != null) { AttackButton.Dispose(); AttackButton = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (CountButton != null) { CountButton.Dispose(); CountButton = null; } if (DamageButton != null) { DamageButton.Dispose(); DamageButton = null; } if (HeaderLabel != null) { HeaderLabel.Dispose(); HeaderLabel = null; } if (HeaderView != null) { HeaderView.Dispose(); HeaderView = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } if (PlusButton != null) { PlusButton.Dispose(); PlusButton = null; } }
void ReleaseDesignerOutlets() { if (AddDieButton != null) { AddDieButton.Dispose(); AddDieButton = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (DieTableView != null) { DieTableView.Dispose(); DieTableView = null; } if (HeaderLabel != null) { HeaderLabel.Dispose(); HeaderLabel = null; } if (HeaderView != null) { HeaderView.Dispose(); HeaderView = null; } if (ModButton != null) { ModButton.Dispose(); ModButton = null; } if (ModView != null) { ModView.Dispose(); ModView = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (BenefitButton != null) { BenefitButton.Dispose(); BenefitButton = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (NameButton != null) { NameButton.Dispose(); NameButton = null; } if (NormalButton != null) { NormalButton.Dispose(); NormalButton = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } if (PrerequisitesButton != null) { PrerequisitesButton.Dispose(); PrerequisitesButton = null; } if (SpecialButton != null) { SpecialButton.Dispose(); SpecialButton = null; } if (TypesButton != null) { TypesButton.Dispose(); TypesButton = null; } }
void RemoveGestureRecognizers() { if (BackgroundView.GestureRecognizers != null && Enumerable.Any <UIGestureRecognizer>(BackgroundView.GestureRecognizers)) { foreach (UIGestureRecognizer gesture in BackgroundView.GestureRecognizers) { BackgroundView.RemoveGestureRecognizer(gesture); } } }
private void SwitchColorBackGround() { Animation alphaAnim1 = new AlphaAnimation(1, 0); alphaAnim1.Duration = 300; alphaAnim1.AnimationEnd += (sender, args) => { ResetAnimation(); }; BackgroundView.StartAnimation(alphaAnim1); }
public void UnSelectedHolderSwipe() { Animation alphaAnim = new AlphaAnimation(1, 0); alphaAnim.Duration = 300; alphaAnim.AnimationEnd += (sender, args) => { BackgroundView.Visibility = ViewStates.Gone; }; BackgroundView.StartAnimation(alphaAnim); }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { _constraints.ForEach(c => c.Dispose()); Label?.Dispose(); Label = null; BackgroundView?.Dispose(); BackgroundView = null; } }
public void ClickStoreButton() { SoundManager.Instance.PlaySoundEffect(SoundType.BUTTON_CLICK); UIViewController.DeactivateUIView("ClientMainView"); UIViewController.ActivateUIView(BackgroundView.Load()); UIViewController.ActivateUIView(GearEquipView.Load()); AvatarView avatarView = AvatarView.Load(); UIViewController.ActivateUIView(avatarView); StoreRefreshButtonObj.SetActive(true); StoreRefreshButtonObj.transform.SetAsLastSibling(); avatarView.StoreRefreshButtonObj = StoreRefreshButtonObj; }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } }
void ReleaseDesignerOutlets() { if (PlaceholderView != null) { PlaceholderView.Dispose(); PlaceholderView = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (CollectionBottomConstraint != null) { CollectionBottomConstraint.Dispose(); CollectionBottomConstraint = null; } if (CollectionTopConstraint != null) { CollectionTopConstraint.Dispose(); CollectionTopConstraint = null; } if (CollectionView != null) { CollectionView.Dispose(); CollectionView = null; } if (PlaceholderBottomConstraint != null) { PlaceholderBottomConstraint.Dispose(); PlaceholderBottomConstraint = null; } if (PlaceholderTopConstraint != null) { PlaceholderTopConstraint.Dispose(); PlaceholderTopConstraint = null; } }
public override void ViewDidLoad() { base.ViewDidLoad(); BackgroundView.StyleBasicPanel(); TitleButton.SetText(ItemText); DeleteButton.SetImage(UIImage.FromFile("Images/External/redx.png"), UIControlState.Normal); TitleButton.TouchUpInside += HandleTitleButtonClicked; DeleteButton.TouchUpInside += HandleDeleteButtonClicked; TitleButton.SetTitleColor(0xFFFFFFFF.UIColor(), UIControlState.Normal); TitleButton.AlignButtonLeft(); DeleteButton.SetTitleColor(0xFFFFFFFF.UIColor(), UIControlState.Normal); }
void ReleaseDesignerOutlets() { if (AuthButton != null) { AuthButton.Dispose(); AuthButton = null; } if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (CheckEnrollmentButton != null) { CheckEnrollmentButton.Dispose(); CheckEnrollmentButton = null; } if (DeleteEnrollmentButton != null) { DeleteEnrollmentButton.Dispose(); DeleteEnrollmentButton = null; } if (EnrollButton != null) { EnrollButton.Dispose(); EnrollButton = null; } if (IdentityTextField != null) { IdentityTextField.Dispose(); IdentityTextField = null; } if (VersionLabel != null) { VersionLabel.Dispose(); VersionLabel = null; } }
void ReleaseDesignerOutlets() { if (BackgroundView != null) { BackgroundView.Dispose(); BackgroundView = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (HeaderLabel != null) { HeaderLabel.Dispose(); HeaderLabel = null; } if (HeaderView != null) { HeaderView.Dispose(); HeaderView = null; } if (OKButton != null) { OKButton.Dispose(); OKButton = null; } if (TextField != null) { TextField.Dispose(); TextField = null; } if (TextView != null) { TextView.Dispose(); TextView = null; } }
public BackgroundController(EditorController editorController, BackgroundView view) { _editorController = editorController; _view = view; _backgrounds = new BindingList <EditorBackground>(); List <XElement> backgroundData; ResourceManager.loadAllBackgrounds(new FileStream(ResourceManager.backgroundPath, FileMode.Open)); _view.controller = this; backgroundData = ResourceManager.backgroundResources; foreach (XElement data in backgroundData) { _backgrounds.Add(new EditorBackground(data)); } _view.backgrounds = _backgrounds; }
private void Initialize (Context ctx) { var dm = ctx.Resources.DisplayMetrics; var inflater = LayoutInflater.FromContext (ctx); leftMargin = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 45, dm); leftPadding = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 14, dm); topPadding = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 10, dm); bottomPadding = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 23, dm); rightPadding = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 45, dm); yAxisSpacing = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 5, dm); barZeroSize = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 3, dm); barLabelSpacing = (int)TypedValue.ApplyDimension (ComplexUnitType.Dip, 5, dm); backgroundView = new BackgroundView (ctx); AddView (backgroundView); loadingOverlayView = inflater.Inflate (Resource.Layout.BarChartLoading, this, false); AddView (loadingOverlayView); emptyOverlayView = inflater.Inflate (Resource.Layout.BarChartEmpty, this, false); emptyOverlayView.Visibility = ViewStates.Gone; AddView (emptyOverlayView); }
public override void LoadView() { tableView = MakeTableView (new RectangleF(0,0,0,0), Style); tableView.AutosizesSubviews = true; tableView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth; if (Background9Image != null || BackgroundImage != null) tableView.BackgroundColor = UIColor.Clear; UpdateSource (); // new code backgroundView = new BackgroundView(this); backgroundView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth; backgroundView.AutosizesSubviews = true; backgroundView.UserInteractionEnabled = true; backgroundView.AddSubview(tableView); backgroundView.ContentMode = UIViewContentMode.Redraw; View = backgroundView; // new code SetupSearch (); ConfigureTableView (); if (root == null) return; root.TableView = tableView; }