Пример #1
0
        private BitArray GetOperandsList() //0
        {
            var bs = FirstOperand.ToInt();

            if (bs > 36 || bs < 2)
            {
                ShowMessage("Incorrect Base");
                return(null);
            }

            string result = ConvertToBase(ThirdOperand.ToInt(), bs) + "  " + ConvertToBase(SecondOperand.ToInt(), bs) + "  " +
                            ConvertToBase(FirstOperand.ToInt(), bs) + "  " + ConvertToBase(Operation.ToInt(), bs);

            ShowMessage(result);
            return(null);
        }
Пример #2
0
        private string GetBinaryStringCommand()
        {
            string command = ThirdOperand.ToStr() + SecondOperand.ToStr() + FirstOperand.ToStr() + Operation.ToStr();

            return(command);
        }
Пример #3
0
        private string GetStringCommand()
        {
            string command = ThirdOperand.ToInt() + " " + SecondOperand.ToInt() + " " + FirstOperand.ToInt() + " " + Operation.ToInt();

            return(command);
        }