Пример #1
0
 private void SettingValue_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     EditSetting edit = new EditSetting();
     edit.SettingName.Content = setting.name;
     edit.SettingValue.Text = setting.data.ToString();
     edit.SettingSave.Click += (s, ea) =>
     {
         setting.data = edit.SettingValue.Text;
         PluginAPI.PluginManager.onSettingChange(setting);
         edit.Close();
         this.SettingValue.Content = setting.data.ToString();
     };
     edit.Show();
 }
Пример #2
0
        private void SettingValue_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            EditSetting edit = new EditSetting();

            edit.SettingName.Content = setting.name;
            edit.SettingValue.Text   = setting.data.ToString();
            edit.SettingSave.Click  += (s, ea) =>
            {
                setting.data = edit.SettingValue.Text;
                PluginAPI.PluginManager.onSettingChange(setting);
                edit.Close();
                this.SettingValue.Content = setting.data.ToString();
            };
            edit.Show();
        }