Esempio n. 1
0
 public static string GetDisplayStringOrderMode(CAPLib.StatusType orderMode)
 {
     if (!orderModeInfo.ContainsKey(orderMode))
     {
         return("Unknown(" + orderMode.ToString() + ")");
     }
     return(orderModeInfo[orderMode].Name);
 }
Esempio n. 2
0
        /// <summary>
        /// [발령 모드]
        /// </summary>
        /// <param name="orderCode"></param>
        /// <returns></returns>
        public static OrderMode FindOrderModeInfoByCode(CAPLib.StatusType orderMode)
        {
            if (orderModeInfo.ContainsKey(orderMode))
            {
                OrderMode copy = new OrderMode();
                copy.DeepCopyFrom(orderModeInfo[orderMode]);
                return(copy);
            }

            return(null);
        }
Esempio n. 3
0
        private void btnOrderMode_Click(object sender, EventArgs e)
        {
            AdengImgButtonEx button = sender as AdengImgButtonEx;

            this.btnOrderModeActual.ChkValue    = false;
            this.btnOrderModeExcercise.ChkValue = false;
            this.btnOrderModeTest.ChkValue      = false;

            if (button.Text == "실제")
            {
                this.currentMode = CAPLib.StatusType.Actual;
                this.btnOrderModeActual.ChkValue = true;
            }
            else if (button.Text == "훈련")
            {
                this.currentMode = CAPLib.StatusType.Exercise;
                this.btnOrderModeExcercise.ChkValue = true;
            }
            else
            {
                this.currentMode = CAPLib.StatusType.Test;
                this.btnOrderModeTest.ChkValue = true;
            }
        }
Esempio n. 4
0
        public OrderModeForm(CAPLib.StatusType mode)
        {
            InitializeComponent();

            this.originalMode = mode;
        }
Esempio n. 5
0
 public OrderModeEventArgs(CAPLib.StatusType mode)
 {
     this.mode = mode;
 }