public void Init( string icao, string rwy, List <string> procedures, bool isSid, ProcedureFilter procFilter) { this.icao = icao; this.rwy = rwy; this.procedures = procedures; this.isSid = isSid; this.procFilter = procFilter; SetType(); SetListView(); showSelectedCheckBox.CheckedChanged += showSelectedCheckBoxChanged; okBtn.Click += UpdateFilter; cancelBtn.Click += (sender, e) => FinishedSelection?.Invoke(sender, e); new ListViewSortEnabler(procListView).EnableSort(); }
private void UpdateFilter(object sender, EventArgs e) { procFilter[icao, rwy] = new FilterEntry( listTypeComboBox.SelectedIndex == 0, CheckedItems().ToList()); FinishedSelection?.Invoke(sender, e); }