public EditAcaoChildUC(EditAcaoChildWindow editAcaoChildWindow, AcoesView parentWindow, MainWindow mainWindow, AcaoDyn acao)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.editAcaoChildWindow = editAcaoChildWindow;
     this.parentWindow        = parentWindow;
     this.mainWindow          = mainWindow;
     this.acao = acao;
     refresh();
 }
예제 #2
0
 public EditAcaoChildWindow(MainWindow mainWindow, AcoesView parentWindow, AcaoDyn acao)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.mainWindow   = mainWindow;
     this.parentWindow = parentWindow;
     CloseOnOverlay    = false;
     editAcaoChildW    = new EditAcaoChildUC(this, parentWindow, mainWindow, acao);
     mainGrid.Children.Clear();
     mainGrid.Children.Add(editAcaoChildW);
     this.parentWindow = parentWindow;
 }
        public AddAcaoChildWindow(MainWindow mainWindow, AcoesView parentWindow, Screen selectedTela, Sistema selectedSistema)
        {
            // TODO: Complete member initialization
            InitializeComponent();

            this.mainWindow   = mainWindow;
            this.parentWindow = parentWindow;

            CloseOnOverlay = false;
            addAcaoChildW  = new AddAcaoChildUC(this, parentWindow, mainWindow, selectedTela, selectedSistema);
            mainGrid.Children.Clear();
            mainGrid.Children.Add(addAcaoChildW);
        }
예제 #4
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));
        }
예제 #5
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;
                }
            }
        }