Пример #1
0
        void kategoriTanimlaButton_ItemClick(object sender, ItemClickEventArgs e)
        {
            xFrmKategori frm = new xFrmKategori();

            frm.Text      = L.KategoriTanimla;
            frm.MdiParent = this;
            Commons.IsOpenForm(frm);
        }
Пример #2
0
 void formuYenileButton_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         Commons.Loading(this.ActiveMdiChild.Text + " ekranındaki bilgiler güncelleniyor. ..");
         if (this.ActiveMdiChild is xFrmUrunRapor)
         {
             xFrmUrunRapor frm = this.ActiveMdiChild as xFrmUrunRapor;
             frm.GetUrunRapor();
         }
         else if (this.ActiveMdiChild is xFrmStok)
         {
             xFrmStok frm = this.ActiveMdiChild as xFrmStok;
             frm.GetKategoriler();
             frm.GetUrunler();
             frm.GetFirmalar();
             frm.GetData();
         }
         else if (this.ActiveMdiChild is xFrmTeklif)
         {
             xFrmTeklif frm = this.ActiveMdiChild as xFrmTeklif;
             frm.GetDefault();
             frm.GetStokListe();
             frm.GetTeklif();
         }
         else if (this.ActiveMdiChild is xFrmTeklifDetay)
         {
             xFrmTeklifDetay frm = this.ActiveMdiChild as xFrmTeklifDetay;
             frm.GetTeklifler();
         }
         else if (this.ActiveMdiChild is xFrmUrun)
         {
             xFrmUrun frm = this.ActiveMdiChild as xFrmUrun;
             frm.GetKategoriler();
             frm.GetData();
         }
         else if (this.ActiveMdiChild is xFrmKategori)
         {
             xFrmKategori frm = this.ActiveMdiChild as xFrmKategori;
             frm.GetData();
         }
         else if (this.ActiveMdiChild is xFrmFirma)
         {
             xFrmFirma frm = this.ActiveMdiChild as xFrmFirma;
             frm.GetData();
         }
         else if (this.ActiveMdiChild is xFrmDoviz)
         {
             xFrmDoviz frm = this.ActiveMdiChild as xFrmDoviz;
             frm.GetData();
         }
     }
     catch (Exception ex)
     {
         Commons.Status(Commons.GetErrorCode("FMN", 6) + ex.Message);
     }
     finally
     {
         Commons.Status(this.ActiveMdiChild.Text + " ekranındaki bilgiler güncellendi!");
         Commons.Loaded();
     }
 }