Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            FormBorderStyle = FormBorderStyle.None;
            WindowState     = FormWindowState.Maximized;
            TopMost         = false;
            for (int i = 1; i < 7; i++)
            {
                if (i != 2)
                {
                    expendituredb cdb = new expendituredb();
                    cdb.get(i);
                    chart1.Series["Expenditures"].Points.AddXY(cdb.name, cdb.amount);
                }
            }


            for (int i = 1; i <= 7; i++)
            {
                if (i != 3)
                {
                    raw_materialdb idb = new raw_materialdb();
                    idb.get(i);
                    chart2.Series["Material"].Points.AddXY(idb.name, idb.quantity);
                }
            }
        }
Beispiel #2
0
        private void dataGridView1_MouseClick(object sender, MouseEventArgs e)
        {
            string        id  = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            expendituredb idb = new expendituredb();

            idb.get(Int32.Parse(id));
            textBox1.Text        = idb.name;
            textBox2.Text        = idb.amount;
            dateTimePicker1.Text = idb.date;
            textBox4.Text        = idb.expentidure;
        }