void ReleaseDesignerOutlets() { if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (ImageView1 != null) { ImageView1.Dispose(); ImageView1 = null; } if (ImageView2 != null) { ImageView2.Dispose(); ImageView2 = null; } if (SubLabel1 != null) { SubLabel1.Dispose(); SubLabel1 = null; } if (SubLabel2 != null) { SubLabel2.Dispose(); SubLabel2 = null; } }
void ReleaseDesignerOutlets() { if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (Button4 != null) { Button4.Dispose(); Button4 = null; } if (Button3 != null) { Button3.Dispose(); Button3 = null; } if (Button2 != null) { Button2.Dispose(); Button2 = null; } if (Button1 != null) { Button1.Dispose(); Button1 = null; } }
private void EntryBox_Load(object sender, EventArgs e) { //hack to ensure the control always becomes visible //when dragging and dropping in designer veiw this.BringToFront(); MainLabel.BringToFront(); //hack to ensure textbox height is matches the control height textBox.Height = this.Height; }
private void MainLabel_Click(object sender, EventArgs e) { if (MainLabel.InvokeRequired) { MainLabel.Invoke(new MethodInvoker(() => Clipboard.SetText(MainLabel.Text))); } else { Clipboard.SetText(MainLabel.Text); } }
private void ChangeTest() { if (MainLabel.InvokeRequired) { changetestCallBack c = new changetestCallBack(ChangeTest); MainLabel.Invoke(c); } else { MainLabel.Text = "Please wait... \n This might take a while"; } }
void ReleaseDesignerOutlets() { if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (DogImageView != null) { DogImageView.Dispose(); DogImageView = null; } }
void ReleaseDesignerOutlets() { if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (KittenImageView != null) { KittenImageView.Dispose(); KittenImageView = null; } }
private void WriteInfo(string text) { var tip = new ToolTip(); if (MainLabel.InvokeRequired) { MainLabel.Invoke(new MethodInvoker(() => { MainLabel.Text = text; tip.SetToolTip(MainLabel, MainLabel.Text); })); } else { MainLabel.Text = text; tip.SetToolTip(MainLabel, MainLabel.Text); } }
private void SetTextScrollingAnimation(string text) { if (_currentText == text) { return; } MainLabel.Text = _currentText = text; if ((double)SettingsInstance["TextScrollingDelay"].Value <= 0) { return; } var copy = " " + MainLabel.Text; var textGraphicalWidth = new FormattedText(copy, CultureInfo.CurrentCulture, FlowDirection.LeftToRight, new Typeface(MainLabel.FontFamily, MainLabel.FontStyle, MainLabel.FontWeight, MainLabel.FontStretch), MainLabel.FontSize, MainLabel.Foreground) .WidthIncludingTrailingWhitespace; double textLengthGraphicalWidth = 0; //BorderTextBoxMarquee.Width = TextGraphicalWidth + 5; while (textLengthGraphicalWidth < MainLabel.ActualWidth) { MainLabel.Text = MainLabel.Text + copy; textLengthGraphicalWidth = new FormattedText(MainLabel.Text, CultureInfo.CurrentCulture, FlowDirection.LeftToRight, new Typeface(MainLabel.FontFamily, MainLabel.FontStyle, MainLabel.FontWeight, MainLabel.FontStretch), MainLabel.FontSize, MainLabel.Foreground) .WidthIncludingTrailingWhitespace; } MainLabel.Text += " " + MainLabel.Text; var thickAnimation = new ThicknessAnimation { From = new Thickness(0, 0, 0, 0), To = new Thickness(-textGraphicalWidth, 0, 0, 0), RepeatBehavior = RepeatBehavior.Forever, Duration = new Duration( TimeSpan.FromSeconds( StringUtils.Round((double)SettingsInstance["TextScrollingDelay"].Value * _currentText.Length))) }; MainLabel.BeginAnimation(PaddingProperty, thickAnimation); }
void ReleaseDesignerOutlets() { if (ImageItem != null) { ImageItem.Dispose(); ImageItem = null; } if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (SubtitleLabel != null) { SubtitleLabel.Dispose(); SubtitleLabel = null; } }
void ReleaseDesignerOutlets() { if (CircleImage != null) { CircleImage.Dispose(); CircleImage = null; } if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (SubLabel != null) { SubLabel.Dispose(); SubLabel = null; } }
void ReleaseDesignerOutlets() { if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (RunButton != null) { RunButton.Dispose(); RunButton = null; } if (StatisticsLabel != null) { StatisticsLabel.Dispose(); StatisticsLabel = null; } if (StatusLabel != null) { StatusLabel.Dispose(); StatusLabel = null; } if (CategoryLabel != null) { CategoryLabel.Dispose(); CategoryLabel = null; } if (StopButton != null) { StopButton.Dispose(); StopButton = null; } }
void ReleaseDesignerOutlets() { if (DayNameLabel != null) { DayNameLabel.Dispose(); DayNameLabel = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (HumidityLabel != null) { HumidityLabel.Dispose(); HumidityLabel = null; } if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (TempLabel != null) { TempLabel.Dispose(); TempLabel = null; } if (WindSpeedLabel != null) { WindSpeedLabel.Dispose(); WindSpeedLabel = null; } }
void ReleaseDesignerOutlets() { if (BottomMenu != null) { BottomMenu.Dispose(); BottomMenu = null; } if (btnComments != null) { btnComments.Dispose(); btnComments = null; } if (btnRates != null) { btnRates.Dispose(); btnRates = null; } if (btnStatistic != null) { btnStatistic.Dispose(); btnStatistic = null; } if (MainBackground != null) { MainBackground.Dispose(); MainBackground = null; } if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (OverlayView != null) { OverlayView.Dispose(); OverlayView = null; } }
public async void Animate() { FirstLight.FadeTo(0, 0); SecondLight.FadeTo(0, 0); LoginLabel.FadeTo(0, 0); MainButton.FadeTo(0, 0); MainLabel.FadeTo(0, 0); MAinFrame.FadeTo(0.0); FirstLight.TranslationY = -180; SecondLight.TranslationY = -160; Clock.TranslationY = -80; MainLabel.TranslationY = -30; MainButton.TranslationY = -30; MAinFrame.TranslationY = -30; await Clock.FadeTo(0, 0); Task.Delay(1000); FirstLight.FadeTo(1, 500); await FirstLight.TranslateTo(0, 0, 300); LoginLabel.FadeTo(1, 900); SecondLight.FadeTo(1, 500); await SecondLight.TranslateTo(0, 0, 300); Clock.FadeTo(1, 500); await Clock.TranslateTo(0, 0, 300); MAinFrame.FadeTo(1, 500); await MAinFrame.TranslateTo(0, 0, 300); MainButton.FadeTo(1, 500); await MainButton.TranslateTo(0, 0, 300); MainLabel.FadeTo(1, 500); await MainLabel.TranslateTo(0, 0, 300); }
void ReleaseDesignerOutlets() { if (AutosuggestionsTableView != null) { AutosuggestionsTableView.Dispose(); AutosuggestionsTableView = null; } if (ButtonBottomConstraint != null) { ButtonBottomConstraint.Dispose(); ButtonBottomConstraint = null; } if (ContactCardView != null) { ContactCardView.Dispose(); ContactCardView = null; } if (CurrentLocationButton != null) { CurrentLocationButton.Dispose(); CurrentLocationButton = null; } if (DirectionsButton != null) { DirectionsButton.Dispose(); DirectionsButton = null; } if (FloorPickerBottomConstraint != null) { FloorPickerBottomConstraint.Dispose(); FloorPickerBottomConstraint = null; } if (FloorsTableView != null) { FloorsTableView.Dispose(); FloorsTableView = null; } if (HeightConstraint != null) { HeightConstraint.Dispose(); HeightConstraint = null; } if (HomeButton != null) { HomeButton.Dispose(); HomeButton = null; } if (LocationSearchBar != null) { LocationSearchBar.Dispose(); LocationSearchBar = null; } if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (MapView != null) { MapView.Dispose(); MapView = null; } if (RouteCard != null) { RouteCard.Dispose(); RouteCard = null; } if (RouteTableView != null) { RouteTableView.Dispose(); RouteTableView = null; } if (SearchToolbar != null) { SearchToolbar.Dispose(); SearchToolbar = null; } if (SecondaryLabel != null) { SecondaryLabel.Dispose(); SecondaryLabel = null; } if (SettingsButton != null) { SettingsButton.Dispose(); SettingsButton = null; } if (WalkTimeLabel != null) { WalkTimeLabel.Dispose(); WalkTimeLabel = null; } }
void ReleaseDesignerOutlets() { if (ActivityIndicator != null) { ActivityIndicator.Dispose(); ActivityIndicator = null; } if (BgImageView != null) { BgImageView.Dispose(); BgImageView = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (ContentView != null) { ContentView.Dispose(); ContentView = null; } if (ContentView_LayoutCenterY != null) { ContentView_LayoutCenterY.Dispose(); ContentView_LayoutCenterY = null; } if (DayLabel != null) { DayLabel.Dispose(); DayLabel = null; } if (HumidityLabel != null) { HumidityLabel.Dispose(); HumidityLabel = null; } if (MainLabel != null) { MainLabel.Dispose(); MainLabel = null; } if (MonthLabel != null) { MonthLabel.Dispose(); MonthLabel = null; } if (TableView != null) { TableView.Dispose(); TableView = null; } if (TempLabel != null) { TempLabel.Dispose(); TempLabel = null; } if (WindLabel != null) { WindLabel.Dispose(); WindLabel = null; } }