Пример #1
0
    /// Aqua's entry point.
    /// This method starts looking for changes, attach commands, and so on...
    public static void Watch(Form f, bool quiet)
    {
        Lane lane = new Lane();

        AquaCmds.AttachTo(f, lane, quiet);

        f.Shown += (s, e) => {
            ValueStore values = Init(f, lane);

            PrintSolidLine();             //<= Begin spanshot.
            WriteLine("| First Snapshot");
            PrintSolidLine();
            FirstSnapshot(f, values, lane);
            WriteLine("|");
            PrintSolidLine();             //<= End snapshot.
        };
    }
Пример #2
0
    /// Attaches the aqua commands tool bar to the form under test.
    public static void AttachTo(Form host, Lane lane, bool quiet)
    {
        var cmds = new AquaCmds(host, lane, quiet);

        cmds.Show();
    }