Example #1
0
        private void importToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmImport frm = new frmImport();

            frm.Show();
            this.Hide();
        }
        private void btnSearch_Click(object sender, EventArgs e)
        {
            frmImport frmThis = new frmImport();

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

            frm.ShowDialog(ref txtTransaction_code);
        }
Example #3
0
        public frmImSearch(ref frmImport 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);
        }
        public frmImSearch(ref frmImport 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);
        }
Example #5
0
 private void importToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmImport frm = new frmImport();
     frm.Show();
     this.Hide();
 }
 private void btnSearch_Click(object sender, EventArgs e)
 {
     frmImport frmThis = new frmImport();
     frmThis = this;
     this.Hide();
     frmImSearch frm = new frmImSearch(ref frmThis);
     frm.ShowDialog(ref txtTransaction_code);
 }