private void MarkAllSelectedAsGroupedUnder(string newValue) { foreach (DataGridViewRow oRow in DataGridViewFromFile.SelectedRows) { ClassOneParamAssociation thisItem = oRow.DataBoundItem as ClassOneParamAssociation; thisItem.GroupParameterUnderAsLabelStr = newValue; } ContextMenuStripGroupUnder.Close(); DataGridViewFromFile.Refresh(); JerkHub.Flags.MarkFileToBeSaved(); }
private void MarkAllInstance(bool newValue) { foreach (DataGridViewRow oRow in DataGridViewFromFile.SelectedRows) { ClassOneParamAssociation thisItem = oRow.DataBoundItem as ClassOneParamAssociation; if (thisItem != null) { thisItem.IsInstance = newValue; } } JerkHub.Flags.MarkFileToBeSaved(); DataGridViewFromFile.Refresh(); }
public override void build_FormData() { if (this.DataGridViewFromFile != null) { this.DataGridViewFromFile.SelectionMode = DataGridViewSelectionMode.FullRowSelect; // JerkHub.Ptr2Debug.addToDebug("s) DataGridViewFromFile - bbbb") DataGridViewFromFile.AutoGenerateColumns = false; if (ParentFormParameterJerk.FirstTime) { DataGridViewComboBoxColumn columnToAdd = JerkHub.ParameterGroupParameterUnderManagerListObj.CreateComboBoxWithEnums(); columnToAdd.ContextMenuStrip = ContextMenuStripGroupUnder; DataGridViewFromFile.Columns.Add(columnToAdd); DataGridViewFromFile.DataSource = JerkHub.AllAssociationArrayList; LabelAvailableParams.Text = ("Available Parameters (" + (JerkHub.AllAssociationArrayList.Count.ToString() + ")")); JerkHub.Ptr2Debug.AddToDebug("e) DataGridViewFromFile - datasource"); DataGridViewFromFile.Refresh(); // create the column JerkHub.Ptr2Debug.AddToDebug("s) DataGridViewFromFile - add column"); JerkHub.Ptr2Debug.AddToDebug("s) DataGridViewFromFile - groupParameterUnderlabelList"); foreach (string oneItem in ParentFormParameterJerk.JerkHub.ParameterGroupParameterUnderManagerListObj.GroupParameterUnderlabelList) { ToolStripComboBox1.Items.Add(oneItem); } JerkHub.Ptr2Debug.AddToDebug("e) DataGridViewFromFile - groupParameterUnderlabelList"); // ToolStripComboBox1. } } }