Example #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            if (!File.Exists("conf.base"))
            {
                new Konfugurasyon().ShowDialog();
            }
            else if (File.Exists("conf.base") && File.ReadAllText("conf.base").Length == 0)
            {
                Konfugurasyon conf = new Konfugurasyon();
                conf.ShowDialog();
            }
            else
            {
                konfugre = true;
            }

            if (konfugre == false)
            {
                MessageBox.Show("Yapılandırma ayarları yapılmadı.", "config"); Environment.Exit(0);
            }
            else
            {
                Oku();
            }

            PC_UNIQUE_ID = UNIQUE_ID().Replace(" ", "");
            Kilit klt = new Kilit(PC_UNIQUE_ID);

            klt.Show();
            Baglanti_Kur();
        }
Example #2
0
        private void ayarlarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string sifre = Microsoft.VisualBasic.Interaction.InputBox("", "Admin Şifresi", "", -1, -1);

            if (sifre == ADMINISTARTION)
            {
                Konfugurasyon conf = new Konfugurasyon();
                conf.Show();
            }
        }