예제 #1
0
        public SpritesheetForm(CoderForm cForm)
        {
            coderForm = cForm;
            InitializeComponent();

            // enable double buffering for canvasPanel
            typeof(Panel).InvokeMember("DoubleBuffered",
                                       BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic,
                                       null, canvasPanel, new object[] { true });
        }
예제 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            CoderForm mainForm = new CoderForm();

            string[] args = Environment.GetCommandLineArgs();
            if (args.Length > 1 && File.Exists(args[1]))
            {
                mainForm.LoadProject(args[1]);
            }

            Application.Run(mainForm);
        }