public MainWindow() { LoadStyle("Style.xaml"); InitializeComponent(); _manager = new DoItManager(); DataContext = new DoItDataProvider(_manager); ((DoItDataProvider)DataContext).PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(MainWindow_PropertyChanged); }
public DoItDataProvider(DoItManager manager) { _manager = manager; }
static void Main(string[] args) { DoItManager dm = new DoItManager(false); dm.Index(); dm.Save(); }