private void button_Remove_Click(object sender, EventArgs e) { if (this.Item.ItemID == -1) { MessageBox.Show(IOQMessages.saveFileBeforeAttachment); return; } Attachment a = (((Attachment)this.listBox_Attach.SelectedItem)); DialogResult rs = MessageBox.Show("Are you sure you want to delete the file " + a.Name + " ?", "Delete File?", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation); if (rs == DialogResult.Yes) { ScrumQueueLoading dg = new ScrumQueueLoading(); dg.Show(); Attachment.DeleteAttachments(a); dg.Close(); } else { return; } this.LoadAttachement(); }
private void LoadData() { ScrumQueueLoading lg = new ScrumQueueLoading(); lg.Show(); this.listBox_StatusList.DataSource = BussinessLogic.StatusType.GetAllStatusTypes(); lg.Close(); }
private void LoadData() { ScrumQueueLoading lg = new ScrumQueueLoading(); lg.Show(); this.listBox_Users.DataSource = BussinessLogic.Users.GetAllUsers(); lg.Close(); }
private void button_Add_Click(object sender, EventArgs e) { if (this.Item.ItemID == -1) { MessageBox.Show(IOQMessages.saveFileBeforeAttachment); return; } string[] fileList = CommonLogic.Common.BrowseFile(this.openFileDialog_Browse); if (fileList != null) { foreach (string x in fileList) { ScrumQueueLoading dg = new ScrumQueueLoading(); dg.Show(); Attachment a = new Attachment(-1, this.item.ItemID, new System.IO.FileInfo(x), CommonLogic.Common.GetBytesFromFile(x)); List <Attachment> la = new List <Attachment>(); la.Add(a); Attachment.SaveAttachments(la); dg.Close(); } } this.LoadAttachement(); }
private void LoadData() { ScrumQueueLoading lg = new ScrumQueueLoading(); lg.Show(); this.listBox_StatusList.DataSource = BussinessLogic.StatusType.GetAllStatusTypes(); lg.Close(); }
private void LoadData() { ScrumQueueLoading lg = new ScrumQueueLoading(); lg.Show(); this.listBox_Users.DataSource = BussinessLogic.Users.GetAllUsers(); lg.Close(); }
private void button_Remove_Click(object sender, EventArgs e) { if (this.Item.ItemID == -1) { MessageBox.Show(IOQMessages.saveFileBeforeAttachment); return; } Attachment a = (((Attachment)this.listBox_Attach.SelectedItem)); DialogResult rs = MessageBox.Show("Are you sure you want to delete the file " + a.Name + " ?", "Delete File?", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation); if (rs == DialogResult.Yes) { ScrumQueueLoading dg = new ScrumQueueLoading(); dg.Show(); Attachment.DeleteAttachments(a); dg.Close(); } else return; this.LoadAttachement(); }
private void button_Add_Click(object sender, EventArgs e) { if (this.Item.ItemID == -1) { MessageBox.Show(IOQMessages.saveFileBeforeAttachment); return; } string[] fileList = CommonLogic.Common.BrowseFile(this.openFileDialog_Browse); if (fileList != null) { foreach (string x in fileList) { ScrumQueueLoading dg = new ScrumQueueLoading(); dg.Show(); Attachment a = new Attachment(-1, this.item.ItemID, new System.IO.FileInfo(x), CommonLogic.Common.GetBytesFromFile(x)); List<Attachment> la = new List<Attachment>(); la.Add(a); Attachment.SaveAttachments(la); dg.Close(); } } this.LoadAttachement(); }
// this will display the results based on the selections private void SearchItemsBasedOnStatusID() { ScrumQueueLoading dg = new ScrumQueueLoading(); dg.Show(); int selectedStatusID = ((BussinessLogic.StatusType)this.comboBox_Filter.SelectedItem).StatusID; this.ItemList1 = BussinessLogic.Item.GetAllItemsBasedOnStatus(selectedStatusID, this.OpenedProject.ProjectID); this.dataGridView_Items.DataSource = this.ItemList1; this.dataGridView_Items.Columns["ItemID"].HeaderCell.Value = "ID"; this.dataGridView_Items.Columns["CreatedDate"].HeaderCell.Value = "Created On"; this.dataGridView_Items.Columns["CreatedByID"].Visible = false; this.dataGridView_Items.Columns["CreatedByName"].HeaderCell.Value = "Created By"; this.dataGridView_Items.Columns["EditedDate"].HeaderCell.Value = "Edited On"; this.dataGridView_Items.Columns["EditedByID"].Visible = false; this.dataGridView_Items.Columns["EditedByName"].HeaderCell.Value = "Edited By"; this.dataGridView_Items.Columns["StatusID"].Visible = false; this.dataGridView_Items.Columns["StatusName"].HeaderCell.Value = "Status"; this.dataGridView_Items.Columns["ProjectID"].Visible = false; this.dataGridView_Items.Columns["ItemID"].Width = 50; dg.Close(); }
// open existing project private void OpenProject() { ScrumQueueLoading dg = new ScrumQueueLoading(); dg.Show(); UILogic.UIProjectSearch p = new UIProjectSearch(); p.Init(this); dg.Close(); p.ShowDialog(); }
private void filterResultSetBasedOnTextEntered() { ScrumQueueLoading ld = new ScrumQueueLoading(); ld.Show(); int rcount = this.dataGridView_Items.Rows.Count; int ccount = this.dataGridView_Items.Columns.Count; for (int j = 0; j < rcount; j++) { for (int i = 0; i < ccount; i++) { string gridString = this.dataGridView_Items[i, j].Value.ToString().ToLower(); string enteredString = this.textBox_KeyWords.Text.ToLower(); if (gridString.Contains(enteredString) && enteredString.Trim().Length > 0) { this.dataGridView_Items.CurrentCell = null; this.dataGridView_Items.Rows[j].Visible = true; break; } else if (!(gridString.Contains(enteredString)) && enteredString.Trim().Length > 0) { this.dataGridView_Items.CurrentCell = null; this.dataGridView_Items.Rows[j].Visible = false; } else { this.dataGridView_Items.CurrentCell = null; this.dataGridView_Items.Rows[j].Visible = true; } } } ld.Close(); }