Пример #1
0
        private void exportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmExport frm = new frmExport();

            frm.Show();
            this.Hide();
        }
Пример #2
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            frmExport frmThis = new frmExport();

            frmThis = this;
            this.Hide();
            frmExSearch frm = new frmExSearch(ref frmThis);

            frm.ShowDialog(ref txtTransaction_code);
            FormEvents = 6;
        }
Пример #3
0
        public frmExSearch(ref frmExport frmHandel)
        {
            InitializeComponent();

            dtpTransaction_fromdate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            dtpTransaction_todate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1);

            refForm = frmHandel;

            this.btnSearch.Click -= new System.EventHandler(this.btnSearch_Click);
            this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);

            this.grdView.MouseDoubleClick -= new System.Windows.Forms.MouseEventHandler(this.grdView_MouseDoubleClick);
            this.grdView.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.grdView_MouseDoubleClick);
        }
Пример #4
0
        public frmExSearch(ref frmExport frmHandel)
        {
            InitializeComponent();

            dtpTransaction_fromdate.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
            dtpTransaction_todate.Value   = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1).AddMonths(1).AddDays(-1);

            refForm = frmHandel;

            this.btnSearch.Click -= new System.EventHandler(this.btnSearch_Click);
            this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);

            this.grdView.MouseDoubleClick -= new System.Windows.Forms.MouseEventHandler(this.grdView_MouseDoubleClick);
            this.grdView.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.grdView_MouseDoubleClick);
        }
Пример #5
0
 private void exportToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmExport frm = new frmExport();
     frm.Show();
     this.Hide();
 }
Пример #6
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     frmExport frmThis = new frmExport();
     frmThis = this;
     this.Hide();
     frmExSearch frm = new frmExSearch(ref frmThis);
     frm.ShowDialog(ref txtTransaction_code);
     FormEvents = 6;
 }