Example #1
0
        private void ExportBtn_Click(object sender, EventArgs e)
        {
            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

            saveFileDialog1.Filter = "JSON File|*.json";
            saveFileDialog1.Title  = "Save an Export Info File";

            if (saveFileDialog1.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            animationGroups.SaveToJson(saveFileDialog1.FileName);
        }
Example #2
0
        private void ExportBtn_Click(object sender, EventArgs e)
        {
            if (AnimationListBox.SelectedIndices.Count <= 0)
            {
                MessageBox.Show("Select at least one Animation Group");
                return;
            }

            List <AnimationGroup> exportList = AnimationListBox.SelectedItems.Cast <AnimationGroup>().ToList();

            SaveFileDialog saveFileDialog1 = new SaveFileDialog();

            saveFileDialog1.Filter = "JSON File|*.json";
            saveFileDialog1.Title  = "Save an Export Info File";

            if (saveFileDialog1.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            animationGroups.SaveToJson(saveFileDialog1.FileName, exportList);
        }