コード例 #1
0
        public static bool OptionTextSubtile()
        {
            ToolSubtitleSetingDialogForm f = (ToolSubtitleSetingDialogForm)InputFormRef.JumpFormLow <ToolSubtitleSetingDialogForm>();

            f.ShowDialog();

            if (f.DialogResult == DialogResult.OK)
            {
                if (g_SubTitleOverlay == null)
                {
                    g_SubTitleOverlay             = (ToolSubtitleOverlayForm)InputFormRef.JumpFormLow <ToolSubtitleOverlayForm>();
                    g_SubTitleOverlay.FormClosed += (ss, ee) =>
                    {
                        g_SubTitleOverlay = null;
                    };
                }

                using (InputFormRef.AutoPleaseWait pleaseWait = new InputFormRef.AutoPleaseWait())
                {
                    g_SubTitleOverlay.Init(f.SimpleTranslateToTranslateDataFilename.Text, f.MakeTransDic(), f.ShortLength, f.ShowAlways.Checked);
                }
                g_SubTitleOverlay.Show();
            }
            else
            {
                if (g_SubTitleOverlay != null)
                {
                    g_SubTitleOverlay.Close();
                }
                g_SubTitleOverlay = null;
            }
            return(g_SubTitleOverlay != null);
        }
コード例 #2
0
 public static void CloseSubTile()
 {
     if (g_SubTitleOverlay == null)
     {//未初期化
         return;
     }
     g_SubTitleOverlay.Close();
     g_SubTitleOverlay = null;
 }