Ejemplo n.º 1
0
 private void NewServer()
 {
     if (SelectedTypeHandler == null)
         return;
     var args = new SelectedTypeArgs() { InstanceType = InstanceType.Remote };
     SelectedTypeHandler(this, args);
 }
Ejemplo n.º 2
0
 private void NewInstance()
 {
     if (SelectedTypeHandler == null)
         return;
     var args = new SelectedTypeArgs() { InstanceType = InstanceType.Local };
     SelectedTypeHandler(this, args);
 }
Ejemplo n.º 3
0
        private void SelectType(SelectTypeViewModel m, SelectedTypeArgs e)
        {
            if (e.InstanceType == InstanceType.Remote)
            {

            }
            else
            {
                CurrentPage = new NewLocalPage();
                var viewmodel = (NewLocalViewModel)_currentPage.DataContext;
                viewmodel.CloseHandler += Close;
                viewmodel.CreatedHandler += CreateNewInstance;
            }
        }