コード例 #1
0
 private void StaffCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (StaffFunctions.IgnoreAnyChanges())
     {
         StaffFunctions.ClearAnyChanges();
         selectedStaffName           = StaffCombo.SelectedItem.ToString();
         Globals.SelectedStaffMember = StaffFunctions.GetStaffMemberByName(selectedStaffName);
         selectedStaffID             = Globals.SelectedStaffMember.ID;
         refreshEntitySummaries(true);
     }
 }
コード例 #2
0
        // ---------------------- //
        // -- Event Management -- //
        // ---------------------- //

        // Generic (shared) control events //

        // Control-specific events //

        private void MainManagersCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            string selectedName = MainManagersCombo.SelectedValue.ToString();

            if (selectedName != Globals.AllRecords)
            {
                Staff accountManager = StaffFunctions.GetStaffMemberByName(selectedName);
                accountManagerID = accountManager.ID;
            }
            else
            {
                accountManagerID = 0;
            }
            refreshClientGrid();
        }