void AddEnterIPProfiler(List <ProfilerChoise> profilers, Rect buttonScreenRect) { profilers.Add(new ProfilerChoise() { Name = kEnterIPText, Enabled = true, IsSelected = () => { return(false); }, ConnectTo = () => { ProfilerIPWindow.Show(buttonScreenRect); } }); }
private void AddEnterIPProfiler(List <ProfilerChoise> profilers, Rect buttonScreenRect) { ProfilerChoise item = default(ProfilerChoise); item.Name = AttachProfilerUI.kEnterIPText; item.Enabled = true; item.IsSelected = (() => false); item.ConnectTo = delegate { ProfilerIPWindow.Show(buttonScreenRect); }; profilers.Add(item); }