public static frmfeedback get_instance() { if (feedback_form == null) { feedback_form = new frmfeedback(); return(feedback_form); } else { return(feedback_form); } }
private void button1_Click(object sender, EventArgs e) { frmfeedback frm = frmfeedback.get_instance(); this.Hide(); frm.Show(); txtcaddress.Hide(); txtccell.Hide(); txtcdevice.Hide(); txtcmail.Hide(); txtcname.Hide(); txtcproblem.Hide(); cmdfeedback.Hide(); cmdrepair.Hide(); }
private void cmdfeedback_Click(object sender, EventArgs e) { frmfeedback frm = new frmfeedback(); frm.Show(); }