示例#1
0
 public ManageAuthors(ClientController ctr, ProposalDTO prop, MyProposals win)
 {
     this.ctr    = ctr;
     this.prop   = prop;
     this.window = win;
     InitializeComponent();
 }
示例#2
0
 public UpdateProposal(ClientController ctrl, ProposalDTO prop, MyProposals win)
 {
     this.ctrl     = ctrl;
     this.proposal = prop;
     this.window   = win;
     InitializeComponent();
 }
示例#3
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();
        }
示例#4
0
        //lucrarile mele
        private void buttonMyProposals_Click(object sender, EventArgs e)
        {
            var window = new MyProposals(ctrl, user, OpenedFrom.UserWindow, null);

            window.Show();
        }