public void GetDecorPatina() { if (DecorCatalog.ItemColorsBindingSource.Count > 0) { DecorCatalog.FilterPatina(((DataRowView)DecorCatalog.DecorItemBindingSource.Current)["Name"].ToString(), Convert.ToInt32(((DataRowView)DecorCatalog.ItemColorsBindingSource.Current)["ColorID"])); } }
public void GetDecorPatina() { if (DecorCatalog.ItemColorsBindingSource.Count > 0) { DecorCatalog.FilterPatina(((DataRowView)DecorCatalog.DecorItemBindingSource.Current)["Name"].ToString(), Convert.ToInt32(((DataRowView)DecorCatalog.ItemColorsBindingSource.Current)["ColorID"])); } //if (DecorCatalog.ItemPatinaBindingSource.Count == 1) // if (((DataRowView)DecorCatalog.ItemPatinaBindingSource.Current)["PatinaID"].ToString() == "0") // { // DecorCatalogTableLayout.ColumnStyles[4].Width = 0; // DecorColorsPanel.Visible = false; // //ColorsDataGrid.Visible = false; // ColorLabel.Visible = false; // return; // } //PatinaDataGrid.Columns["PatinaID"].Visible = false; //DecorCatalogTableLayout.ColumnStyles[4].Width = 350; //DecorColorsPanel.Visible = true; ////ColorsDataGrid.Visible = true; //ColorLabel.Visible = true; }