Example #1
0
 private void Editor_Update(object sender, CharSetEventArgs e)
 {
     foreach (var anim in animations)
     {
         anim.UpdateCharSet(e.CharSet);
     }
 }
Example #2
0
        private void CsManager_CharSetDeleted(object sender, CharSetEventArgs e)
        {
            var existing = MdiChildren.FirstOrDefault(c => (c as CharSetEditor)?.CharSetId == e.CharSet.Id) as CharSetEditor;

            if (existing != null)
            {
                existing.Close();
                existing.Dispose();
                existing.Export     -= Editor_Export;
                existing.Save       -= Editor_Save;
                existing.Update     -= Editor_Update;
                existing.FormClosed -= Editor_FormClosed;
            }

            PluginManager.DeleteCharSet(e.CharSet);
        }
Example #3
0
        private void CsManager_CharSetSelected(object sender, CharSetEventArgs e)
        {
            var existing = MdiChildren.FirstOrDefault(c => (c as CharSetEditor)?.CharSetId == e.CharSet.Id);

            if (existing != null)
            {
                existing.BringToFront();
                return;
            }

            CharSetEditor editor = new CharSetEditor(e.CharSet);

            editor.MdiParent   = this;
            editor.Export     += Editor_Export;
            editor.Save       += Editor_Save;
            editor.Update     += Editor_Update;
            editor.FormClosed += Editor_FormClosed;
            editor.Show();
        }
Example #4
0
 private void CsManager_CharSetUp(object sender, CharSetEventArgs e)
 {
 }
Example #5
0
 private void Editor_Save(object sender, CharSetEventArgs e)
 {
     csManager.AddUpdateCharSet(e.CharSet);
     PluginManager.AddOrUpdateCharset(e.CharSet);
 }