// // Copyright 2014 Perforce Software Inc. // using System.Windows; using System.Windows.Forms; namespace Perforce.View { /// <summary> /// Interaction logic for ChooseApplicationForm.xaml /// </summary> public partial class ChooseApplicationForm : System.Windows.Controls.UserControl { public ChooseApplicationForm() { InitializeComponent(); } private void BrowseButton_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ofd.Title = "Choose Application..."; ofd.DefaultExt = ".exe"; ofd.Filter = "Application Files (*.exe)|*.exe"; ofd.Multiselect = false; ofd.ShowDialog(); Executable.Text = ofd.FileName; CheckFields(); } public Technewlogic.WpfDialogManagement.Contracts.ICustomContentDialog ParentDialog { get; set; } private void Textfield_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) { CheckFields(); } private void CheckFields() { if (Executable.Text.Trim().Length > 0) { ParentDialog.CanOk = true; } else { ParentDialog.CanOk = false; } } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15071 | alan_petersen |
Populate -o //guest/perforce_software/piper/... //guest/alan_petersen/piper/.... |
||
//guest/perforce_software/piper/windows/main/Perforce/View/ChooseApplicationForm.xaml.cs | |||||
#1 | 11255 | alan_petersen | Rename/move file(s) | ||
//guest/perforce_software/piper/windows/Perforce/View/ChooseApplicationForm.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. |