Exemple #1
0
        private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox      cb        = (ComboBox)sender;
            Base_Form     baseForm  = new Base_Form();
            BookLoad_Form bookLoad2 = new BookLoad_Form();

            if (cb.SelectedIndex == 0)
            {
                UserControl7 userControl = new UserControl7();
                panel2.Controls.Add(userControl);
                comboBox3.Visible = false;
                dgv.DataSource    = userControl.dataGridView1.DataSource;
                DataTable dt = GetDataTableFromDGV(dgv);
                ds.Tables.Add(dt);
                ds.WriteXml(File.OpenWrite(@"D:\eclipse\git\C-Sharp_2020_2\XMLFile1.xml"));
                MessageBox.Show("데이터를 XML파일로 저장했습니다!!!!");
            }
            else if (cb.SelectedIndex == 1)
            {
                UserControl7 userControl = new UserControl7();
                panel2.Controls.Add(userControl);
                comboBox3.Visible = false;
                bookLoad2.ShowDialog();
                bookLoad2.Location = new Point(200, 200);
            }
        }
Exemple #2
0
        private void button13_Click(object sender, EventArgs e)
        {
            UserControl7 userControl = new UserControl7();

            panel2.Controls.Add(userControl);
            comboBox1.DroppedDown = true;
        }
Exemple #3
0
        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox      cb        = (ComboBox)sender;
            Base_Form     baseForm  = new Base_Form();
            BookLoad_Form bookLoad1 = new BookLoad_Form();
            BookLoad_Form bookLoad3 = new BookLoad_Form();

            if (cb.SelectedIndex == 0)
            {
                UserControl7 userControl = new UserControl7();
                panel2.Controls.Add(userControl);
                comboBox2.Visible = false;
                bookLoad1.ShowDialog();
                bookLoad1.Location = new Point(200, 200);
            }
            else if (cb.SelectedIndex == 1)
            {
                UserControl7 userControl = new UserControl7();
                panel2.Controls.Add(userControl);
                comboBox2.Visible = false;
                ds.ReadXml(@"D:\eclipse\git\C-Sharp_2020_2\XMLFile1.xml");
                dgv.DataSource = ds.Tables[0];
                userControl.dataLoad(dgv);
                MessageBox.Show("XML파일의 데이터를 가져왔습니다!!!!");
            }
            else if (cb.SelectedIndex == 2)
            {
                UserControl7 userControl = new UserControl7();
                panel2.Controls.Add(userControl);
                comboBox2.Visible = false;
                bookLoad3.ShowDialog();
                bookLoad3.Location = new Point(200, 200);
            }
        }
Exemple #4
0
        private void button16_Click(object sender, EventArgs e)
        {
            UserControl7 userControl = new UserControl7();

            panel2.Controls.Add(userControl);
            SignPrint signPrint = new SignPrint();

            signPrint.Show();
        }
Exemple #5
0
        private void button15_Click(object sender, EventArgs e)
        {
            UserControl7 userControl = new UserControl7();

            panel2.Controls.Add(userControl);
            BarcodePrint barcodePrint = new BarcodePrint();

            barcodePrint.Show();
        }
Exemple #6
0
        private void button14_Click(object sender, EventArgs e)
        {
            UserControl7 userControl = new UserControl7();

            panel2.Controls.Add(userControl);
            BookInformation bookInformation = new BookInformation();

            bookInformation.Show();
        }
Exemple #7
0
        private void button12_Click(object sender, EventArgs e)
        {
            UserControl7 userControl = new UserControl7();

            panel2.Controls.Add(userControl);
            BookSearch bookSearchForm = new BookSearch();

            bookSearchForm.Show();
        }
Exemple #8
0
        private void button11_Click(object sender, EventArgs e)
        {
            UserControl7 userControl = new UserControl7();

            panel2.Controls.Add(userControl);
            Check_Form form = new Check_Form();

            form.ShowDialog();
        }
Exemple #9
0
        private void comboBox4_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox            cb       = (ComboBox)sender;
            Base_Form           baseForm = new Base_Form();
            ISBN_Redundant_Form isbn     = new ISBN_Redundant_Form();
            Id_Redundant_Form   id       = new Id_Redundant_Form();

            if (cb.SelectedIndex == 0)
            {
                UserControl7 userControl = new UserControl7();
                panel2.Controls.Add(userControl);
                comboBox4.Visible = false;
                isbn.ShowDialog();
                isbn.Location = new Point(200, 200);
            }
            if (cb.SelectedIndex == 1)
            {
                UserControl7 userControl = new UserControl7();
                panel2.Controls.Add(userControl);
                comboBox4.Visible = false;
                id.ShowDialog();
                id.Location = new Point(200, 200);
            }
        }
Exemple #10
0
        private void button7_Click(object sender, EventArgs e)
        {
            UserControl7 userControl = new UserControl7();

            panel2.Controls.Add(userControl);
        }