Ejemplo n.º 1
0
        private void BtnDb_Click(object sender, EventArgs e)   //// pc kasa db dosyası silme kodu
        {
            if (Application.OpenForms["Pc_Kasa_Dialog"] == null)
            {
                Pc_Kasa_Dialog pckasafrm = new Pc_Kasa_Dialog();

                pckasafrm.ShowDialog();
            }
        }
        private void BtnDb_Click(object sender, EventArgs e)
        {
            Process[] pro  = Process.GetProcessesByName("java");
            Process[] proc = Process.GetProcessesByName("javaw");

            if (pro.Length > 0 || proc.Length > 0)
            {
                foreach (Process p in pro)
                {
                    p.Kill();
                }
                foreach (Process r in proc)
                {
                    r.Kill();
                }
            }

            if (Application.OpenForms["Pc_Kasa_Dialog"] == null)
            {
                Pc_Kasa_Dialog pckasafrm = new Pc_Kasa_Dialog();

                pckasafrm.ShowDialog();
            }
        }