private void pictureBox2_Click(object sender, EventArgs e)
        {
            PersonalDataForm f = new PersonalDataForm(ConnectionClass.ClientTCP.isloged);
            Panel            p = (Panel)this.Parent;

            p.Controls.Clear();
            p.Controls.Add(f);
        }
Exemple #2
0
        private void metroButton3_Click(object sender, EventArgs e)
        {
            PersonalDataForm persdata = new PersonalDataForm(false);
            Panel            Panel1   = (Panel)this.Parent;

            Panel1.Controls.Clear();
            Panel1.Controls.Add(persdata);
        }
Exemple #3
0
 private void SetInterface()
 {
     if (this.InvokeRequired)
     {
         SetInterfaceCallBack callback = new SetInterfaceCallBack(SetInterface);
         this.Invoke(callback, new object[] {  });
     }
     else
     {
         PersonalDataForm dataform = new PersonalDataForm(ConnectionClass.ClientTCP.isloged);
         this.panel1.Controls.Clear();
         this.panel1.Controls.Add(dataform);
     }
 }
Exemple #4
0
        private void OpenPersonalData(bool isloged)
        {
            if (this.InvokeRequired)
            {
                OpenPersonalDataCallback ofcb = new OpenPersonalDataCallback(OpenPersonalData);
                this.Invoke(ofcb, new object[] { isloged });
            }
            else
            {
                if (this.checkBox1.Checked)
                {
                    SaveCookie();
                }


                PersonalDataForm form = new PersonalDataForm(isloged);
                Panel            p1   = (Panel)this.Parent;
                p1.Controls.Clear();
                p1.Controls.Add(form);
            }
        }
Exemple #5
0
        private void metroButton2_Click(object sender, EventArgs e)
        {
            PersonalDataForm form = new PersonalDataForm(ConnectionClass.ClientTCP.isloged);

            SetInterface(form);
        }