Exemple #1
0
        private static void CreateWindow(bool showLogo)
        {
            var state = new State {
                TheCurser = new Cursor(new Coord(10, 10))
            };

            var man     = new WindowManager($"AsciiUML {Version} (c) Kasper B. Graversen 2016-", State.MaxX, State.MaxY);
            var topmenu = new TopMenu(man, state);
            //var umlWindow = new UmlWindow(topmenu, state);
            var umlWindow = new UmlWindow(topmenu, TempModelForPlayingAround(state));

            umlWindow.Focus();

            if (showLogo)
            {
                ShowLogo(umlWindow);
            }

            man.Start();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var state = new State
            {
                TheCurser = new Cursor(new Coord(10, 10))
            };

            var man       = new WindowManager("AsciiUML (c) Kasper B. Graversen 2016-");
            var topmenu   = new TopMenu(man, state);
            var umlWindow = new UmlWindow(topmenu, state);

            //var umlWindow = new UmlWindow(topmenu, TempModelForPlayingAround(state));
            umlWindow.Focus();
            //ShowLogo(umlWindow);

            var title = new TitledWindow(umlWindow, "Connect objects");
            var f     = new ConnectForm(title, new Coord(5, 5));

            f.Focus();
            man.Start();
        }