Beispiel #1
0
        /// <summary>
        /// 畫面設定
        /// </summary>
        /// <param name="text">Control的text</param>
        /// <param name="frameObject">畫面物件</param>
        /// <returns>Task</returns>
        public Task SetFrame(string text, FrameObject frameObject)
        {
            return(Task.Run(() =>
            {
                InputController.Instance.AddUnary(text);
                var LastNumberStr = InputController.Instance.NumberStr;

                frameObject.PanelString = frameObject.PanelString.RemoveLast(LastNumberStr.Length);
                frameObject.AppendPanel(text);
                frameObject.AppendPanel(LastNumberStr);
            }));
        }
Beispiel #2
0
 /// <summary>
 /// 畫面設定
 /// </summary>
 /// <param name="text">Control的text</param>
 /// <param name="frameObject">畫面物件</param>
 /// <returns>Task</returns>
 public Task SetFrame(string text, FrameObject frameObject)
 {
     return(Task.Run(() =>
     {
         InputController.Instance.SetRightBracket();
         frameObject.AppendPanel(text);
     }));
 }
Beispiel #3
0
        /// <summary>
        /// 畫面設定
        /// </summary>
        /// <param name="text">Control的text</param>
        /// <param name="frameObject">畫面物件</param>
        /// <returns>Task</returns>
        public async Task SetFrame(string text, FrameObject frameObject)
        {
            InputController.Instance.SetOperator(text);
            frameObject.AppendPanel(text);

            //裡面也有畫面處理
            await NetworkController.Instance.OperatorRequest(InputController.Instance.CreateOperatorExpression(), frameObject);
        }
Beispiel #4
0
 /// <summary>
 /// 畫面設定
 /// </summary>
 /// <param name="text">Control的text</param>
 /// <param name="frameObject">畫面物件</param>
 /// <returns>Task</returns>
 public Task SetFrame(string text, FrameObject frameObject)
 {
     return(Task.Run(() =>
     {
         if (InputController.Instance.AddNumber(text))
         {
             frameObject.AppendPanel(text);
         }
     }));
 }
Beispiel #5
0
        /// <summary>
        /// 畫面設定
        /// </summary>
        /// <param name="text">Control的text</param>
        /// <param name="frameObject">畫面物件</param>
        /// <returns>Task</returns>
        public async Task SetFrame(string text, FrameObject frameObject)
        {
            await NetworkController.Instance.EqualRequest(InputController.Instance.CreateEqualExpression(), frameObject);

            frameObject.AppendPanel(text);
        }