Example #1
0
        public static int Main(string [] args)
        {
            Application.Init();
            GtkSilver.Init();

            if (args.Length >= 1)
            {
                if (args [0] == "--black")
                {
                    ThemeDirectory = "theme-black";
                }
                else if (args [0] == "--blue")
                {
                    ThemeDirectory = "theme-blue";
                }
            }

            Window window = new Window();


            window.ShowAll();
            Application.Run();

            return(0);
        }
Example #2
0
File: Main.cs Project: ynkbt/moon
        public static int Main(string [] args)
        {
            Application.Init();
            GtkSilver.Init();

            Window window = new Window("My Canvas");

            window.DeleteEvent += DeleteEventHandler;

            GtkSilver silver = new GtkSilver(400, 400);

            silver.LoadFile("MyCanvas.xaml");

            window.Add(silver);
            window.ShowAll();
            Application.Run();

            return(0);
        }