예제 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            FileRW file = new FileRW("DB_Address.MEG");

            if (file.ReadFile() != "" & file.Exist())
            {
                AccessDatabase db = new AccessDatabase(file.ReadFile());
                if (db.Exist())
                {
                    MainPage form = new MainPage();
                    form.ShowDialog();
                    this.Close();
                }
            }
        }
예제 #2
0
        private void nextBt_Click(object sender, EventArgs e)
        {
            AccessDatabase access = new AccessDatabase(AddressTx.Text);

            if (access.Exist())
            {
                FileRW fileRw = new FileRW("DB_Address.MEG");
                fileRw.WriteOnFile(AddressTx.Text);
                MainPage form = new MainPage();
                this.Hide();
                form.ShowDialog();
                this.Close();
            }
            else
            {
                WrongAddressLb.Visible = true;
            }
        }