Skip to content

oyajiDev/Photino.NET.API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Photino.NET.API

Photino.NET API for ease




Available for:
  • .NET 6.0+

Supported Platforms:
  • Windows 10+ (x86, amd64, arm64)
  • Linux(WSL) (amd64)
  • OSX 11+ (amd64, arm64)




Install

dotnet add package Photino.NET.API
# or specific version
dotnet add package Photino.NET.API --version {version}


Usage

using System;
using PhotinoNET;

namespace Photino.NET.API.Tests {
    internal class Program {
        [STAThread]
        static void Main(String[] args) {
            var appExeDir = AppContext.BaseDirectory;

            var window = new PhotinoAPIWindow()
                .SetLogVerbosity(true)
                .RegisterAPI(new APIs.Counter())
                .SetTitle("{title}")
                .SetUseOsDefaultSize(false)
                .SetWidth(600).SetHeight(400).Center()
                .SetDevToolsEnabled(true)
                .SetContextMenuEnabled(true)
                .SetRemoveTempFile(false)
                .LoadFile("{file}");

            window.WaitForClose();
        }
    }
}
  • call dotnet method by "API class name" and "method name".
  • check Test.
function countUp() {
    photino.Counter.CountUp();
}

function countDown() {
    photino.Counter.CountDown();
}