public AddclientVM(AddClientUserControlxaml addClientUserControlxaml) { model = new ClientModel(); this.myview = addClientUserControlxaml; this.addClientComm = new ReplaceCommand(); this.CancelComm = new ReplaceCommand(); addClientComm.ReplaceUserControl += addClientButton; CancelComm.ReplaceUserControl += cancel; }
private void addwindow(string obj) { AddClientUserControlxaml AD = new AddClientUserControlxaml(); this.page.Content = AD; }