Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        private void UpdateFilter(object sender, EventArgs e)
        {
            procFilter[icao, rwy] = new FilterEntry(
                listTypeComboBox.SelectedIndex == 0,
                CheckedItems().ToList());

            FinishedSelection?.Invoke(sender, e);
        }