123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- //
- // KMCloseApplyWC.swift
- // PDF Reader Pro
- //
- // Created by wanjun on 2024/11/5.
- //
- import Cocoa
- class KMCloseApplyWC: NSWindowController {
-
- @IBOutlet weak var titleLabel: NSTextField!
- @IBOutlet weak var subTitleLabel: NSTextField!
- @IBOutlet weak var yesButton: NSButton!
-
- var currentTime: String = ""
- var logOffTime: String = ""
- private var viewModel = KMUserInfoVCModel()
-
- static let shared: KMCloseApplyWC = {
- let windowC = KMCloseApplyWC(windowNibName: "KMCloseApplyWC")
- return windowC
- }()
- override func windowDidLoad() {
- super.windowDidLoad()
- // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
-
- languageLocalized()
- initializeUI()
- }
-
- // MARK: Private Method
-
- private func languageLocalized() -> Void {
- titleLabel.stringValue = NSLocalizedString("账号注销申请已提交", tableName: "MemberCenterLocalizable", comment: "")
- subTitleLabel.stringValue = String(format: NSLocalizedString("您的帐户将于%@自动注销。欢迎您再次使用PDF Reader Pro的产品与服务!\n在%@之前,您可以使用此帐户登入并选择撤销「注销帐户」,然后继续使用帐户,您享有的权益与产品服务将会保留。", tableName: "MemberCenterLocalizable", comment: ""), logOffTime, logOffTime)
- yesButton.title = NSLocalizedString("知道了", tableName: "MemberCenterLocalizable", comment: "")
- }
-
- private func initializeUI() -> Void {
- titleLabel.textColor = NSColor(named: "000000_0.85")
- titleLabel.font = NSFont.SFProTextSemiboldFont(13)
- subTitleLabel.textColor = NSColor(named: "000000_0.85")
- subTitleLabel.font = NSFont.SFProTextRegularFont(12)
- yesButton.setTitleColor(color: NSColor(named: "FFFFFF") ?? NSColor.white, font: NSFont.SFProTextRegularFont(13))
- }
-
- // MARK: Button Action
-
-
- @IBAction func yesButtonAction(_ sender: NSButton) {
- self.window?.close()
- }
- }
|