Exemplo n.º 1
0
        public BaseRemoverFundo(Fotógrafo fotógrafo)
        {
            InitializeComponent();

            this.fotógrafo = fotógrafo;

            EsconderQuadroNavegação();
            trackBar.Value = (int)(tratamento.Tolerância);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Usuário requisita edição de foto.
        /// </summary>
        private void opçãoEditar_Click(object sender, EventArgs e)
        {
            UseWaitCursor = true;
            AguardeDB.Mostrar();

            Fotógrafo f = new Fotógrafo();
            Controlador.InserirBaseInferior(f);
            f.Editar(listaFotos.Seleção);
            AguardeDB.Fechar();

            UseWaitCursor = false;
        }
        private void btnEditar_Click(object sender, EventArgs e)
        {
            if (Seleção == null)
                return;

            AguardeDB.Mostrar();

            Fotógrafo f = new Fotógrafo();
            baseInferior.SubstituirBase(f);
            f.Editar(Seleção);

            AguardeDB.Fechar();
        }
Exemplo n.º 4
0
        private void editarToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (Seleção != null)
            {
                Fotógrafo controle = new Fotógrafo();
                Control pai = Parent;

                while (pai as BaseInferior == null)
                    pai = pai.Parent;

                //(pai as BaseInferior).Controlador.InserirBaseInferior(controle);
                (pai as BaseInferior).SubstituirBase(controle);

                controle.Editar(Seleção);
            }
        }