Exemplo n.º 1
0
 public FrmStandard(int Id)
 {
     try
     {
         InitializeComponent();
         schoolMan = new SchoolManager();
         _standard = new Standard();
         _id       = Id;
         if (_id != -1)
         {
             _standard    = schoolMan.GetStandardById(_id);
             txtName.Text = _standard.Name;
         }
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
         _standard = new Standard();
     }
     finally
     {
         isFormLoaded = true;
     }
 }