public LocalHostViewModel(ServersTree owner) { Owner = owner; Name = "localhost"; type = NodeTypes.master; IsExpanded = true; Icon = "/Images/database-off.png"; }
public MainWindow() { InitializeComponent(); Log = new TraceSource("Main"); ServersTree = new ServersTree(this); DataContext = ServersTree; Loaded += OnLoaded; Closing += OnClosing; }
private void OnClosing(object sender, EventArgs eventArgs) { ServersTree.Dispose(); }
public MainViewModel() { //memoryMap = new MemoryMap(); ServersTree = new ServersTree(); }