public SearchGoogle_Window(GameCreationAssistedS2_ViewModel vm) { InitializeComponent(); this.vm = vm; this.save.IsEnabled = false; listtoDisplay = new List<UserControl_Image>(); }
public UserControl_GameCreationAssisted_step2(GameCreationAssisted_Window main, GameCreationAssistedS1_ViewModel obj) { InitializeComponent(); this.mainWind = main; this.assisted_S2_VM = new GameCreationAssistedS2_ViewModel(obj); if (obj.imageOption == "Recherche sur Google") { this.Image.Children.Clear(); this.Image.Children.Add(new UserControl_SerchGoogle(this.assisted_S2_VM)); } else { this.Image.Children.Clear(); this.Image.Children.Add(new UserControl_UploadImage(this.assisted_S2_VM)); } addHint(); DataContext = this.assisted_S2_VM; }
public UserControl_SerchGoogle(GameCreationAssistedS2_ViewModel vm) { InitializeComponent(); this.vm = vm; this.elem.Text = this.vm.file; }
public UserControl_UploadImage(GameCreationAssistedS2_ViewModel vm) { InitializeComponent(); this.vm = vm; }