private void open() { GlobalStation.shareInstance.librarys.isCustomize = false; LibraryHallPanel hall = new LibraryHallPanel(); hall.libraryUUID = this.libraryUUID; GlobalStation.shareInstance.entrance.showPanel(hall); }
private void addPanel_openButton_Click(string title) { try { string path = HKOpenFileDialog.selectFile(HKDialogFilter.Library); AttandanceLibrary lib = FileSerilizeOpener <AttandanceLibrary> .open(path); GlobalStation.shareInstance.librarys.isCustomize = true; GlobalStation.shareInstance.librarys.customizeLibrary = CustomLibrary.createLibrary(lib, path); LibraryHallPanel hall = new LibraryHallPanel(); hall.libraryUUID = lib.UUID; GlobalStation.shareInstance.entrance.showPanel(hall); }catch (HKOpenFileDialog.CancelOpenFileException) { } }