예제 #1
0
	void ShowBlocks_Click (object sender, RoutedEventArgs e)
		{
		MenuItem ShowBlocks = sender as MenuItem;
		CommonSelectionWindow BlockDefinitionWindow = new CommonSelectionWindow ();
		String [] SelectedValues = (ShowBlocks.Tag as String).Split (';');
		m_SelectedPageID = SelectedValues [0];
		String SelectedNameID = SelectedValues [1];
		BlockDefinitionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (BlockDefinitionWindow_ReportNewIDToMeCall);
		BlockDefinitionWindow.SetAdditionalRowFilterCall += new SetAdditionalRowFilterEvent (BlockDefinitionWindow_SetAdditionalRowFilterCall);
		BlockDefinitionWindow.DoDataGridStylingBeforeShowCall += new DoDataGridStylingBeforeShowEvent (BlockDefinitionWindow_DoDataGridStylingBeforeShowCall);
		ISpecialTableInterface BlockDefinitionSpecialTableInterface = BlockDefinitionWindow as ISpecialTableInterface;
		BlockDefinitionSpecialTableInterface.ProcessGetSelectedCall +=
				new ProcessButtonPressed (BlockDefinitionSpecialTableInterface_ProcessGetSelectedCall);
		BlockDefinitionSpecialTableInterface.ProcessSelectableCreatedCall +=
				new ProcessButtonPressed (BlockDefinitionSpecialTableInterface_ProcessSelectableCreatedCall);
		BlockDefinitionWindow.SetData ("", m_DataBase, null, "BlockDefinitions",
			"TextBlöcke für " + SelectionChain [0] + "-" + SelectionChain [0] + " ", m_SelectedPageID, null, null);
		BlockDefinitionWindow.ShowDialog ();
		}
예제 #2
0
	void BlockDefinitionWindow_ReportNewIDToMeCall (object Sender, string NewID)
		{
		CommonSelectionWindow TextDefinitionWindow = new CommonSelectionWindow ();
		TextDefinitionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (TextDefinitionWindow_ReportNewIDToMeCall);
		TextDefinitionWindow.SetAdditionalRowFilterCall += new SetAdditionalRowFilterEvent (TextDefinitionWindow_SetAdditionalRowFilterCall);
		TextDefinitionWindow.DoDataGridStylingBeforeShowCall += new DoDataGridStylingBeforeShowEvent (TextDefinitionWindow_DoDataGridStylingBeforeShowCall);
		ISpecialTableInterface TextDefinitionSpecialTableInterface = TextDefinitionWindow as ISpecialTableInterface;
		TextDefinitionSpecialTableInterface.ProcessSelectableCreatedCall +=
			new ProcessButtonPressed (TextDefinitionSpecialTableInterface_ProcessSelectableCreatedCall);
		TextDefinitionWindow.SetData ("", m_DataBase, null, "TextDefinitions", "BlockID", NewID, null, null);
		TextDefinitionWindow.ShowDialog ();
		}
예제 #3
0
	void HandleContentAdministration (String SelectedTableID, String SelectedTableName)
		{
		CommonSelectionWindow CommonContentSelectionWindow = new CommonSelectionWindow ();
		m_SelectedTableID = SelectedTableID;
		SelectionChain.Clear ();
		SelectionChain.Add (SelectedTableName);
		CommonContentSelectionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent
			(CommonContentSelectionWindow_ReportNewIDToMeCall);
		CommonContentSelectionWindow.SetAdditionalRowFilterCall += new SetAdditionalRowFilterEvent
			(CommonContentSelectionWindow_SetAdditionalRowFilterCall);
		CommonContentSelectionWindow.DoDataGridStylingBeforeShowCall += new DoDataGridStylingBeforeShowEvent
			(CommonContentSelectionWindow_DoDataGridStylingBeforeShowCall);
		CommonContentSelectionWindow.GetAdditionalLateBindingContextMenuEntriesCall +=
			new GetAdditionalLateBindingContextMenuEntriesEvent (CommonContentSelectionWindow_GetAdditionalLateBindingContextMenuEntriesCall);
		ISpecialTableInterface CommonContentSpecialTableInterface = CommonContentSelectionWindow as ISpecialTableInterface;
		CommonContentSpecialTableInterface.ProcessGetSelectedCall += new ProcessButtonPressed
			(CommonContentSpecialTableInterface_ProcessGetSelectedCall);
		CommonContentSpecialTableInterface.ProcessSelectableCreatedCall += new ProcessButtonPressed
			(CommonContentSpecialTableInterface_ProcessSelectableCreatedCall);
		CommonContentSelectionWindow.SetData ("", m_DataBase, null, "FrameContent",
			"Content für " + SelectionChain [0] + " ", SelectedTableID, null, null);
		CommonContentSelectionWindow.ShowDialog ();

		}
