Beispiel #1
0
        private void DecimalConvert_Click(object sender, RoutedEventArgs e)
        {
            int    o1 = Convert.ToInt16(DecimalDecimal.Text);
            string s1 = DecimalDecimal.Text;

            Binary.ToBinary(o1);
            DecimalBinary.Text = Binary.returnBinary;
            Octal.ToOctal(o1);
            DecimalOctal.Text = Octal.returnOctal;
            Hexadecimal.ToHexadecimal(o1);
            DecimalHexadecimal.Text = Hexadecimal.returnHex;
        }
Beispiel #2
0
        private void BinaryConvert_Click(object sender, RoutedEventArgs e)
        {
            string o1 = Convert.ToString(BinaryBinary.Text);

            Decimal.BinaryToDecimal(o1);
            int b1 = Convert.ToInt32(Decimal.returnDecimal);

            Octal.ToOctal(b1);
            BinaryOctal.Text = Octal.returnOctal;
            Decimal.ToDecimal(b1);
            BinaryDecimal.Text = Decimal.returnDecimal;
            Hexadecimal.ToHexadecimal(b1);
            BinaryHexadecimal.Text = Hexadecimal.returnHex;
        }
Beispiel #3
0
        private void HexadecimalConvert_Click(object sender, RoutedEventArgs e)
        {
            string s1 = HexadecimalHexadecimal.Text;

            Decimal.HexToDecimal(s1);
            int o1 = Convert.ToInt16(Decimal.returnDecimal);

            Binary.ToBinary(o1);
            HexadecimalBinary.Text = Binary.returnBinary;
            Octal.ToOctal(o1);
            HexadecimalOctal.Text = Octal.returnOctal;
            Decimal.ToDecimal(o1);
            HexadecimalDecimal.Text = Decimal.returnDecimal;
        }