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