// // Copyright 2014 Perforce Software Inc. // using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; namespace Perforce.View { /// <summary> /// Interaction logic for TimedMessageLabel.xaml /// </summary> public partial class TimedMessageLabel : UserControl { private System.Windows.Threading.DispatcherTimer timer; public TimedMessageLabel(string msg, double interval) { InitializeComponent(); Message.Content = msg; timer = new System.Windows.Threading.DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(interval); timer.Tick += timer_Tick; } void timer_Tick(object sender, EventArgs e) { ParentDialog.Close(); } private void Dialog_Loaded(object sender, RoutedEventArgs e) { timer.Start(); } public Technewlogic.WpfDialogManagement.Contracts.ICustomContentDialog ParentDialog { get; set; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 16507 | perforce_software | Move to main branch. | ||
//guest/perforce_software/piper/windows/R1.1/Perforce/View/TimedMessageLabel.xaml.cs | |||||
#1 | 11256 | alan_petersen |
Populate //guest/perforce_software/piper/windows/R1.1/... from //guest/perforce_software/piper/windows/main/.... |
||
//guest/perforce_software/piper/windows/main/Perforce/View/TimedMessageLabel.xaml.cs | |||||
#1 | 11255 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/windows/Perforce/View/TimedMessageLabel.xaml.cs | |||||
#1 | 10761 | alan_petersen |
initial drop of Piper for Windows.... this version still has _many_ bugs (er... i mean "unintended features") but I will be updating it over the next week as more stability is added. |