Example #1
0
        private void menuItem8_Click(object sender, System.EventArgs e)
        {
            AktarmalarForm af = new AktarmalarForm(config);

            af.Show();
        }
Example #2
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();
        }