コード例 #1
0
        // Context Menu
        public static void OpenDownloadProperties(string DownloadID)         // Open "Download Properties" for the given download ID
        {
            var DownloadProperties = new Dialogs.Context_Menu.DownloadProperties(DownloadID);

            DownloadProperties.Owner = Application.Current.MainWindow;             // so that this dialog centers to its parent window, as its window is set to WindowStartupLocation="CenterOwner"
            DownloadProperties.ShowDialog();
        }
コード例 #2
0
 // Open "Download Properties" for the given download ID
 // Context Menu
 public static void OpenDownloadProperties(string DownloadID)
 {
     var DownloadProperties = new Dialogs.Context_Menu.DownloadProperties(DownloadID);
     DownloadProperties.Owner = Application.Current.MainWindow; // so that this dialog centers to its parent window, as its window is set to WindowStartupLocation="CenterOwner"
     DownloadProperties.ShowDialog();
 }