public Updater() { InitializeComponent(); BG.BeginInit(); BG.Source = baseColora.Bgpa; BG.EndInit(); this.Background = baseColora.Tran; WindowXCaption.SetHeight(this, 0); this.MT1.Foreground = baseColora.Fg; this.MT1.FontFamily = baseColora.Fonts; this.MT1.FontSize = 15; this.T1.Foreground = baseColora.Fg; this.T1.FontFamily = baseColora.Fonts; this.T1.FontSize = 13; this.T2.Foreground = baseColora.Fg; this.T2.FontFamily = baseColora.Fonts; this.T2.FontSize = 13; this.ICON.Foreground = baseColora.Fg; ButtonHelper.SetHoverBrush(ICON, baseColora.Fg); this.pbDown.Background = baseColora.DBg; this.pbDown.Foreground = baseColora.Main; ProgressBarHelper.SetCornerRadius(pbDown, 0); Thread thread = new Thread(Start); thread.Start(); }
public PassWordEnterF7() { InitializeComponent(); BG.BeginInit(); BG.Source = baseColora.Bgpa; BG.EndInit(); this.Background = baseColora.Tran; WindowXCaption.SetHeight(this, 0); this.Time.Background = baseColora.DBg; this.Time.Foreground = baseColora.Main; ProgressBarHelper.SetCornerRadius(Time, 0); Border.Background = baseColora.DBg; this.Password.Background = baseColora.DBg; this.Password.Foreground = baseColora.Fg; ButtonHelper.SetHoverBrush(B1, baseColora.Tran); this.B1.Background = baseColora.Tran; Timer timer = new Timer(); timer = new Timer(1000); timer.Elapsed += new ElapsedEventHandler(OnTimedEvent); timer.Enabled = true; }
public PendingBox(Window owner, string message, string title, bool cancelable, PendingBoxConfigurations configurations) { InitializeComponent(); PendingBoxStyle = configurations.PendingBoxStyle; if (configurations.PendingBoxStyle == PendingBoxStyle.Standard) { if (!string.IsNullOrEmpty(title)) { TxtTitle.Text = title; TxtTitle.Visibility = Visibility.Visible; Title = title; WindowXCaption.SetHeight(this, 30); } } else if (configurations.PendingBoxStyle == PendingBoxStyle.Classic) { if (!string.IsNullOrEmpty(title)) { TxtTitle2.Text = title; TxtTitle2.Visibility = Visibility.Visible; Title = title; WindowXCaption.SetHeight(this, 30); } GrdStandard.Visibility = Visibility.Collapsed; GrdClassic.Visibility = Visibility.Visible; } Cancelable = cancelable; Message = message; CancelButton = configurations.CancelButton; Foreground = configurations.Foreground; LoadingBackground = configurations.LoadingBackground; LoadingForeground = configurations.LoadingForeground; ButtonBrush = configurations.ButtonBrush; ShowInTaskbar = configurations.ShowInTaskbar; Topmost = configurations.Topmost; FontSize = configurations.FontSize; WindowStartupLocation = configurations.WindowStartupLocation; LoadingStyle = configurations.LoadingStyle; LoadingSize = configurations.LoadingSize; MinHeight = configurations.MinHeight; MinWidth = configurations.MinWidth; MaxHeight = configurations.MaxHeight; MaxWidth = configurations.MaxWidth; }
private void GD_Checked(object sender, RoutedEventArgs e) { if (GD.IsChecked == true) { WindowXCaption.SetHeight(ParentWindow, 0); ParentWindow.Main.Margin = new Thickness(0, 10, 0, 0); ParentWindow.Height = ParentWindow.Height - 25; } else { WindowXCaption.SetHeight(ParentWindow, 35); ParentWindow.Main.Margin = new Thickness(0, 0, 0, 0); ParentWindow.Height = ParentWindow.Height + 25; } }
public SSMessageBox() { InitializeComponent(); SSMessageHelper.buttonOK = false; SSMessageHelper.buttonNO = false; BG.BeginInit(); BG.Source = baseColora.Bgpa; BG.EndInit(); this.Background = baseColora.Tran; Border.Background = baseColora.DBg; WindowXCaption.SetHeight(this, 0); this.ICON.Foreground = baseColora.Fg; ButtonHelper.SetHoverBrush(ICON, baseColora.Fg); ButtonHelper.SetIcon(ICON, ButtonHelper.GetIcon(SSMessageHelper.Icon)); this.OK.Content = SSMessageHelper.bOKtext; this.OK.Foreground = baseColora.Fg; this.OK.Background = baseColora.Bg; ButtonHelper.SetHoverBrush(OK, baseColora.Main); ButtonHelper.SetCornerRadius(OK, new CornerRadius(3, 3, 3, 3)); this.CANC.Content = SSMessageHelper.bNOtext; this.CANC.Foreground = baseColora.Fg; this.CANC.Background = baseColora.Bg; ButtonHelper.SetHoverBrush(CANC, baseColora.Main); ButtonHelper.SetCornerRadius(CANC, new CornerRadius(3, 3, 3, 3)); this.TITLE.Text = SSMessageHelper.Title; this.TITLE.Foreground = baseColora.Fg; this.TITLE.Background = baseColora.Tran; this.TITLE.FontFamily = baseColora.Fonts; this.TITLE.FontSize = 25; this.SAY.Text = " " + SSMessageHelper.Says; this.SAY.Foreground = baseColora.Fg; this.SAY.Background = baseColora.Tran; this.SAY.FontFamily = baseColora.Fonts; this.SAY.FontSize = 16; if (SSMessageHelper.noNo) { this.CANC.Visibility = Visibility.Collapsed; } }