Пример #1
0
 private void OpenSelectedFileOnClick(Object sender, RoutedEventArgs e)
 {
     if (FilesPaths.SelectedItem != null && OpenManager.OpenFile((String)FilesPaths.SelectedItem))
     {
         DialogResult = true;
     }
 }
 private void OnClick(Object sender, RoutedEventArgs e)
 {
     if (OpenManager.OpenFile(PathBox.Text))
     {
         DialogResult = true;
     }
 }
Пример #3
0
        protected override void OnClick(Object sender, RoutedEventArgs e)
        {
            String newFilePath = Path.Combine(DirectoryBox.Text, NameBox.Text) + XlsxThreatReader.DefaultExtension;

            if (DownloadManager.DownloadFile(newFilePath))
            {
                OpenManager.OpenFile(newFilePath);
                DialogResult = true;
            }
        }