﻿using System;

using Foundation;
using UIKit;

namespace iTorrent {
    public partial class SwitchCell : UITableViewCell {

		Action<UISwitch> action;
        
		public UISwitch GetSwitcher {
			get {
				return Switcher;
			}
		}
        
		public SwitchCell(IntPtr handle) : base(handle) {
        }

		public void SetSwitcherAction(Action<UISwitch> action) {
			this.action = action;
		}

		partial void ValueChangedAction(UISwitch sender) {
			action?.Invoke(sender);
		}
    }
}

{'avg_line_length': 16.75862068965517, 'max_line_length': 58, 'alphanum_fraction': 0.6584362139917695, 'licenses': ['MIT'], 'repository_name': 'XITRIX/iTorrent_CSharp', 'path': 'iTorrent/Cells/SwitchCell.cs', 'size': 488, 'lang': 'C#'}