コード例 #1
0
 private void openProjectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (OpenFileDialog ofd = new OpenFileDialog())
     {
         ofd.Filter = "Gif Maker Projects | *gproj";
         if (ofd.ShowDialog() == DialogResult.OK)
         {
             btn_delete.Enabled = true;
             btn_add.Enabled    = true;
             GifProj proj = GifProj.FromFile(new System.IO.FileInfo(ofd.FileName));
             ActiveProject = proj;
             UpdateMenuState(true,
                             tsmbtn_changePath,
                             tsmbtn_save,
                             tsmbtn_saveas,
                             tsmbtn_options,
                             tsmbtn_editprojectpath,
                             tsmbtn_next,
                             tsmbtn_previous,
                             tsmbtn_delimg,
                             tsmbtn_rename);
             Text        = $"{ActiveProject.SaveName} - Gif Maker";
             UpdateSlave = new ImagePropertySlave(ActiveProject, pictureBox1);
             UpdateImage();
         }
     }
 }
コード例 #2
0
        void Tsmbtn_newProjClick(object sender, EventArgs e)
        {
            ProjectWizard frm = new ProjectWizard();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                btn_delete.Enabled = true;
                btn_add.Enabled    = true;
                ActiveProject      = frm.project;
                UpdateMenuState(true,
                                tsmbtn_changePath,
                                tsmbtn_save,
                                tsmbtn_saveas,
                                tsmbtn_options,
                                tsmbtn_editprojectpath,
                                tsmbtn_next,
                                tsmbtn_previous,
                                tsmbtn_delimg,
                                tsmbtn_rename);
                Text        = $"{ActiveProject.SaveName} - Gif Maker";
                UpdateSlave = new ImagePropertySlave(ActiveProject, pictureBox1);
                UpdateImage();
            }
        }