예제 #4
0
	void FrameAdministrationItem_Click (object sender, RoutedEventArgs e)
		{
		MenuItem SenderItem = sender as MenuItem;
		m_SelectedFrameID = String.Empty; 
		String [] TagValues = null;
		String SelectedNameID = null;
		if (SenderItem.Tag != null)
			{
			TagValues = SenderItem.Tag.ToString ().Split (';');
			if (TagValues.Length > 2)
				m_SelectedFrameID = TagValues [3];
			else
				m_SelectedFrameID = String.Empty;
			SelectedNameID = TagValues [1];
			}
		if (SenderItem != null)
			{
			WrapPanel MenuPositioner = SenderItem.Parent as WrapPanel;
			if (MenuPositioner != null)
				{
				Window PopupWindow = MenuPositioner.Parent as Window;
				if (PopupWindow != null)
					PopupWindow.Close ();
				}
			}
		CommonSelectionWindow FrameAdministrationWindow = new CommonSelectionWindow ();
		FrameAdministrationWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (FrameAdministrationWindow_ReportNewIDToMeCall);
		ISpecialTableInterface FrameAdministrationInterface = FrameAdministrationWindow as ISpecialTableInterface;
		FrameAdministrationInterface.ProcessGetSelectedCall += new ProcessButtonPressed (FrameAdministrationInterface_ProcessGetSelectedCall);
		if (String.IsNullOrEmpty (m_SelectedFrameID))
			{
			FrameAdministrationWindow.SetData ("", m_DataBase, null, "Frames", "Vorhandene Frames", null, null, null);
			}
		else
			{
			FrameAdministrationWindow.SetAdditionalRowFilterCall += new SetAdditionalRowFilterEvent (FrameAdministrationWindow_SetAdditionalRowFilterCall);
			FrameAdministrationWindow.SetData ("", m_DataBase, null, "Frames", "Frame für " + SelectedNameID + " bearbeiten", null, null, null);
			}
		FrameAdministrationWindow.ShowDialog ();
		Page_Loaded (null, null);
		}
예제 #5
0
	public void Administrator_Button_Click (object sender, RoutedEventArgs e)
		{
		SelectionChain.Clear ();
		CommonSelectionWindow TableSelectionWindow = new CommonSelectionWindow ();
		TableSelectionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (TableSelectionWindow_ReportNewIDToMeCall);
		m_SelectedTableID = String.Empty;
		ISpecialTableInterface TableSpecialTableInterface = TableSelectionWindow as ISpecialTableInterface;
		TableSpecialTableInterface.ProcessGetSelectedCall += new ProcessButtonPressed
			(TableSpecialTableInterface_ProcessGetSelectedCall);
		TableSelectionWindow.SetData ("", m_DataBase, null, "TableDefinitions", "Zu bearbeitende Tabelle", null, null, null);
		TableSelectionWindow.ShowDialog ();
		Page_Loaded (null, null);
		}
