File size: 2,362 Bytes
b1b3bae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
'Copyright (C) 2002 Microsoft Corporation
'All rights reserved.
'
'THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
'EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
'MERCHANTIBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
'
'Date: June 2002
'Author: Duncan Mackenzie
'
'Requires the release version of .NET Framework

Imports DWSIM.DrawingTools.GraphicObjects
Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Runtime.Serialization

Public Class SelectionChangedEventArgs
    Inherits EventArgs
    Private m_SelectedObject As GraphicObject

    Public Sub New(ByVal selectedObject As GraphicObject)
        m_SelectedObject = selectedObject
    End Sub

    Public ReadOnly Property SelectedObject() As GraphicObject
        Get
            Return m_SelectedObject
        End Get
    End Property
End Class


Public Enum StatusUpdateType
    ObjectRotated = 0
    ObjectMoved = 1
    ObjectDeleted = 2
    SurfaceZoomChanged = 3
    FileLoaded = 4
    FileSaved = 5
    SelectionChanged = 6
End Enum

Public Class StatusUpdateEventArgs
    Inherits EventArgs
    Private m_UpdateType As StatusUpdateType
    Private m_SelectedObject As GraphicObject
    Private m_Message As String
    Private m_Coord As Point
    Private m_Amount As Single

    Public Sub New(ByVal UpdateType As StatusUpdateType, _
            ByVal Selection As GraphicObject, _
            ByVal StatusMessage As String, _
            ByVal Coord As Point, ByVal Amt As Single)
        m_UpdateType = UpdateType
        m_SelectedObject = Selection
        m_Message = StatusMessage
        m_Coord = Coord
        m_Amount = Amt
    End Sub

    Public ReadOnly Property Type() As StatusUpdateType
        Get
            Return m_UpdateType
        End Get
    End Property
    Public ReadOnly Property SelectedObject() As GraphicObject
        Get
            Return m_SelectedObject
        End Get
    End Property

    Public ReadOnly Property Message() As String
        Get
            Return m_Message
        End Get
    End Property

    Public ReadOnly Property Coordinates() As Point
        Get
            Return m_Coord
        End Get
    End Property

    Public ReadOnly Property Amount() As Single
        Get
            Return m_Amount
        End Get
    End Property

End Class