Ejemplo n.º 1
0
        private void buttonSubmittedProposals_Click(object sender, EventArgs e)
        {
            if (GridViewConferinte.SelectedRows.Count == 0)
            {
                MessageBox.Show("Please select a conference!");
                return;
            }

            var selectedRow = GridViewConferinte.SelectedRows[0];
            var conf        = ctrl.FindConference(selectedRow.Cells[2].Value.ToString(), selectedRow.Cells[3].Value.ToString());

            if (DateTime.Parse(conf.StartDate).CompareTo(DateTime.Now) <= 0)
            {
                MessageBox.Show("The conference has already started");
                return;
            }
            MyProposals window = new MyProposals(this.ctrl, this.user, OpenedFrom.AdminWindow, conf);

            window.Show();
        }
Ejemplo n.º 2
0
        //lucrarile mele
        private void buttonMyProposals_Click(object sender, EventArgs e)
        {
            var window = new MyProposals(ctrl, user, OpenedFrom.UserWindow, null);

            window.Show();
        }