Пример #1
0
        private void lstRanks_SelectedIndexChanged(object sender, EventArgs e)
        {
            foreach (var f in _ranks) {
                if (f.Name != (string) lstRanks.SelectedItem)
                    continue;

                _currentRank = f;
                boxRName.Text = f.Name;
                boxRPrefix.Text = f.Prefix;
                boxRank.Text = f.Number;
                boxRSuffix.Text = f.Suffix;

                chkIsOp.Checked = f.Onclient == "100";
                break;
            }
        }
Пример #2
0
        private void lstRanks_SelectedIndexChanged(object sender, EventArgs e)
        {
            foreach (Rank f in ranks) {
                if (f.name == (string)lstRanks.SelectedItem) {
                    currentRank = f;
                    boxRName.Text = f.name;
                    boxRPrefix.Text = f.prefix;
                    boxRank.Text = f.number;
                    boxRSuffix.Text = f.suffix;

                    if (f.onclient == "100")
                        chkIsOp.Checked = true;
                    else
                        chkIsOp.Checked = false;
                    break;
                }
            }
        }