/// <summary> /// 設定顯示在UserControl上的內容 /// </summary> /// <param name="Import">TrayInformation清單</param> /// <param name="Index">從0開始</param> public void SetTrayCaseInfo(TrayInformation Import, int Index) { trayInfo = Import; trayInfo.DesignStepString = GetTrayDesignStep((int)trayInfo.DesignStep); label_orderID.Content = trayInfo.OrderID.Substring(trayInfo.OrderID.IndexOf('-') + 1); label_designStep.Content = TranslationSource.Instance["CurrentStep"] + trayInfo.DesignStepString; label_createDate.Content = trayInfo.CreateDate.ToString(System.Globalization.CultureInfo.CreateSpecificCulture("en-US")); ItemIndex = Index; }
public Order_tsBase() { InitializeComponent(); trayInfo = null; splintInfo = null; label_orderID.Content = ""; label_patientName.Content = ""; label_designStep.Content = ""; label_createDate.Content = ""; ItemIndex = -1; IsFocusCase = false; }