Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatically convert and include scripts when generating the exe
#9
Example.
Files in folder @Example100. Note: folder name starts with @.
 
Code:
Copy      Help
// script "Example100.cs"
var b = new wpfBuilder("Window").WinSize(400);
b.R.AddButton("Start TaskA", _ => { run.thread(TaskA.Thread); });
b.R.AddButton("Start TaskB", _ => { run.thread(() => TaskB.Thread(5)); });
b.R.AddOkCancel();
b.End();
if (!b.ShowDialog()) return;
 
Code:
Copy      Help
// class "TaskA.cs"
static class TaskA {
    public static void Thread() {
        dialog.show(null, "TaskA");
    }
}

Code:
Copy      Help
// class "TaskB.cs"
static class TaskB {
    public static void Thread(int x) {
        dialog.show(null, $"TaskB, x={x}");
    }
}


Messages In This Thread
RE: Automatically convert and include scripts when generating the exe - by Gintaras - 03-31-2024, 07:32 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)