private void menuSetRect_Click(object sender, EventArgs e) { DoInput((input) => { var s = input.Key; try { var rect = RVec4f.Parse(s); SetRect(rect); } catch (Exception ex) { Console.WriteLine(ex.Message); MessageBox.Show("解析失败"); } }); }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { var s = reader.Value.ToString(); return(RVec4f.Parse(s)); }