private void allOFFToolStripMenuItem_Click(object sender, EventArgs e) { LEDs1.all(false); LEDs2.all(false); LEDs3.all(false); LEDs4.all(false); LEDs5.all(false); LEDs6.all(false); LEDs7.all(false); LEDs8.all(false); }
private void invertToolStripMenuItem_Click(object sender, EventArgs e) { LEDs1.invert(); LEDs2.invert(); LEDs3.invert(); LEDs4.invert(); LEDs5.invert(); LEDs6.invert(); LEDs7.invert(); LEDs8.invert(); }
/** * Copy matrix assignment into clipboard memory */ private void copyDataToolStripMenuItem_Click(object sender, EventArgs e) { string data = @" int j = 0; int data[8]; "; string prefix = "data[++j]=\""; string postfix = "\";"; data += "\r\n" + prefix + LEDs1.value() + postfix; data += "\r\n" + prefix + LEDs2.value() + postfix; data += "\r\n" + prefix + LEDs3.value() + postfix; data += "\r\n" + prefix + LEDs4.value() + postfix; data += "\r\n" + prefix + LEDs5.value() + postfix; data += "\r\n" + prefix + LEDs6.value() + postfix; data += "\r\n" + prefix + LEDs7.value() + postfix; data += "\r\n" + prefix + LEDs8.value() + postfix; Clipboard.SetText(data); }