public SelectControlSystemViewModel(SelectControlSystemView view)
        {
            View = view;

            View.KeywordTextBox.KeyUp += (s1, e1) => ProcessSearchFilter();

            LoadData();

            OkButtonCommand = new DelegateCommand<object>(OkButtonHander, CanExecuteOkButtonHandler);
            CancelButtonCommand = new DelegateCommand<object>(CancelButtonHander);
        }
        private void CopyInterlockHandler(object parameter)
        {
            CopyInterlocksView copyInterlocksView = new CopyInterlocksView();
            copyInterlocksView.Show();

            copyInterlocksView.Closed += (sender, args) =>
                {
                    if (copyInterlocksView.DialogResult == true)
                    {
                        SelectControlSystemView selectControlSystemView = new SelectControlSystemView();
                        selectControlSystemView.Show();

                        selectControlSystemView.Closed += (o, eventArgs) =>
                            {
                                if (selectControlSystemView.DialogResult == true)
                                {
                                    var interlocksIds = copyInterlocksView.SelectedRelatedOverrides.Select(x => x.Interlock.Id).ToList();
                                    var controlSystemsToCopyTo = selectControlSystemView.SelectedControlSystems.Select(x => x.Id).ToList();

                                    SaveCopiedInterlocks(interlocksIds,controlSystemsToCopyTo);
                                }
                            };

                    }
                };
        }