private void Update_Button_Click(object sender, RoutedEventArgs e) { UpdateHostingUnit Uhu = new UpdateHostingUnit(H); Uhu.Show(); this.Visibility = Visibility.Collapsed; }
private void WatchHostingUnit_Click(object sender, RoutedEventArgs e) { if (BL.SingletonFactoryBL.GetBL().GetHostingUnitsOfHost(host).Count == 0) { MessageBox.Show("You don't have any hosting unit.", "Error!", MessageBoxButton.OK, MessageBoxImage.Error); } else { Window updateHostingUnit = new UpdateHostingUnit(host); updateHostingUnit.Show(); this.Close(); } }
private void UnitCollection_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { HostingUnit hostingUnit = (HostingUnit)hostingUnitDataGrid.SelectedItem; if (hostingUnit == null) { ; } else { Window updateUnit = new UpdateHostingUnit(host); updateUnit.ShowDialog(); } }
private void mouseUpdateClick(object sender, RoutedEventArgs e) { try { hostingUnit = (HostingUnit)HostingUnitsList.SelectedItem; //hostingUnit.Owner = hostingUnitList.FirstOrDefault().Owner; //hostingUnit.HostingUnitKey = hostingUnitList.FirstOrDefault().HostingUnitKey; //hostingUnit.HostingUnitName = hostingUnitList.FirstOrDefault().HostingUnitName; UpdateHostingUnit window = new UpdateHostingUnit(hostingUnit); Close(); window.ShowDialog(); } catch (Exception exp) { MessageBox.Show(exp.Message, "exception", MessageBoxButton.OK, MessageBoxImage.Error); } }