public SharpClientTabPage(string title,string fileName ) { this.Title =title; this.m_fileName=fileName; if(fileName.ToLower().EndsWith(".fxml")) { bIsMemorySession=false; m_tThread=new System.Threading.Thread(new System.Threading.ThreadStart(functionProc)); } else if(fileName.ToLower().EndsWith(".oxml")) { bIsMemorySession=true; m_tThread=new System.Threading.Thread(new System.Threading.ThreadStart(objectProc)); } else { bIsMemorySession=false; return; } if(m_tThread!=null) { m_tThread.ApartmentState =System.Threading.ApartmentState.MTA ; this.VisibleChanged+=new EventHandler(SharpClientTabPage_VisibleChanged); } this.EnabledChanged +=new EventHandler(SharpClientTabPage_EnabledChanged); subscriberEvent=new delegateToolbarEvent( Toolbarbutton_Clicked); menuSubscriberEvent=new delegateMenuEvent(MenuItem_Clicked); m_Session="SessionID"; fileNameArray=new ArrayList(); }
public CompareTabPage(string profileeName,string firstSession,string secondSession) { this.m_session1=firstSession; this.m_session2=secondSession; this.m_profileeName=profileeName; Init(); subscriberEvent=new delegateToolbarEvent(ToolBarButton_Clicked); menuSubscriberEvent=new delegateMenuEvent(MenuItem_Clicked); }