Ejemplo n.º 1
0
 private void txtValoare_KeyUpPersonalizat(object sender, KeyEventArgs e)
 {
     try
     {
         if (this.KeyUpPersonalizat != null)
         {
             KeyUpPersonalizat(this, e);
         }
     }
     catch (Exception ex)
     {
         Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void ctrlLeiEUR_MonedaSchimbata(object sender, EventArgs e)
 {
     try
     {
         if (this.MonedaSchimbata != null)
         {
             MonedaSchimbata(this, e);
         }
     }
     catch (Exception ex)
     {
         Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message);
     }
 }
Ejemplo n.º 3
0
 private void txtValoare_CerereUpdate(Control psender, string pNumeProprietate, object pNouaValoare)
 {
     try
     {
         if (this.CerereUpdate != null)
         {
             CerereUpdate(this, null);
         }
     }
     catch (Exception ex)
     {
         Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message);
     }
 }
Ejemplo n.º 4
0
        private void btnMinus_Click(object sender, EventArgs e)
        {
            try
            {
                this.lValoareActuala -= 1;
                initValoarea();
                anuntaModificareaValorii();

                AllowModification(this.lEcranInModificare);
            }
            catch (Exception ex)
            {
                Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message, IHMUtile.getText(605));
            }
        }
Ejemplo n.º 5
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);
     }
 }
Ejemplo n.º 6
0
        /// <summary>
        /// Cautam
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public static void tsCautare_Click(object sender, EventArgs e)
        {
            try
            {
                IMembriComuniControalePersonalizate ctrlAtasat = lControlTinta;// (IMembriComuniControalePersonalizate)((ToolStripMenuItem)sender).Tag;

                using (frmCautare Cautare = new frmCautare(ctrlAtasat))
                {
                    if (IHMUtile.DeschideEcran(IHMUtile.GetFormParinte(sender as Control), Cautare))
                    {
                        //TODO
                    }
                }
            }
            catch (Exception)
            {
            }
        }
        protected Form GetFormParinte()
        {
            return(IHMUtile.GetFormParinte(this));
            //Control parinte = this.Parent;// this.Parent;

            //do
            //{
            //    if (parinte != null)
            //    {
            //        if (parinte is Form)
            //            return parinte as Form;
            //        else
            //            parinte = parinte.Parent;
            //    }

            //} while (parinte == null);

            //return null;
        }
Ejemplo n.º 8
0
        public static void tsDEX_Click(object sender, EventArgs e)
        {
            try
            {
                using (frmWebBrowser DEX = new frmWebBrowser())
                {
                    DEX.CautareInDEX(GetTextDeCautat(lControlTinta));//(IMembriComuniControalePersonalizate)((ToolStripMenuItem)sender).Tag));
                    IHMUtile.DeschideEcran(IHMUtile.GetFormParinte(sender as Control), DEX);

                    if (!DEX.IsDisposed)
                    {
                        DEX.Dispose();
                    }
                }
            }
            catch (Exception)
            {
            }
        }
Ejemplo n.º 9
0
        public static void tsFacebook_Click(object sender, EventArgs e)
        {
            try
            {
                using (frmWebBrowser facebook = new frmWebBrowser())
                {
                    string textDeCautat = GetTextDeCautat(lControlTinta);
                    facebook.CautaPeFaceBook(textDeCautat, textDeCautat, false, false);
                    IHMUtile.DeschideEcran(IHMUtile.GetFormParinte(sender as Control), facebook);

                    if (!facebook.IsDisposed)
                    {
                        facebook.Dispose();
                    }
                }
            }
            catch (Exception)
            {
            }
        }
Ejemplo n.º 10
0
 private void txtValoare_AfterUpdate(Control sender, string sNumeProprietateAtasata, string sNouaValoare)
 {
     try
     {
         int nouaValoare = this.txtValoare.ValoareIntreaga;
         if (nouaValoare <= this.lValoareMaxima && nouaValoare >= this.lValoareMinima)
         {
             this.lValoareActuala = nouaValoare;
             anuntaModificareaValorii();
             AllowModification(this.lEcranInModificare);
         }
         else
         {
             this.txtValoare.ValoareIntreaga = this.lValoareActuala;
         }
     }
     catch (Exception ex)
     {
         Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message, IHMUtile.getText(605));
     }
 }
Ejemplo n.º 11
0
        /// <summary>
        /// Calculam
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public static void tsCalculator_Click(object sender, EventArgs e)
        {
            try
            {
                IMembriComuniControalePersonalizate ctrlAtasat = lControlTinta;// (IMembriComuniControalePersonalizate)((ToolStripMenuItem)sender).Tag;
                string TextCalculator = string.Empty;
                if (!string.IsNullOrEmpty(ctrlAtasat.SelectedText))
                {
                    TextCalculator = ctrlAtasat.SelectedText;
                }

                using (frmCalculator Calc = new frmCalculator(TextCalculator))
                {
                    if (IHMUtile.DeschideEcran(IHMUtile.GetFormParinte(sender as Control), Calc))
                    {
                        ctrlAtasat.InsereazaText(Calc.Rezultat);
                    }
                }
            }
            catch (Exception)
            {
            }
        }
Ejemplo n.º 12
0
        protected override void OnValidated(EventArgs e)
        {
            try
            {
                base.OnValidated(e);
                if ((string.IsNullOrEmpty(this._sVecheaValoare) && !string.IsNullOrEmpty(this.Text.Trim())) || !this._sVecheaValoare.Trim().Equals(this.Text.Trim()))
                {
                    if (this.AfterUpdate != null || this.CNPModificat != null)
                    {
                        if (this.AfterUpdate != null)
                        {
                            AfterUpdate(this, this._sProprietateCorespunzatoare, this.Text.Trim());
                        }

                        TesteazaMasca(true);
                    }
                }
            }
            catch (Exception ex)
            {
                Mesaj.Eroare(IHMUtile.GetFormParinte(this), ex.Message);
            }
            //IHMUtile.AfiseazaTastaturaWin8();
        }
Ejemplo n.º 13
0
 protected System.Windows.Forms.Form GetFormParinte()
 {
     return(IHMUtile.GetFormParinte(this));
 }
Ejemplo n.º 14
0
 private Form GetFormParinte()
 {
     return(IHMUtile.GetFormParinte(this));
 }