Пример #1
0
 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();
 }
Пример #4
0
 public MainViewModel()
 {
     //memoryMap = new MemoryMap();
     ServersTree = new ServersTree();
 }