示例#1
0
        public void save(PrinterConnection conn)
        {
            if (!changed)
            {
                return;           // nothing changed
            }
            string cmd = "M206 T" + type + " P" + position + " ";

            if (type == 3)
            {
                cmd += "X" + val;
            }
            else
            {
                cmd += "S" + val;
            }
            conn.injectManualCommand(cmd);
            changed = false;
        }
示例#2
0
 public Printjob(PrinterConnection c)
 {
     con = c;
 }
示例#3
0
 public EEPROMStorage(PrinterConnection conn)
 {
     this.conn = conn;
     list      = new Dictionary <int, EEPROMParameter>();
 }
示例#4
0
 public CommandExecutioner(PrinterConnection conn)
 {
     this.conn = conn;
 }
示例#5
0
 public EEPROMMarlinStorage(PrinterConnection conn)
 {
     this.conn = conn;
 }