예제 #1
0
        private void btnadd_Click(object sender, EventArgs e)
        {
            frmHozoorInp fgd = new frmHozoorInp();

            fgd.cur_date = this.cur_date;
            fgd.ShowDialog();

            if (btnfilter.Enabled == true)
            {
                btnfilter.PerformClick();
            }
            else
            {
                hozoorclass pm = new hozoorclass();
                DataTable   dt = new DataTable();
                dt = pm.Select();
                grdDataViewer.DataSource = dt;
            }
        }
예제 #2
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            bool IsOpen = false;

            foreach (Form f in Application.OpenForms)
            {
                if (f.GetType() == typeof(frmHozoorInp))
                {
                    IsOpen = true;
                    f.Focus();
                    break;
                }
            }

            if (IsOpen == false)
            {
                frmHozoorInp fad = new frmHozoorInp();
                fad.MdiParent = this;
                fad.Show();
            }
        }