private void attendance_Click(object sender, System.EventArgs e) { try { Attendance formAtt = new Attendance(this.licensepath, this.header, this.jns, this.role, this.circuit, this.electoralEampaignSave); formAtt.ShowDialog(); } catch (System.Exception) { } }
public Commit(string filepath, Attendance pf) { this.InitializeComponent(); this.filepath = filepath; this.form4 = pf; this.loggin = false; this.LoginNext.Click -= new System.EventHandler(this.LoginNext_Click); this.LoginNext.Click -= new System.EventHandler(this.LoginNext2_Click); this.LoginNext.Click -= new System.EventHandler(this.LoginNext3_Click); this.LoginNext.Click += new System.EventHandler(this.LoginNext4_Click); string[] filepathpart = filepath.Split(new char[] { '\\' }); this.label1.Text = filepathpart[filepathpart.Length - 1].Replace(".pem", ""); this.form4.logged = false; this.codeBarLabel.Visible = false; }