コード例 #1
0
        private void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Tyontekija olio = (Tyontekija)listBox.SelectedItem;

            txtEn.Text    = olio.Fistname;
            txtSn.Text    = olio.Lastname;
            txtID.Text    = olio.TTID.ToString();
            txtTitle.Text = olio.Nimike;
            txtP.Text     = olio.LaskePalkka().ToString();
        }
コード例 #2
0
        private void listBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Tyontekija olio = (Tyontekija)listBox.SelectedItem;

            txtEn.Text    = olio.Fistname;
            txtSn.Text    = olio.Lastname;
            txtID.Text    = olio.TTID.ToString();
            txtTitle.Text = olio.Nimike;
            txtP.Text     = olio.LaskePalkka().ToString();
            if (olio.GetType() == typeof(OsaAikainen))
            {
                rdOSA.IsChecked = true;
            }
            else
            {
                rdVAk.IsChecked = true;
            }
        }