Esempio n. 1
0
        private void DeleteSubHeader()
        {
            var res = MessageBox.Show(strings.DeleteConfirmationMessage, strings.Delete, MessageBoxButton.OKCancel);

            if (res != MessageBoxResult.OK)
            {
                return;
            }
            RFQHeaderList.Remove(RFQSelectedHeader);
        }
Esempio n. 2
0
 private void InitiateAllStyleSizes()
 {
     Client.GetStyleSizesFromRetailAsync
     (
         new ObservableCollection <string>
         (
             RFQHeaderList.Select(x => x.Style).ToList()
         )
     );
 }
Esempio n. 3
0
 /// <summary>
 /// Adding New Request For Qutation Sub Header.
 /// </summary>
 private void AddNewDetail()
 {
     if (RFQSelectedHeader != null)
     {
         if ((RFQHeaderList.IndexOf(RFQSelectedHeader)) == (RFQHeaderList.Count - 1))
         {
             if (!RFQHeaderList[(RFQHeaderList.Count - 1)].ObjStatus.IsEmpty)
             {
                 RFQHeaderList.Add(new RFSSubHeader(RFQItems, RFQServices)
                 {
                     ParentObj = this
                 });
                 RFQSelectedHeader = RFQHeaderList[(RFQHeaderList.Count - 1)];
                 if (TransID != null)
                 {
                     RFQSelectedHeader.MainHeaderTransID = TransID;
                 }
                 RFQSelectedHeader.StyleSelected += (s, e) => InitiateAllStyleSizes();
             }
         }
     }
     else
     {
         RFQHeaderList.Add(new RFSSubHeader(RFQItems, RFQServices)
         {
             ParentObj = this
         });
         RFQSelectedHeader = RFQHeaderList[(RFQHeaderList.Count - 1)];
         if (TransID != null)
         {
             RFQSelectedHeader.MainHeaderTransID = TransID;
         }
     }
     RFQSelectedHeader.ObjStatus.IsEmpty = true;
     RFQSelectedHeader.ObjStatus.IsNew   = true;
     RFQSelectedHeader.StyleSelected    += (s, e) => InitiateAllStyleSizes();
 }