예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainForm mf = new MainForm();

            if (mf.ShowDialog() == DialogResult.OK)
            {
                if (mf.Choice == Register.ProgramRegimes.NewProject)
                {
                    CreateForm cr1 = new CreateForm();
                    if (cr1.ShowDialog() == DialogResult.OK)
                    {
                        Application.Run(new SandBoxForm(cr1.CanvasColor, cr1.CanvasWidth, cr1.CanvasHeight));
                    }
                }

                if (mf.Choice == Register.ProgramRegimes.OpenVideo)
                {
                    OpenFileDialog oFD = new OpenFileDialog();
                    oFD.Filter = "(*.avi)|*.avi";
                    if (oFD.ShowDialog() == DialogResult.OK)
                    {
                        Application.Run(new SandBoxForm(oFD.FileName));
                    }
                }
            }
        }
예제 #2
0
        private void CreateNewButton_Click(object sender, EventArgs e)
        {
            CreateForm cr = new CreateForm();

            if (cr.ShowDialog() == DialogResult.OK)
            {
                ClearGallery();
                Init(cr.CanvasColor, cr.CanvasWidth, cr.CanvasHeight);
            }
        }