public CommandResult SaveShortCut()
        {
            //コネクションがあればファイルを尋ねる
            SaveFileDialog dlg = new SaveFileDialog();

            dlg.Title            = GApp.Strings.GetString("Util.SaveShortcut");
            dlg.InitialDirectory = GApp.Options.DefaultFileDir;
            dlg.DefaultExt       = "gts";
            dlg.AddExtension     = true;
            dlg.Filter           = "Terminal Shortcut(*.gts)|*.gts";
            if (GCUtil.ShowModalDialog(GApp.Frame, dlg) == DialogResult.OK)
            {
                try {
                    ConfigNode cn = new ConfigNode("poderosa-shortcut");
                    _connection.Param.Export(cn);
                    XmlWriter wr = XMLUtil.CreateDefaultWriter(dlg.FileName);
                    DOMNodeConverter.Write(wr, cn);
                    wr.WriteEndDocument();
                    wr.Close();
                    GApp.Options.DefaultFileDir = GUtil.FileToDir(dlg.FileName);
                    return(CommandResult.Success);
                }
                catch (Exception ex) {
                    MessageBox.Show(GEnv.Frame, ex.Message, GApp.Strings.GetString("Message.SaveError"), MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                    return(CommandResult.Failed);
                }
            }
            else
            {
                return(CommandResult.Cancelled);
            }
        }