示例#1
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (!this.panel2.HasChildren)
            {
                Clientes clientes = new Clientes();
                clientes.TopLevel   = false;
                clientes.AutoScroll = true;
                this.panel2.Controls.Add(clientes);
                clientes.Show();
            }
            else
            {
                Control[] control = this.panel2.Controls.Find("clientes", false);


                if (control.Length == 0)
                {
                    this.panel2.Controls.Clear();
                    Clientes clientes = new Clientes();
                    clientes.TopLevel   = false;
                    clientes.AutoScroll = true;
                    this.panel2.Controls.Add(clientes);
                    clientes.Show();
                }
            }
        }
示例#2
0
        //Clientes
        public void PictureBox1_Click(object sender, EventArgs e)
        {
            PictureBox1.Image   = WindowsFormsApplication1.Properties.Resources.ClienteLocked;
            PictureBox1.Enabled = false;
            Clientes f2 = new Clientes();

            f2.Show();
            f2.MdiParent = this;
            f2.Location  = new Point(0, 0);
        }
示例#3
0
 private void saveToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Login.IsLogin == 1)
     {
         if (Login.IsPremis == 1)
         {
             Clientes cliente = new Clientes();
             cliente.MdiParent = this;
             cliente.Show();
         }
         else
         {
             MessageBox.Show("ERRO 01: Usuário de PERMISSÃO de Uso. !!!");
         }
     }
 }
示例#4
0
 //Abre os Clientes
 public void PictureBox1_Click(object sender, EventArgs e)
 {
     men1 = getprinc;
     if (men1 == 0)
     {
         Clientes f2 = new Clientes();
         f2.Owner = this;
         f2.Show();
         f2.MdiParent = this;
         f2.Location  = new Point(0, 0);
     }
     else
     {
         MessageBox.Show("Já existe uma janela aberta");
     }
     men1             = 1;
     Clientes.getmenu = men1;
 }