| เวอร์ชัน | 1.1 |
|---|---|
| สำนักพิมพ์ | Vassili Kaplan |
| วันที่วางจำหน่าย | 9 ก.ย. 2020 |
| วันที่เพิ่ม | 9 ก.ย. 2020 |
| ข้อกำหนดระบบปฏิบัติการ | iOS |
| ข้อกำหนด | Requires iOS 10.3 or later. Compatible with iPhone, iPad, and iPod touch. |
| ดาวน์โหลดทั้งหมด | 0 |
| ราคา | Free |
คำอธิบาย
CSCS (Customized Scripting ใน C#) สามารถใช้สำหรับการพัฒนาอุปกรณ์พกพาแบบเนทีฟได้แล้ว
แอพนี้มีล่าม CSCS ที่คุณสามารถใช้เพื่อเล่นกับ CSCS นอกจากนี้ยังมีตัวอย่างที่ตั้งไว้ล่วงหน้าบางส่วน
คุณสามารถสร้างโค้ดสคริปต์ CSCS ใดก็ได้ในแท็บเดียว "สร้าง" แล้วดูผลลัพธ์ในแท็บอื่น "เรียกใช้"
วิธีใช้ CSCS สำหรับการพัฒนาอุปกรณ์พกพามีอธิบายไว้ที่:
- https://msdn.microsoft.com/en-us/magazine/mt829272
- http://www.codemag.com/article/1711081
- https://www.smashingmagazine.com/2020/01/cscs-scripting-language-cross-platform-development/
หนังสืออิเล็กทรอนิกส์ Syncfusion ที่อธิบาย CSCS:
- https://www.syncfusion.com/resources/techportal/details/ebooks/implementing-a-custom-language
Syncfusion E-book อีกเล่มเกี่ยวกับวิธีการใช้สำหรับการพัฒนามือถือ:
https://www.syncfusion.com/ebooks/writing_native_mobile_apps_in_a_functional_language_succinctly
ที่เก็บ CSCS พร้อมคำอธิบายภาษาอยู่ที่:
https://github.com/vassilych/cscs
CSCS สำหรับพื้นที่เก็บข้อมูลมือถืออยู่ที่:
https://github.com/vassilych/mobile
แอพนี้ผลิตใน CSCS นี่คือรหัส CSCS ที่สมบูรณ์:
มาตราส่วนอัตโนมัติ ();
SetBackgroundColor("ฟ้า");
AddOrSelectTab("สร้าง", "test.png", "test2.png");
__locComboFiles=GetLocation("ROOT", "CENTER", "ROOT", "TOP", -100, 40);
AddCombobox(__locComboFiles, "__comboFiles", "center:white:clear", 350, 60);
__optionsComboFiles={"Sandbox", "Hello, World!", "Ads", "Busy Indicators", "Unit Tests"};
AddWidgetData(__comboFiles, __optionsComboFiles, "", "center");
SetFontSize(__comboFiles, 13);
SetValue(__comboFiles, "text2", "Done");
SetValue(__comboFiles, "การจัดตำแหน่ง", "ศูนย์");
AddAction(__comboFiles, "comboFilesChanged");
__locRemoveKeyboard=GetLocation (__comboFiles, "ขวา", __comboFiles, "CENTER", 10);
AddButton (__locRemoveKeyboard, "__buttonKeyboard", "คีย์บอร์ด", 150, 60);
SetFontSize (__buttonKeyboard, 12);
AddAction(__buttonKeyboard, "ซ่อนแป้นพิมพ์");
__locScriptView=GetLocation("ROOT", "CENTER", __comboFiles, "BOTTOM", 0, 10);
AddTextEditView(__locScriptView, "__textView", "", 600, 900);
SetFontSize (__textView, 14);
AddOrSelectTab("เรียกใช้", "learn.png", "run_icon.png");
ฟังก์ชั่น hideKeyboard (ผู้ส่ง, หาเรื่อง) {
ShowHideKeyboard(__textView, เท็จ);//!IsKeyboard(__textView));
ฟังก์ชัน comboFilesChanged (ผู้ส่ง หาเรื่อง) {
แถว=GetValue (ผู้ส่ง);
WriteConsole("แถวคำสั่งผสม=", แถว);
ข้อความ="";
ถ้า (แถว == 1) {
text=ReadFileAsString("sfhello.cscs");
} เอลฟ์ (แถว == 2) {
text=ReadFileAsString("ads.cscs");
} เอลฟ์ (แถว == 3) {
text=ReadFileAsString("busyIndicators.cscs");
} เอลฟ์ (แถว == 4) {
ข้อความ=ReadFileAsString("unitTests.cscs");
SetText (__textView, ข้อความ);
แท็บฟังก์ชันที่เลือก (ผู้ส่ง หาเรื่อง) {
tabId=int(หาเรื่อง);
ถ้า (tabId != 1) {
กลับ;
สคริปต์=GetText (__textView);
RemoveTabViews(1);
ลอง {
เรียกใช้ (สคริปต์);
} จับ (ไม่รวม) {
AlertDialog("CSCS", exc);
WriteConsole(ไม่รวม);
OnTabSelected("tabSelected");
SelectTab(0);