public FormularioListView(TodosListViews ListView) { this.Modelo = ListView.Modelo; this.Tipo = ListView.Tipo; botaoDeletar = new Button(); botaoDeletar.Location = new System.Drawing.Point(570, 120); botaoDeletar.Size = new System.Drawing.Size(100, 50); botaoDeletar.Text = "Excluir"; botaoDeletar.Click += botaoExcluir_Click; botaoDeletar.Dock = DockStyle.Right; botaoAtualizar = new Button(); botaoAtualizar.Location = new System.Drawing.Point(570, 200); botaoAtualizar.Size = new System.Drawing.Size(100, 50); botaoAtualizar.Text = "Atualizar"; botaoAtualizar.Click += botaoAtualizar_Click; botaoAtualizar.Dock = DockStyle.Right; botaoDetalhes = new Button(); botaoDetalhes.Location = new System.Drawing.Point(570, 280); botaoDetalhes.Size = new System.Drawing.Size(100, 50); botaoDetalhes.Text = "Detalhes"; botaoDetalhes.Click += BotaoDetalhes_Click; botaoDetalhes.Dock = DockStyle.Right; Controls.Add(ListView); Controls.Add(botaoDetalhes); Controls.Add(botaoAtualizar); Controls.Add(botaoDeletar); this.ListView = ListView; InitializeComponent(); }
public FormularioListView(TodosListViews ListView) { this.Modelo = ListView.Modelo; this.Tipo = ListView.Tipo; Mudanca = new Button(); Mudanca.Location = new Point(570, 40); Mudanca.Size = new Size(100, 50); Mudanca.Text = "Mudança de estado"; Mudanca.Click += MudancaEstado_Click; Mudanca.Dock = DockStyle.Right; Mudanca.Visible = false; botaoDeletar = new Button(); botaoDeletar.Location = new Point(570, 120); botaoDeletar.Size = new Size(100, 50); botaoDeletar.Text = "Excluir"; botaoDeletar.Click += botaoExcluir_Click; botaoDeletar.Dock = DockStyle.Right; botaoAtualizar = new Button(); botaoAtualizar.Location = new Point(570, 200); botaoAtualizar.Size = new Size(100, 50); botaoAtualizar.Text = "Atualizar"; botaoAtualizar.Click += botaoAtualizar_Click; botaoAtualizar.Dock = DockStyle.Right; botaoDetalhes = new Button(); botaoDetalhes.Location = new Point(570, 280); botaoDetalhes.Size = new Size(100, 50); botaoDetalhes.Text = "Detalhes"; botaoDetalhes.Click += BotaoDetalhes_Click; botaoDetalhes.Dock = DockStyle.Right; Controls.Add(ListView); Controls.Add(botaoDetalhes); Controls.Add(botaoAtualizar); Controls.Add(botaoDeletar); Controls.Add(Mudanca); this.ListView = ListView; InitializeComponent(); }