private void ViewQuoteButton_Click(object sender, EventArgs e) { ViewAllQuotes vaq = new ViewAllQuotes(); vaq.Show(); this.Hide(); }
private void viewQuotesButton_Click(object sender, EventArgs e) { ViewAllQuotes quotes = new ViewAllQuotes(); quotes.Tag = this; quotes.Show(this); Hide(); }
private void btnSearchQuotes_Click(object sender, EventArgs e) { DeskMaterial material; Enum.TryParse <DeskMaterial>(searchQuoteMaterialDropdown.SelectedValue.ToString(), out material); DataTable table = ViewAllQuotes.BasicTable(); foreach (DeskQuote quote in MainMenu.GetQuotes()) { if (quote.GetDesk().GetDeskMaterial() == material) { table.Rows.Add(ViewAllQuotes.CreateRow(quote, table)); } } dataGridSearchQuotes.DataSource = table; dataGridSearchQuotes.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing; dataGridSearchQuotes.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; }