ShowDialog() public method

public ShowDialog ( ) : DialogResult
return DialogResult
コード例 #1
0
        private void saveBinDictFile13ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_WordDict == null)
            {
                return;
            }

            saveFileDialogDict.RestoreDirectory = true;
            saveFileDialogDict.FileName         = "Dict.dct";
            saveFileDialogDict.Filter           = "Dictionay file|*.dct";

            if (saveFileDialogDict.ShowDialog() == DialogResult.OK)
            {
                FormInputDictVersion frmInputDictVersion = new FormInputDictVersion();
                frmInputDictVersion.Version = _Version;
                if (frmInputDictVersion.ShowDialog() == DialogResult.OK)
                {
                    _WordDict.Save(saveFileDialogDict.FileName,
                                   frmInputDictVersion.Version);
                }
            }
        }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: xuld/AI-Robot
        private void saveBinDictFile13ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_WordDict == null)
            {
                return;
            }

            saveFileDialogDict.RestoreDirectory = true;
            saveFileDialogDict.FileName = "Dict.dct";
            saveFileDialogDict.Filter = "Dictionay file|*.dct";

            if (saveFileDialogDict.ShowDialog() == DialogResult.OK)
            {
                FormInputDictVersion frmInputDictVersion = new FormInputDictVersion();
                frmInputDictVersion.Version = _Version;
                if (frmInputDictVersion.ShowDialog() == DialogResult.OK)
                {
                    _WordDict.Save(saveFileDialogDict.FileName,
                        frmInputDictVersion.Version);
                }
            }
        }