1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import UIKit
- class NCCreateFormUploadConflictCell: UITableViewCell {
-
- @IBOutlet weak var labelFileName: UILabel!
- @IBOutlet weak var imageAlreadyExistingFile: UIImageView!
- @IBOutlet weak var imageNewFile: UIImageView!
- @IBOutlet weak var labelDetailAlreadyExistingFile: UILabel!
- @IBOutlet weak var labelDetailNewFile: UILabel!
- @IBOutlet weak var switchAlreadyExistingFile: UISwitch!
- @IBOutlet weak var switchNewFile: UISwitch!
-
- var delegate: NCCreateFormUploadConflictCellDelegate?
- var ocId: String = ""
- @IBAction func valueChangedSwitchNewFile(_ sender: Any) {
- delegate?.valueChangedSwitchNewFile(with: ocId, isOn: switchNewFile.isOn)
- }
-
- @IBAction func valueChangedSwitchAlreadyExistingFile(_ sender: Any) {
- delegate?.valueChangedSwitchAlreadyExistingFile(with: ocId, isOn: switchAlreadyExistingFile.isOn)
- }
- }
- protocol NCCreateFormUploadConflictCellDelegate {
-
- func valueChangedSwitchNewFile(with ocId: String, isOn: Bool)
- func valueChangedSwitchAlreadyExistingFile(with ocId: String, isOn: Bool)
- }
|