Esempio n. 1
0
        public static void Main()
        {
            var painting = new Painting();

            var wi = new WindowInfo <System.Windows.Window, Image>();

            wi.title = "Chort Shaker";

#if USE_XAML
            wi.window = new MainWindow();
            wi.AddControl(painting, painting, "cell00");
#else
            // Just set the whole window content
            wi.AddControl(painting, painting);
#endif

            Torec.UI.Win.Utils.RunWindow(wi);
        }
Esempio n. 2
0
        public static void Main()
        {
            var painting = new Painting(useTimeline: false);
            var timeline = new Painting(useTimeline: true);

            var wi = new WindowInfo {
                title = "Integers Colored"
            };

#if USE_XAML
            wi.window = new MainWindow();
            AddControl(wi, painting, "cell00", Mode.Linear);
            AddControl(wi, painting, "cell10", Mode.Logarithmic);
            AddControl(wi, timeline, "cell01", Mode.Logarithmic | Mode.TimelineFlag);
            AddControl(wi, timeline, "cell11", Mode.Logarithmic);
#else
            // Just set the whole content
            wi.AddControl(painting);
#endif

            Torec.UI.Win.Utils.RunWindow(wi);
        }
Esempio n. 3
0
 static void AddControl(WindowInfo wi, Painting painting, string nativeName, Mode mode)
 {
     wi.AddControl(painting, painting, nativeName, contextId: (int)mode);
 }