public MacroCommandRow(IMacroCommand macro) { if (macro == null) { throw new ArgumentNullException("macro"); } this.macro = macro; Editable = false; Enabled = true; Cell cell = new Cell(macro.ToString()); Cells.Add(cell); macro.CommandChanged += new EventHandler(macro_CommandChanged); }
public MacroCommandRow(IMacroCommand macro) { if (macro == null) throw new ArgumentNullException("macro"); this.macro = macro; Editable = false; Enabled = true; Cell cell = new Cell(macro.ToString()); Cells.Add(cell); macro.CommandChanged += new EventHandler(macro_CommandChanged); }
void macro_CommandChanged(object sender, EventArgs e) { Cells[0].Text = macro.ToString(); }