Exemplo n.º 1
0
 private void miCopySetting_Click(object sender, EventArgs e)
 {
     if (cmGameSetting.SourceControl is ISettingControl setting)
     {
         var cfgData = new CfgData();
         cfgData.AddCommentRow(setting.Model.Name);
         cfgData.AddOrUpdateRow(setting.Model.Key, setting.Value);
         Clipboard.SetText(cfgData.ToString());
     }
 }