コード例 #1
0
ファイル: EnumeHelper.cs プロジェクト: jdefreites/crm-1
        public static string TryToStr(this CustSource custSource)
        {
            string str = string.Empty;

            switch (custSource)
            {
            case CustSource.CustTelephone:
                str = "客户来电";
                break;

            case CustSource.Excavate:
                str = "主动挖掘";
                break;

            case CustSource.Introduction:
                str = "客户介绍";
                break;

            case CustSource.Other:
                str = "其他来源";
                break;

            case CustSource.WebConsulting:
                str = "网站咨询";
                break;
            }
            return(str);
        }
コード例 #2
0
        private async void Popup1_Opened(object sender, object e)
        {
            CustSource.Clear();

            // TODO WTS: Replace this with your actual data
            var data = await MySQLDataService.GetCustGridDataAsync();

            foreach (var item in data)
            {
                CustSource.Add(item);
            }



            //ContentDialog mbPopupOpenDialog = new ContentDialog
            //{
            //    Title = "Popup Opened Event",
            //    Content = sender.ToString(),
            //    CloseButtonText = "Ok"
            //};

            //ContentDialogResult result = await mbPopupOpenDialog.ShowAsync();
        }