void CreateAllControls () { // m_ProgrammMenuGrid Button m_ActualizingButton = m_XAMLHandling.CreatePositionedButton (m_ProgrammMenuGrid, 0, 0, "Prg.Schema"); m_ActualizingButton.Click += new RoutedEventHandler (m_ActualizingButton_Click); m_SenderComboBox = m_XAMLHandling.CreatePositionedComboBox (m_ProgrammMenuGrid, 1, 0); m_ProgrammDay = m_XAMLHandling.CreatePositionedDatePicker (m_ProgrammMenuGrid, 2, 0); m_ProgrammDay.SelectedDate = DateTime.Now; Button m_TTXButton = m_XAMLHandling.CreatePositionedButton (m_ProgrammMenuGrid, 3, 0, "TeleText"); m_ProgrammTree = m_XAMLHandling.CreatePositionedTreeView (m_OverviewAreaGrid, 0, 1); // m_BeitraegeMenueGrid Label m_BeitraegeTypLabel = m_XAMLHandling.CreatePositionedLabel (m_BeitraegeMenueGrid, 0, 0, "Beitraege"); m_BeitragPrepared = m_XAMLHandling.CreatePositionedRadioButton (m_BeitraegeMenueGrid, 1, 0, "Vorber."); m_BeitragInactiv = m_XAMLHandling.CreatePositionedRadioButton (m_BeitraegeMenueGrid, 2, 0, "Inactiv"); m_BeitragActiv = m_XAMLHandling.CreatePositionedRadioButton (m_BeitraegeMenueGrid, 3, 0, "Activ"); m_BeitragWithoutTiming = m_XAMLHandling.CreatePositionedRadioButton (m_BeitraegeMenueGrid, 4, 0, "Ohne"); Button m_ArchivButton = m_XAMLHandling.CreatePositionedButton (m_BeitraegeMenueGrid, 5, 0, "Archiv"); m_BeitraegeTree = m_XAMLHandling.CreatePositionedTreeView (m_OverviewAreaGrid, 1, 1); m_BeitragActiv.IsChecked = true; // m_SendungenMenuGrid Label m_SendungenLabel = m_XAMLHandling.CreatePositionedLabel (m_SendungenMenuGrid, 0, 0, "Zugeordnet zu Sendungen"); m_BeitragsSendugsZuordnungen = m_XAMLHandling.CreatePositionedListBox (m_OverviewAreaGrid, 2, 1); m_BeitragsSendugsZuordnungen.LostFocus += new RoutedEventHandler (m_BeitragsSendugsZuordnungen_LostFocus); // Timings & Properties m_PropertiesControl = new CVM.ManagedPropertiesControl (); m_BeitragPropertiesGrid.Children.Add (m_PropertiesControl); Grid.SetColumn (m_PropertiesControl, 0); Grid.SetRow (m_PropertiesControl, 0); m_PropertiesControl.GetDynamicSelectedValueCall += new CVM.ManagedPropertiesControl.GetDynamicSelectedValueEvent (m_PropertiesControl_GetDynamicSelectedValueCall); CVM.ManagedPropertiesControl.NotifyAboutPossibleUpdatesCall += new WMB.NotifyAboutPossibleUpdatesEvent (Process_NotifyAboutPossibleUpdatesCall); m_TimingsControl = new ManagedTimings.ManagedTimingsControl (); m_TimingsControl.NotifyAboutPossibleUpdatesCall += new WMB.NotifyAboutPossibleUpdatesEvent (Process_NotifyAboutPossibleUpdatesCall); m_BeitragTimingsGrid.Children.Add (m_TimingsControl); Grid.SetColumn (m_TimingsControl, 0); Grid.SetRow (m_TimingsControl, 0); // m_BeitragDetailsGrid Label m_BeitragLabel = m_XAMLHandling.CreatePositionedLabel (m_BeitragDetailsGrid, 0, 0, "Beitrag"); Label m_ReihenfolgeLabel = m_XAMLHandling.CreatePositionedLabel (m_BeitragDetailsGrid, 1, 0, "Reihenfolge"); m_Reihenfolge = m_XAMLHandling.CreatePositionedDatePicker (m_BeitragDetailsGrid, 1, 1); m_Reihenfolge.LostFocus += new RoutedEventHandler (m_Reihenfolge_LostFocus); m_BeitragName = m_XAMLHandling.CreatePositionedTextBox (m_BeitragDetailsGrid, 0, 1); m_BeitragName.LostFocus += new RoutedEventHandler (m_BeitragName_LostFocus); m_ShortDescription = m_XAMLHandling.CreatePositionedTextBox (m_BeitragDetailsGrid, 0, 2); m_ShortDescription.LostFocus += new RoutedEventHandler (m_ShortDescription_LostFocus); Grid.SetColumnSpan (m_ShortDescription, 2); m_LongDescription = m_XAMLHandling.CreatePositionedTextBox (m_BeitragDetailsGrid, 0, 3); m_LongDescription.LostFocus += new RoutedEventHandler (m_LongDescription_LostFocus); Grid.SetColumnSpan (m_LongDescription, 2); m_LongDescription.AcceptsReturn = true; m_LongDescription.AcceptsTab = true; m_LongDescription.TextWrapping = TextWrapping.Wrap; m_BeitragsKontakt = m_XAMLHandling.CreatePositionedTextBox (m_BeitragDetailsGrid, 0, 4); m_BeitragsKontakt.LostFocus += new RoutedEventHandler (m_BeitragsKontakt_LostFocus); Grid.SetColumnSpan (m_BeitragsKontakt, 2); m_BeitragsKontakt.AcceptsReturn = true; m_BeitragsKontakt.AcceptsTab = true; m_BeitragsKontakt.TextWrapping = TextWrapping.Wrap; m_BeitragsWWW = m_XAMLHandling.CreatePositionedTextBox (m_BeitragDetailsGrid, 0, 5); m_BeitragsWWW.LostFocus += new RoutedEventHandler (m_BeitragsWWW_LostFocus); Grid.SetColumnSpan (m_BeitragsWWW, 2); m_BeitragsWWW.AcceptsReturn = true; m_BeitragsWWW.AcceptsTab = true; m_BeitragsWWW.TextWrapping = TextWrapping.Wrap; // m_AdditionalsAreaGrid m_MaterialsControl = new ManagedMaterials.ManagedSelectedMaterialControl (); m_MaterialsControl.NotifyAboutPossibleUpdatesCall += new WMB.NotifyAboutPossibleUpdatesEvent (Process_NotifyAboutPossibleUpdatesCall); m_AdditionalsAreaGrid.Children.Add (m_MaterialsControl); Grid.SetColumn (m_MaterialsControl, 0); Grid.SetRow (m_MaterialsControl, 0); m_MaterialsControl.IDDBNameinAttributeTable = "FileID"; m_MaterialsControl.EntryNameDBNameinAttributeTable = "Name"; m_MaterialsControl.ConnectorIDDBNameInConnectorTable = "VideoFilesZuBeitraegeID"; m_MaterialsControl.ConnectToIDDBNameInConnectorTable = "BeitragID"; m_MaterialsControl.ConnectorAttributeIDDBNameInConnectorTable = "FileID"; m_MaterialsControl.ItemsToDisplayInDataGrid = new String [] { "PlayLength", "Name", "LengthInSeconds" }; // , "Reihenfolge" m_MaterialsControl.DBItemsToProcessFromAttributeTable = new String [] { "Name", "LengthInSeconds", "ModifyTimeStamp" }; m_MaterialsControl.ConnectorSortFieldDBNameInConnectorTable = "Reihenfolge"; m_BeitragDetailsSubGrid = m_XAMLHandling.CreatePositionedGrid (m_AdditionalsAreaGrid, 1, 0, new int [] { 100 }, new int [] { 25, 25, 75 }); m_BeitragsType = m_XAMLHandling.CreatePositionedComboBox (m_BeitragDetailsSubGrid, 0, 0); m_BeitragsType.LostFocus += new RoutedEventHandler (m_BeitragsType_LostFocus); m_Authoren = m_XAMLHandling.CreatePositionedComboBox (m_BeitragDetailsSubGrid, 0, 1); m_Authoren.LostFocus += new RoutedEventHandler (m_Authoren_LostFocus); m_Authoren.ContextMenuOpening += new ContextMenuEventHandler (m_Authoren_ContextMenuOpening); m_BeitragsStatistik = m_XAMLHandling.CreatePositionedListBox (m_BeitragDetailsSubGrid, 0, 2); m_BeitragsStatistik.LostFocus += new RoutedEventHandler (m_BeitragsStatistik_LostFocus); m_PicturesControl = new ManagedPictures.ManagedPicturesControl (); m_PicturesControl.NotifyAboutPossibleUpdatesCall += new WMB.NotifyAboutPossibleUpdatesEvent (Process_NotifyAboutPossibleUpdatesCall); m_AdditionalsAreaGrid.Children.Add (m_PicturesControl); Grid.SetColumn (m_PicturesControl, 2); Grid.SetRow (m_PicturesControl, 0); m_FunctionsGrid = m_XAMLHandling.CreatePositionedGrid (m_AdditionalsAreaGrid, 3, 0, new int [] { 100 }, new int [] { 25, 25, 25, 25, 25 }); m_ManagementButton = m_XAMLHandling.CreatePositionedButton (m_FunctionsGrid, 0, 0, "Mgmt"); if (m_Rollen.Contains("Management")) { m_ManagementButton.IsEnabled = true; m_ManagementButton.Click += m_ManagementButton_Click; } m_ManagementButton.IsEnabled = false; m_GetBeitragButton = m_XAMLHandling.CreatePositionedButton (m_FunctionsGrid, 0, 1, "Neu Holen"); m_GetBeitragButton.Click += new RoutedEventHandler (m_GetBeitragButton_Click); m_GetBeitragButton.IsEnabled = false; m_DeleteBeitragButton = m_XAMLHandling.CreatePositionedButton (m_FunctionsGrid, 0, 2, "Löschen"); m_DeleteBeitragButton.IsEnabled = false; m_DeleteBeitragButton.Click += new RoutedEventHandler (m_DeleteBeitragButton_Click); m_NewBeitragButton = m_XAMLHandling.CreatePositionedButton (m_FunctionsGrid, 0, 3, "Neu"); m_NewBeitragButton.IsEnabled = true; m_NewBeitragButton.Click += new RoutedEventHandler (m_NewBeitragButton_Click); m_ModifyBeitragButton = m_XAMLHandling.CreatePositionedButton (m_FunctionsGrid, 0, 4, "Ändern"); m_ModifyBeitragButton.IsEnabled = true; m_ModifyBeitragButton.Click += new RoutedEventHandler (m_ModifyBeitragButton_Click); }
public static Timings GetTerminEntry (Guid InformationenID, WMB.TypeOfTimingToSearchFor TypeOfTimingsToSearchFor) { CVM.ITimingsInterface TimingsHandling = new ManagedTimings.ManagedTimingsControl () as CVM.ITimingsInterface; TimingsHandling.WCFDataAccess = new WCFStandards (); DataRow TimingRow = TimingsHandling.GetPurposeSelectedTiming (InformationenID, TypeOfTimingsToSearchFor); if (TimingRow == null) return (Timings) null; return new Timings () { TimingsID = (System.Guid) TimingRow ["TimingsID"], ConnectedID = (System.Guid ?) TimingRow ["ConnectedID"], TimeA = Convert.ToDateTime (TimingRow ["TimeA"]), TimeB = Convert.ToDateTime (TimingRow ["TimeB"]), ConnectedType = TimingRow ["ConnectedType"].ToString (), TimingTypID = TimingRow ["TimingTypID"].ToString () }; }