예제 #6
0
	void TableSelectionWindow_ReportNewIDToMeCall (object Sender, string NewID)
		{
		if (NewVersion)
			{
	//		CommonPageSelectionManipulation (Sender, NewID);
			return;
			}
		CommonSelectionWindow PageSelectionWindow = new CommonSelectionWindow ();
		TableUserControlHelper Helper = Sender as TableUserControlHelper;
		String SelectedNameID = Helper.GetReadableTextForEntryHandler (NewID);
		SelectionChain.Clear ();
		SelectionChain.Add (SelectedNameID);
		PageSelectionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (PageSelectionWindow_ReportNewIDToMeCall);
		PageSelectionWindow.SetAdditionalRowFilterCall += new SetAdditionalRowFilterEvent (PageSelectionWindow_SetAdditionalRowFilterCall);
		PageSelectionWindow.DoDataGridStylingBeforeShowCall += new DoDataGridStylingBeforeShowEvent
			(PageSelectionWindow_DoDataGridStylingBeforeShowCall);
		PageSelectionWindow.GetAdditionalLateBindingContextMenuEntriesCall
			+= new GetAdditionalLateBindingContextMenuEntriesEvent
				(PageSelectionWindow_GetAdditionalLateBindingContextMenuEntriesCall);
		m_SelectedPageID = String.Empty;
		ISpecialTableInterface PageDefinitionSpecialTableInterface = PageSelectionWindow as ISpecialTableInterface;
		PageDefinitionSpecialTableInterface.ProcessGetSelectedCall += new ProcessButtonPressed
					(PageDefinitionSpecialTableInterface_ProcessGetSelectedCall);
		PageDefinitionSpecialTableInterface.ProcessSelectableCreatedCall += new ProcessButtonPressed
					(PageDefinitionSpecialTableInterface_ProcessSelectableCreatedCall);
		PageSelectionWindow.SetData ("", m_DataBase, null, "PageDefinitions", "Seiten für " + SelectedNameID, NewID, null, null);
		PageSelectionWindow.ShowDialog ();
		}
		void m_AvailableResources_MouseRightButtonUp (object sender, MouseButtonEventArgs e)
			{
			CVM.CommonSelectionWindow TableSelectionWindow = new CommonSelectionWindow ();
			//TableSelectionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (TableSelectionWindow_ReportNewIDToMeCall);
			TableSelectionWindow.SetData ("", m_DataBase, null, "Booking", "Buchungen", null, null, null);
			TableSelectionWindow.ShowDialog ();
			FillBookings (String.Empty);
			return;
			CVM.CommonUserInterfaceWindows StandardTableWindow = new CVM.CommonUserInterfaceWindows ();
			StandardTableWindow.SkipThisColumns = new string [] { "ID" };
			if (StandardTableWindow.SetData (m_DataBase, sender, "", SchemaDataSet,
						null) == false)
				return;
			//if (ProcessSelectableModifyingCall != null)
			//    {
			//    if (ProcessSelectableModifyingCall (PressedButtons.SelectableModifying, StandardTableWindow.ActiveID) == false)
			//        return;
			//    }
			StandardTableWindow.GetReadableTextForEntryCall += new GetReadableTextForEntryEvent
				(StandardTableWindow_GetReadableTextForEntryCall);
			//StandardTableWindow.DoIndividualDataCheckBeforeUpdateCall += new DoIndividualDataCheckBeforeUpdateEvent (StandardTableWindow_DoIndividualDataCheckBeforeUpdateCall);
			if (StandardTableWindow.ShowDialog () == true)
				{
				Type MyType = this.GetType ();
				MyType.InvokeMember (StandardTableWindow.RefreshmentRoutine,
					BindingFlags.InvokeMethod | BindingFlags.DeclaredOnly
					| BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance,
					null, this, new Object [] { StandardTableWindow.ActiveID });
				//if (ProcessSelectableModifiedCall != null)
				//    {
				//    if (ProcessSelectableModifiedCall (PressedButtons.SelectableModified, StandardTableWindow.ActiveID) == false)
				//        return;
				//}

				}

			}
예제 #8
0
	void TableSelectionItem_Click (object sender, RoutedEventArgs e)
		{
		if ((sender as MenuItem) != null)
			{
			WrapPanel MenuPositioner = (sender as MenuItem).Parent as WrapPanel;
			if (MenuPositioner != null)
				{
				Window PopupWindow = MenuPositioner.Parent as Window;
				if (PopupWindow != null)
					PopupWindow.Close ();
				}
			}
		SelectionChain.Clear ();
		CommonSelectionWindow TableSelectionWindow = new CommonSelectionWindow ();
		TableSelectionWindow.ReportNewIDToMeCall += new ReportNewIDToMeEvent (TableSelectionWindow_ReportNewIDToMeCall);
		m_SelectedTableID = String.Empty;
		TableSelectionWindow.GetAdditionalLateBindingContextMenuEntriesCall
			+= new GetAdditionalLateBindingContextMenuEntriesEvent (TableSelectionWindow_GetAdditionalLateBindingContextMenuEntriesCall);
		ISpecialTableInterface TableSpecialTableInterface = TableSelectionWindow as ISpecialTableInterface;
		TableSpecialTableInterface.ProcessGetSelectedCall += new ProcessButtonPressed
			(TableSpecialTableInterface_ProcessGetSelectedCall);
		TableSelectionWindow.SetData ("", m_DataBase, null, "TableDefinitions", "Zu bearbeitende Tabelle", null, null, null);
		TableSelectionWindow.ShowDialog ();
		Page_Loaded (null, null);
		}
		void HandlingRulesButton_Click (object sender, RoutedEventArgs e)
			{
			CVM.CommonSelectionWindow CreationRulesWindow = new CommonSelectionWindow ();
			CreationRulesWindow.SetData ("", m_DataBase, null, "BookableUnitsHandlingRules", "Bearbeitungs Regeln", null, null, null);
			CreationRulesWindow.ShowDialog ();
			return;
			}
		void CreationRulesButton_Click (object sender, RoutedEventArgs e)
			{
			DoAllCreation ();
			CVM.CommonSelectionWindow CreationRulesWindow = new CommonSelectionWindow ();
			CreationRulesWindow.SetData ("", m_DataBase, null, "BookableUnitsCreationRules", "Erzeugungs Regeln", null, null, null);
			CreationRulesWindow.ShowDialog ();
			return;
			}
		void RessourcesManagementButton_Click (object sender, RoutedEventArgs e)
			{
			//m_WorkingAreaGrid.Children.Clear ();
			//m_WorkingAreaGrid.Children.Add (m_AvailableResources);
			//m_AvailableResources.Visibility = System.Windows.Visibility.Visible;
			//Grid.SetColumn (m_AvailableResources, 0);
			//Grid.SetRow (m_AvailableResources, 0);
			//Grid.SetColumnSpan (m_AvailableResources, 3);
			//FillResources (m_AvailableResources);
			CVM.CommonSelectionWindow RessourcesWindow = new CommonSelectionWindow ();
			RessourcesWindow.SetData ("", m_DataBase, null, "Ressource", "Buchbare Einheiten", null, null, null);
			RessourcesWindow.ShowDialog ();
			return;
			}
