示例#1
0
    public static void ResetConfiguration()
    {
        string currentSettingsFile = Application.StartupPath + "\\Plugins\\Settings\\" + Name + "_" + ObjectManager.Me.Name + ".xml";
        var    currentSetting      = new WhisperForwardingSettings();

        currentSetting.ToForm();
        currentSetting.Save(currentSettingsFile);
    }
示例#2
0
    public static void ShowConfiguration()
    {
        string currentSettingsFile = Application.StartupPath + "\\Plugins\\Settings\\" + Name + "_" + ObjectManager.Me.Name + ".xml";
        var    currentSetting      = new WhisperForwardingSettings();

        if (File.Exists(currentSettingsFile))
        {
            currentSetting = Settings.Load <WhisperForwardingSettings>(currentSettingsFile);
        }
        currentSetting.ToForm();
        currentSetting.Save(currentSettingsFile);
    }