| Last change
 on this file since 1594 was             1070, checked in by Sam Habiel, 15 years ago | 
        
          | 
LoadingSplash: New Form that does... pretty much nothing. Just shows a splash when updating data from server.CGView:
 
 
CGDocumentManager:
 
CGDocument:
 | 
        
          | File size:
            854 bytes | 
      
      
| Line |  | 
|---|
| 1 | using System; | 
|---|
| 2 | using System.Collections.Generic; | 
|---|
| 3 | using System.ComponentModel; | 
|---|
| 4 | using System.Data; | 
|---|
| 5 | using System.Drawing; | 
|---|
| 6 | using System.Linq; | 
|---|
| 7 | using System.Text; | 
|---|
| 8 | using System.Windows.Forms; | 
|---|
| 9 |  | 
|---|
| 10 | namespace IndianHealthService.ClinicalScheduling | 
|---|
| 11 | { | 
|---|
| 12 | public partial class LoadingSplash : Form | 
|---|
| 13 | { | 
|---|
| 14 | public LoadingSplash() | 
|---|
| 15 | { | 
|---|
| 16 | InitializeComponent(); | 
|---|
| 17 | } | 
|---|
| 18 |  | 
|---|
| 19 | //Generic Delegate for fancy remote invokations | 
|---|
| 20 | public delegate void dAny(); | 
|---|
| 21 |  | 
|---|
| 22 | /// <summary> | 
|---|
| 23 | /// Close a form from another thread | 
|---|
| 24 | /// </summary> | 
|---|
| 25 | public void RemoteClose() | 
|---|
| 26 | { | 
|---|
| 27 | if (InvokeRequired == true) | 
|---|
| 28 | { | 
|---|
| 29 | dAny d = new dAny(this.Close); | 
|---|
| 30 | this.Invoke(d); | 
|---|
| 31 | } | 
|---|
| 32 | else | 
|---|
| 33 | this.Close(); | 
|---|
| 34 | } | 
|---|
| 35 | } | 
|---|
| 36 | } | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.