示例#1
0
            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);
            }
示例#2
0
            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);
            }
示例#3
0
 void macro_CommandChanged(object sender, EventArgs e)
 {
     Cells[0].Text = macro.ToString();
 }