Example #1
0
        private void bt_Goods_Click(object sender, EventArgs e)
        {
            this.Hide();
            GoodsForm goodsForm = new GoodsForm();

            goodsForm.ShowDialog();
            this.Show();
        }
Example #2
0
        private void bt_Save_Click(object sender, EventArgs e)
        {
            manufacturerBindingSource.EndEdit();
            tableAdapterManager.UpdateAll(courseWorkFor7LabDataSet);
            this.Dispose();
            GoodsForm goodsForm = new GoodsForm();

            goodsForm.ShowDialog();
        }
Example #3
0
        private void Form5_Load(object sender, EventArgs e)
        {
            // TODO: данная строка кода позволяет загрузить данные в таблицу "kafedraDBDataSet.employees". При необходимости она может быть перемещена или удалена.
            this.view_2TableAdapter1.Fill(this.courseWorkFor7LabDataSet1.View_2);
            string strFIO;
            string strFIO2;

            GoodsForm main = this.Owner as GoodsForm;

            if (main != null)
            {
                //strFIO=main.txtText.Text;
                strFIO  = main.comboBox1.Text;
                strFIO2 = main.good_nameTextBox.Text;

                ReportParameter pFIO  = new ReportParameter("pFIO", strFIO);
                ReportParameter pFIO2 = new ReportParameter("pFIO2", strFIO2);

                reportViewer1.LocalReport.SetParameters(new ReportParameter[] { pFIO, pFIO2 });
                this.reportViewer1.RefreshReport();
            }
        }