Subversion Repositories group.electronics

Rev

Rev 155 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 155 Rev 157
Line 123... Line 123...
123
            navcomm.setFreq(3, ref bytes);
123
            navcomm.setFreq(3, ref bytes);
124
            this.UpdateDisplay(1);
124
            this.UpdateDisplay(1);
125
        }
125
        }
126
 
126
 
127
        private void cmdClose_Click(object sender, EventArgs e) {
127
        private void cmdClose_Click(object sender, EventArgs e) {
-
 
128
            if (this.navcomm != null && this.navcomm.isOpen()) {
-
 
129
                navcomm.resetAllRotary();
-
 
130
                navcomm.blankDisplay();
-
 
131
            }
128
            this.Close();
132
            this.Close();
129
        }
133
        }
130
 
134
 
131
        private void cmdUpdate_Click(object sender, EventArgs e) {
135
        private void cmdUpdate_Click(object sender, EventArgs e) {
132
            this.UpdateDevice();
136
            this.UpdateDevice();