/// <summary> /// Auto Scaling Group Window constructor /// </summary> /// <param name="model">Master View Model for ASG console</param> /// <param name="editMode">Edit mode true = update mode; false = create mode</param> public AsgWindow(ViewModel model, bool editMode) : this() { InitializeComponent(); this.DataContext = model; this.edit = editMode; this.isVpc = model.IsVpc; Loaded += AsgWindow_Loaded; }
/// <summary> /// Console View window constructor /// </summary> public ConsoleView() { InitializeComponent(); vm = new ViewModel(); this.DataContext = vm; rbClassic.Click += new RoutedEventHandler(rbEnvironment_Checked); rbVpc.Click += new RoutedEventHandler(rbEnvironment_Checked); cboVPC.SelectionChanged += new SelectionChangedEventHandler(cboVPC_SelectionChanged); vm.SelectedLaunchConfigurationChanged += new EventHandler(LaunchConfigurationSelectionChanged); vm.SelectedAutoScaleGroupChanged += new EventHandler(AutoScaleGroupSelectionChanged); Loaded += ConsoleView_Loaded; }
/// <summary> /// Notification configuration window constructor /// </summary> /// <param name="model">Notification configuration window constructor</param> public NcWindow(ViewModel model) : this() { this.DataContext = model; Loaded += NcWindow_Loaded; }
/// <summary> /// Launch configuration window constructor /// </summary> /// <param name="model">Master View Model for ASG console</param> public LcWindow(ViewModel model) : this() { this.DataContext = model; }