| 1234567891011121314151617181920212223242526272829303132333435 |
- using System;
- using System.ComponentModel.Composition;
- using Microsoft.Practices.Prism.ViewModel;
- namespace Modules.WaiGua
- {
- [Export(contractType: typeof (WaiGuaViewModel)),
- PartCreationPolicy(creationPolicy: CreationPolicy.NonShared)]
- internal class WaiGuaViewModel: NotificationObject
- {
- private string logText = "";
- public string LogText
- {
- get
- {
- return this.logText;
- }
- set
- {
- if (this.logText == value)
- {
- return;
- }
- this.logText = value;
- this.RaisePropertyChanged("LogText");
- }
- }
- public void Start()
- {
- this.LogText += "11111111111" + Environment.NewLine;
- }
- }
- }
|