try { if (string.IsNullOrEmpty(txtActivity1.Text)) { MessageBox.Show("Type Your First Activity"); return; } clsCategory person = new clsCategory(); var _with1 = person; _with1.oneCategory = this.txtCategory1.Text; _with1.twoCategory = this.txtCategory2.Text; _with1.threeCategory = this.txtCategory3.Text; _with1.fourCategory = this.txtCategory4.Text; _with1.fiveCategory = this.txtCategory5.Text; _with1.oneActivity = this.txtActivity1.Text; _with1.twoActivity = this.txtActivity2.Text; _with1.threeActivity = this.txtActivity3.Text; _with1.fourActivity = this.txtActivity4.Text; _with1.fiveActivity = this.txtActivity5.Text; _with1.saveRegister(); clearScreen(); MessageBox.Show("Record is successfully Added"); } catch (Exception ex) { MessageBox.Show(ex.Message); }
_with1.saveRegister();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)