Пример #1
0
    public void DelM(string machine)
    {
        BstHost h = new BstHost(machine)
        {
            INACTIVE = true
        };

        h.Store();
        CbstHelper.FeedLog("Machine was deleted: " + machine);
    }
Пример #2
0
    public void UpdateHost(string host, bool start, string comment)
    {
        BstHost h = new BstHost(host);

        if (start)
        {
            h.POWERON = true;
        }
        else
        {
            h.POWEROFF = true;
        }
        h.Store();
        CbstHelper.FeedLog(comment);
    }