public override void New()
        {
            frmWarranty form = new frmWarranty();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                Init();
            }
        }
 public override void Edit()
 {
     if (this.CurrentId != 0)
     {
         Warranty    warranty = Databases.Tables.Warranties[this.CurrentId];
         frmWarranty form     = new frmWarranty(warranty);
         if (form.ShowDialog(this) == DialogResult.OK)
         {
             Init();
         }
     }
 }