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); }
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); }
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); } }
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); } }
private void metroButton2_Click(object sender, EventArgs e) { PersonalDataForm form = new PersonalDataForm(ConnectionClass.ClientTCP.isloged); SetInterface(form); }