public MyView(MyController controller) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); this.controller = controller; Init(); }
static void Main() { var c = new MyController(); try { c.Start(); } finally { c.Stop(); } }
public ScanView(MyController controller) { form = new Scan(); this.controller = controller; timer = new System.Timers.Timer(); timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); timer.Interval = 1000; channelList = new ChannelList(); fromFreq = 92250000; toFreq = 814250000; //stepFreq = 62500; stepFreq = 1000000; form.cbVideoStandarts.Items.Clear(); form.cbChanVideoStandart.Items.Clear(); foreach (AnalogVideoStandard vs in Enum.GetValues(typeof(AnalogVideoStandard))) { form.cbVideoStandarts.Items.Add(vs.ToString()); form.cbChanVideoStandart.Items.Add(vs.ToString()); } form.cbVideoStandarts.Text = AnalogVideoStandard.PAL_D.ToString(); form.cbChanVideoStandart.SelectedValueChanged += new EventHandler(cbChanVideoStandart_SelectedValueChanged); BindUI(); }