示例#1
0
        private void exportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmExport frm = new frmExport();

            frm.Show();
            this.Hide();
        }
        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;
        }
        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();
 }
 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;
 }