예제 #12
0
		public void StartSelectionWindow (String SelectedID)
			{
			CommonSelectionWindow SelectionWindow = new CommonSelectionWindow ();
			if (!UpdatesNotAllowed)
				{
				SelectionWindow.InsertSqlStatement = InsertSqlStatement;
				SelectionWindow.DeleteSqlStatement = DeleteSqlStatement;
				}
			SelectionWindow.FillSqlStatement = FillSqlStatement;
			SelectionWindow.ReadableSqlStatement = ReadableSqlStatement;
			SelectionWindow.ProcessSelectableCreatedCall += new ProcessButtonPressed (SelectionWindow_ProcessSelectableCreatedCall);
			
			SelectionWindow.SetAdditionalRowFilterCall += new SetAdditionalRowFilterEvent (SelectionWindow_SetAdditionalRowFilterCall);
			SelectionWindow.SetData (null, m_DataBase, SelectionDataGrid, TableNameToUpdate,
					ConnectorIDNameInView, SelectedID, null, null);
			Nullable<bool> ReturnValue = SelectionWindow.ShowDialog ();
			
			}
예제 #13
0
        private String OpenSelectionWindow (Object Sender,
            WMB.TableContentDefinition SpecialFieldProcessing,
            DataRow RowToProcess, String [] Additionals, String [] BackAdditionals)
            {
            // Return value null means Do Nothing
            // all other Values should be stored into the initiating field
            String TableName = SpecialFieldProcessing.m_ForeignTableName;
            String ConnectionFieldName = SpecialFieldProcessing.m_ForeignKeyName;
            String ExistingForeignKeyNameValue = RowToProcess [SpecialFieldProcessing.m_ForeignKeyName].ToString ();

            if (OpenSelectionWindowCall != null)
                return OpenSelectionWindowCall (m_Bereich, DataBase, Sender,
                    TableName, ExistingForeignKeyNameValue, Additionals, BackAdditionals);

            CommonSelectionWindow SelectionWindow = new CommonSelectionWindow ();
            SelectionWindow.HandleShowAndEditListBoxEntry_MouseRightButtonUpCall +=
                new HandleShowAndEditListBoxEntry_MouseRightButtonUpEvent
                    (SelectionWindow_HandleShowAndEditListBoxEntry_MouseRightButtonUpCall);
            SelectionWindow.ActuallSpecialFieldProcessing = SpecialFieldProcessing;
            if (CheckTheSelectionFillStatementCall != null)
                SelectionWindow.CheckTheSelectionFillStatementCall
                    += new CheckTheSelectionFillStatementEvent (SelectionWindow_CheckTheSelectionFillStatementCall);
            SelectionWindow.SetData (m_Bereich, DataBase, Sender, TableName,
                ConnectionFieldName, ExistingForeignKeyNameValue, Additionals, BackAdditionals);
            Nullable<bool> ReturnValue = SelectionWindow.ShowDialog ();
            return SelectionWindow.NewID;
            }