private void button2_Click(object sender, EventArgs e) { var TF2 = new TestForm2(); TF2.Show(); TF2.GetCache().Init(); string S=TF2.GetCache().ToSerializableString(); Debug_.Debug.Print(S); var TF1 = new TestForm1(); TF1.GetCache().whatMustDo = wmd; TF1.GetCache().FromSerializableString(S); TF1.Show(); }
private void button1_Click(object sender, EventArgs e) { var TF1 = new TestForm1(); TF1.Show(); string Label=TF1.Save(); Debug_.Debug.Print( TF1.GetCache().ToString()); var ISCache = ((ISaveable)TF1).GetCache(); var TF2 = new TestForm2(); TF2.GetCache().whatMustDo = wmd; TF2.LoadData(Label); TF2.Show(); }