home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / FL_Tester_cs________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Text File  |  2001-08-21  |  1.5 KB  |  46 lines

  1. /*=====================================================================
  2.   File:      Tester.cs
  3.  
  4.   Summary:   A simple DLL that exposes a function or two to be tested
  5.              by the invoke sample
  6.  
  7. ---------------------------------------------------------------------
  8.   This file is part of the Microsoft .NET SDK Code Samples.
  9.  
  10.   Copyright (C) Microsoft Corporation.  All rights reserved.
  11.  
  12. This source code is intended only as a supplement to Microsoft
  13. Development Tools and/or on-line documentation.  See these other
  14. materials for detailed information regarding Microsoft code samples.
  15.  
  16. THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  17. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  18. IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  19. PARTICULAR PURPOSE.
  20. =====================================================================*/
  21.  
  22.  
  23. using System;
  24. using System.Windows.Forms;
  25.  
  26. // Some test methods to try from the Invoke sample
  27. public class SomeType {
  28.    public static double AddTwoDoubles(double num1, double num2){
  29.       return num1 + num2;
  30.    }
  31.  
  32.    public DialogResult ShowMessage(String message){
  33.       return MessageBox.Show(message);
  34.    }
  35.  
  36.    public DialogResult ShowMessage(String message, String caption){
  37.       return MessageBox.Show(message, caption);
  38.    }
  39.    
  40.    public DialogResult ShowMessage(String message, String caption, int style){
  41.       return MessageBox.Show(message, caption, (MessageBoxButtons)style);
  42.    }
  43.  
  44. }
  45.  
  46.