示例#1
0
 private void ToolbarToolbar_ExplorerAttached(object sender, EventArgs e)
 {
     //Code here, if you want to initialize something as soon as the explorer get attached.
     cmbPrefectures.SelectedIndexChanged += new EventHandler(cmbPrefectures_SelectedIndexChanged);
     cmbLibraries.SelectedIndexChanged   += new EventHandler(cmbLibraries_SelectedIndexChanged);
     cmbLibraries.ComboBox.DrawItem      += new DrawItemEventHandler(ComboBox_DrawItem);
     this.btnChangeOrCancel.Click        += new System.EventHandler(this.btnChangeOrCancel_Click);
     this.btnSave.Click += new EventHandler(btnSave_Click);
     if (userId != "")
     {
         libron.SaveDataRecieved += new LibronClass.SavedataRecievedEventhandler(libron_SaveDataRecieved);
         libron.GetSaveData(userId);
     }
     //this.Explorer.DocumentComplete += new SHDocVw.DWebBrowserEvents2_DocumentCompleteEventHandler(Explorer_DocumentComplete);
     this.Explorer.DownloadComplete += new DWebBrowserEvents2_DownloadCompleteEventHandler(Explorer_DownloadComplete);
     tmrError.Tick            += new EventHandler(tmrError_Tick);
     libron.CheckLibraryError += new EventHandler(libron_CheckLibraryError);
     libron.SetSaveDataError  += new EventHandler(libron_SetSaveDataError);
 }