private void Window_Closing(object arg)
        {
            if (MultiFile.CloseFile())
            {
                if (visualizer != null)
                {
                    visualizer.Close();
                }
                if (setchar != null)
                {
                    setchar.Close();
                }

                ApplicationSettings.AppSetting.Default.Save();
                ApplicationSettings.BackgroundDefault.Default.Save();
                ApplicationSettings.SPREditor.Default.Save();
                ApplicationSettings.WindowSetting.Default.Save();
            }
            else
            {
                (arg as CancelEventArgs).Cancel = true;
            }
        }
        private void Window_Closing(object sender, CancelEventArgs e)
        {
            if (MultiFile.CloseFile())
            {
                if (visualizer != null)
                {
                    visualizer.Close();
                }
                if (setchar != null)
                {
                    setchar.Close();
                }

                Settings.AppSetting.Default.Save();
                Settings.BackgroundDefault.Default.Save();
                Settings.SPREditor.Default.Save();
                Settings.WindowSetting.Default.Save();
            }
            else
            {
                e.Cancel = true;
            }
        }