예제 #1
0
        private void btnAcceptToHistory_Click(object sender, EventArgs e)
        {
            frmHistoryNotes frm = new frmHistoryNotes(this.localizer);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                this.requirement.AddHistoryItem(
                    DateTime.Now,
                    HistoryItem.HistoryType.Acceptance,
                    cmbAcceptanceStatus.SelectedIndex,
                    frm.tbNotes.Text.Replace("\r\n", " "));
                this.UpdateHistoryView();
                this.modified = true;
            }
            frm.Dispose();
        }
예제 #2
0
		private void btnImplToHistory_Click(object sender, System.EventArgs e)
		{
			frmHistoryNotes frm = new frmHistoryNotes(this.localizer);

			if(frm.ShowDialog() == DialogResult.OK)
			{
				UseCase useCase = (UseCase)this.currentElement;
				useCase.AddHistoryItem(
					DateTime.Now,
					HistoryItem.HistoryType.Implementation,
					cmbImplementation.SelectedIndex,
					frm.tbNotes.Text.Replace("\r\n"," "));
				this.UpdateView();
				tabUseCase.SelectedTab = pgDetails;
				this.SetModified(true);
			}
			frm.Dispose();		
		}
        private void btnStatusToHistory_Click(object sender, EventArgs e)
        {
            frmHistoryNotes frm = new frmHistoryNotes(this.localizer);

            if(frm.ShowDialog() == DialogResult.OK)
            {
                this.requirement.AddHistoryItem(
                    DateTime.Now,
                    HistoryItem.HistoryType.Status,
                    cmbStatus.SelectedIndex,
                    frm.tbNotes.Text.Replace("\r\n", " "));
                this.UpdateHistoryView();
                this.modified = true;
            }
            frm.Dispose();
        }