basically im trying to check and see if the two objects would be considered to have been used at the same time.
This Is what i have so far, most of my question are asked in the code.
its a generic so it dosent matter what the two objects are.
Public Class Time_Space(Of T, T2) 'The two objects that are being Watched,before = before object is accessed, after = after object was accesed Private X_After, X_Before As T : Private Y_After, Y_Before As T2 'IS THERE A BETTER WAY OF TIMING THE OBJECTS?????????? 'The time of when the object was accessed last Private LastAccess_X, LastAccess_Y As DateTime 'DOES THIS METHOD WORK WELL OR SHOULD I CONSIDER A NEW APPROACH????? 'The block of time that the two object check to see if they occur within Public Property Time_Block As Integer = 0 Public Property X As T 'CAN I GET MORE DETIALED INFORMATION ABOUT THE OBJECT AND WHAT HAPPENED WHEN IT WAS ACCESSED?????? Get X_Before = X_After LastAccess_X = DateTime.Now Check_TimeBlock() Return X_After End Get Set(value As T) X_Before = X_After X_After = value LastAccess_X = DateTime.Now Check_TimeBlock() End Set End Property Public Property Y As T2 Get X_Before = X_After LastAccess_Y = DateTime.Now Check_TimeBlock() Return Y_After End Get Set(value As T2) Y_Before = Y_After Y_After = value LastAccess_Y = DateTime.Now Check_TimeBlock() End Set End Property 'WHAT IS A BETTER NAME???, AM I Forgeting any important Information?? Public Event SameTimeBlock(ByVal X_Befor As T, ByVal X_After As T, ByVal Y_before As T2, ByVal Y_after As T2) Private Sub Check_TimeBlock() If Val_Func.Subtract_Pos(LastAccess_X.Millisecond, LastAccess_Y.Millisecond) <= Time_Block Then 'Returns an non-negative value RaiseEvent SameTimeBlock(X_Before, X_After, Y_Before, Y_After) End If End Sub End Class
well this all started when i was reading about programming padagriams<<<<F-YOU, Im not capable of making anything on a professional level but needless to say it gave me this idea and now im just looking for some advice on how to do it better or learn the technical concepts behind it so i can perform tedious research. Thanks again for anything you can offer. It is always appricaited