コード例 #1
0
        private void importToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmImport frm = new frmImport();

            frm.Show();
            this.Hide();
        }
コード例 #2
0
        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);
        }
コード例 #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);
        }
コード例 #4
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);
        }
コード例 #5
0
 private void importToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frmImport frm = new frmImport();
     frm.Show();
     this.Hide();
 }
コード例 #6
0
 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);
 }