コード例 #1
0
ファイル: TakaoPreference.cs プロジェクト: zhtw2013/KeyKey
        /// <summary>
        /// handle the click event on the u_applyButton button to writer preference into XML files.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void u_applyButton_Click(object sender, EventArgs e)
        {
            this.SaveSettings();
            u_applyButton.Enabled = false;

            PreferenceConnector callback = PreferenceConnector.SharedInstance;

            if (callback != null)
            {
                callback.syncLoaderAndCurrentModuleConfig();
            }
        }
コード例 #2
0
ファイル: TakaoPreference.cs プロジェクト: zhtw2013/KeyKey
        /// <summary>
        /// Handle the click event on the u_saveButton button to write preference into XML files and close the preference utility.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void u_saveButton_Click(object sender, EventArgs e)
        {
            this.SaveSettings();

            PreferenceConnector callback = PreferenceConnector.SharedInstance;

            if (callback != null)
            {
                callback.syncLoaderAndCurrentModuleConfig();
            }

            this.Close();
        }