Example #1
0
        void FormContinutFisierText_Load(object sender, EventArgs e)
        {
            try
            {
                Initializeaza();
                AllowModification(true);

                this.btnValidare.Focus();
            }
            catch (Exception ex)
            {
                IHMUtile.AfiseazaEroare(this, ex.Message, string.Empty, true);
            }
        }
Example #2
0
 // The method that calls all other functions
 public bool DrawDataGridView(Graphics g, bool pPrimaPagina)
 {
     try
     {
         using (Font fontText = new Font("Tahoma", 10, FontStyle.Regular, GraphicsUnit.Point))
         {
             Calculate(g, fontText);
             DrawHeader(g, fontText, pPrimaPagina);
             bool bContinue = DrawRows(g, fontText);
             return(bContinue);
         }
     }
     catch (Exception ex)
     {
         IHMUtile.AfiseazaEroare(IHMUtile.GetFormParinte(lDGVdePrintat), ex.Message.ToString(), IHMUtile.getText(605), true);
         return(false);
     }
 }