public static string GetDisplayStringOrderMode(CAPLib.StatusType orderMode) { if (!orderModeInfo.ContainsKey(orderMode)) { return("Unknown(" + orderMode.ToString() + ")"); } return(orderModeInfo[orderMode].Name); }
/// <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); }
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; } }
public OrderModeForm(CAPLib.StatusType mode) { InitializeComponent(); this.originalMode = mode; }
public OrderModeEventArgs(CAPLib.StatusType mode) { this.mode = mode; }