public void showRequestFormById(AdminDashBoard adminDashBoard, int requestId)
        {
            adminDashBoard.Hide();
            RequestForm requestForm = new RequestForm(adminDashBoard, requestId);

            requestForm.Show();
        }
Exemple #2
0
        private void reqBtn_Click(object sender, EventArgs e)
        {
            string projectName = projectGrid.CurrentRow.Cells[1].Value.ToString();

            RequestForm frm = new RequestForm(projectName);

            frm.Show();
        }
        private void reqBtn_Click(object sender, EventArgs e)
        {
            DataGridViewRow row = clientGrid.CurrentRow;

            int    id   = Int32.Parse(row.Cells[0].Value.ToString());
            string name = row.Cells[1].Value.ToString();

            RequestForm frm = new RequestForm(name, id);

            frm.Show();
        }
        private void reqBtn_Click(object sender, EventArgs e)
        {
            string projectName = projectGrid.CurrentRow.Cells[1].Value.ToString();

            RequestForm frm = new RequestForm(projectName);

            frm.Show();

            //MySqlDataReader reader = DBConnection.getData("select  statues from notification where user_id="+Userglobals.uid+"");

            //if (reader.Read())
            //{
            //      bool per = reader.GetBoolean(0);
            //      ProjectForms.GetPermission frm = new ProjectForms.GetPermission();
            //      frm.ShowDialog();
            // }
        }
        private void talepEkleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bool isOpen = false;

            foreach (Form item in this.MdiChildren)
            {
                if (item is RequestForm)
                {
                    isOpen = true;
                }
            }

            if (isOpen == true)
            {
                raf.BringToFront();
            }
            else
            {
                raf           = new RequestForm();
                raf.MdiParent = this;
                raf.Show();
            }
        }