Exemplo n.º 1
0
 private void OnCSVFileAssociationToolsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(CSVEditor.Properties.Resources.CSVFileAssociationToolsHint + "\n" + CSVEditor.Properties.Resources.ConfirmThisOperation
                         , "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
     {
         RegistryUtility.SetRegisterFileExtendWithThisApp(".csv", "CSVEditor.CSV", "CSVEditor的csv文件", "在CSVEditor中打开");
     }
 }
Exemplo n.º 2
0
    /// <summary>
    /// 初始化数据
    /// </summary>
    public Setting()
    {
        FirstRun = true;

        BeyondCompareAutoExePath = true;
        BeyondCompareExePath     = "";
        CodeCompareAutoExePath   = true;
        CodeCompareExePath       = "";

        RegistryUtility.SetRegisterFileExtendWithThisApp(".csv", "CsvEditor.CSV", "CsvEditor的csv文件", "在CsvEditor中打开");
    }