Пример #1
0
        public AddAcaoChildUC(AddAcaoChildWindow addAcaoChildWindow, AcoesView parentWindow, MainWindow mainWindow)
        {
            // TODO: Complete member initialization
            InitializeComponent();


            this.addAcaoChildWindow = addAcaoChildWindow;
            this.parentWindow       = parentWindow;
            this.mainWindow         = mainWindow;
            this.refresh();

            RoutedCommand saveCmd = new RoutedCommand();

            saveCmd.InputGestures.Add(new KeyGesture(Key.S, ModifierKeys.Control));
            CommandBindings.Add(new CommandBinding(saveCmd, adicionarAcao));
        }
Пример #2
0
        public AddAcaoChildUC(AddAcaoChildWindow addAcaoChildWindow, AcoesView parentWindow, MainWindow mainWindow, Tela selectedTela1, Sistema selectedSistema1) : this(addAcaoChildWindow, parentWindow, mainWindow)
        {
            this.selectedSistema = selectedSistema1;

            foreach (Sistema item in sistemasComboBox.Items)
            {
                if (selectedSistema.Id == item.Id)
                {
                    this.selectedSistema = item;
                }
            }
            this.selectedTela = selectedTela1;
            foreach (Tela item in telasCombo.Items)
            {
                if (selectedTela.Id == item.Id)
                {
                    this.selectedTela = item;
                }
            }
        }