Ejemplo n.º 1
0
 void ChectConfig()
 {
     if (!config.IsConfigured)
     {
         cf.ShowDialog();
     }
     else
     {
         config.SetProertyes();
     }
 }
Ejemplo n.º 2
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            DateTime dt     = DateTime.Now;
            int      toplam = dt.Year + dt.Day + dt.Month + dt.Hour;
            string   sifre  = toplam.ToString() + "00";

            if (textBox1.Text == sifre)
            {
                this.Enabled = false;
                ConfigurationForm cf = new ConfigurationForm();
                cf.ShowDialog();
                this.Enabled = true;
            }
            else
            {
                MessageBox.Show("Hatalý þifre!");
                this.Close();
            }
        }
Ejemplo n.º 3
0
        public Form1()
        {
            cf = new ConfigurationForm();

            if (!config.IsConfigured)
            {
                this.Enabled = false;
                cf.ShowDialog();
                this.Enabled = true;
            }
            config.SetProertyes();

            bool aktarma = true;


            if (!File.Exists("ankara.sdf"))
            {
                DB d = new DB(config);
                aktarma = false;
            }



            Ceconn = config.CeConn;
            Ceconn.Open();


            if (!aktarma)
            {
                this.Enabled = false;
                AktarmalarForm af = new AktarmalarForm(config);
                af.ShowDialog();
                this.Enabled = true;
            }



            /*
             * cf = new ConfigurationForm();
             *
             *
             * if(!config.IsDbExist)
             * {
             *      this.Enabled=false;
             *
             *
             *      this.Enabled=true;
             * }
             *
             *
             *
             *
             * this.Enabled=false;
             * if(!config.IsConfigured)
             * {
             *
             *      cf.ShowDialog();
             *
             * }
             * else
             * {
             *      config.SetProertyes();
             * }
             *
             * this.Enabled=true;
             */

            InitializeComponent();
        }