コード例 #1
0
        private void SaveAsMenu_Click(object sender, EventArgs e)
        {
            if (isLowFi)
            {
                saveFileDialog1.Filter = "S11 Files|*.s11";
            }
            else
            {
                saveFileDialog1.Filter = "S22 Files|*.s22";
            }

            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                if (saveFileDialog1.FileName != "")
                {
                    //Ensure the old save handler is detached from any UI properly.
                    if (saveHandler != null)
                    {
                        saveHandler.Destroy();
                    }
                    saveHandler = new FileSaveHandler(saveFileDialog1.FileName);
                    SaveSNDFile();
                    this.Text = string.Format("{0} - SND Editor", saveHandler.GetUIName());
                }
            }
        }
コード例 #2
0
 private void mnuSaveAs_Click(object sender, EventArgs e)
 {
     saveFileDialog1.Filter = "HAM Files|*.HAM";
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         bool compatObjBitmaps = (StandardUI.options.GetOption("CompatObjBitmaps", bool.FalseString) == bool.TrueString);
         //Ensure the old save handler is detached from any UI properly.
         if (saveHandler != null)
         {
             saveHandler.Destroy();
         }
         saveHandler = new FileSaveHandler(saveFileDialog1.FileName);
         SaveHAMFile();
         this.Text = string.Format("{0} - HAM Editor", saveHandler.GetUIName());
     }
 }
コード例 #3
0
 private void SaveAsMenuItem_Click(object sender, EventArgs e)
 {
     saveFileDialog1.Filter = "HXM Files|*.hxm";
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
         if (saveFileDialog1.FileName != "")
         {
             //Ensure the old save handler is detached from any UI properly.
             if (saveHandler != null)
             {
                 saveHandler.Destroy();
             }
             saveHandler = new FileSaveHandler(saveFileDialog1.FileName);
             SaveHXMFile();
             this.Text = string.Format("{0} - HXM Editor", saveHandler.GetUIName());
         }
     }
 }