示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            AracYuklemeEkrani.markalist                = db.TBLMARKA.OrderBy(x => x.MARKANAME).ToList();
            KullaniciveFirmaBilgileri.FirmaAdi         = "TEKOTO COMPUTEST";
            KullaniciveFirmaBilgileri.FirmaNo          = "580671";
            KullaniciveFirmaBilgileri.KullaniciAdSoyad = "CENK SÖNMEZ";
            KullaniciveFirmaBilgileri.Yetki            = true;

            tmrDeger.Enabled           = true;
            pbmenuyarlarok.Visible     = false;
            pbmenusatisraporok.Visible = false;
            pbmenuraporok.Visible      = false;
            pbanasayfaok.Visible       = true;
            pbyeniprojeok.Visible      = false;

            FullProje newForm = new FullProje();

            newForm.TopLevel = false;
            pnlgetgorm.Controls.Add(newForm);
            newForm.Show();
            newForm.Dock = DockStyle.Top;
            newForm.BringToFront();

            label8.Text       = KullaniciveFirmaBilgileri.KullaniciAdSoyad;
            tmrDeger.Interval = 1000;
        }
示例#2
0
        private void YeniProjeBaslat()
        {
            try
            {
                foreach (Form item in Application.OpenForms)
                {
                    if (item.Text != "Araç Boya Rapor ve Müşteri Takip")
                    {
                        this.BeginInvoke(new MethodInvoker(((Form)item).Dispose));
                        GC.Collect();
                        GC.WaitForPendingFinalizers();
                    }
                }
                if (FullProje.cam != null)
                {
                    FullProje.cam.Stop();
                }


                pbmenuyarlarok.Visible     = false;
                pbmenusatisraporok.Visible = false;
                pbmenuraporok.Visible      = false;
                pbanasayfaok.Visible       = false;
                pbyeniprojeok.Visible      = true;
                pnlgetgorm.Controls.Clear();
                FullProje newForm = new FullProje();
                newForm.TopLevel = false;
                pnlgetgorm.Controls.Add(newForm);
                newForm.Show();
                newForm.Dock = DockStyle.Top;
                newForm.BringToFront();
                GC.Collect();
                GC.WaitForPendingFinalizers();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "UYARI", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }