Ejemplo n.º 1
0
        protected void score_GotReplayData(object sender)
        {
            score.GotReplayData -= score_GotReplayData;


            LoadingReplay = false;

            if (score.Replay != null && score.Replay.Count > 0)
            {
                NotificationManager.ClearMessageMassive();

                StreamingManager.StopSpectating(false);

                AudioEngine.PlaySamplePositional(@"menuhit");
                InputManager.ReplayMode  = true;
                InputManager.ReplayScore = score;
                Player.Seed = score.Seed;
                GameBase.ChangeMode(OsuModes.Play);
            }
            else
            {
                NotificationManager.ShowMessageMassive("Replay data is not available for this play!", 2000);
                spriteManagerWideScrolling.BlacknessTarget = 0;
                b_replay.FadeOut(100);
                b_replay.HandleInput = false;
            }
        }
Ejemplo n.º 2
0
        protected void LoadReplay()
        {
            if (score.IsOnline)
            {
                OnlineLoadReplay(score_GotReplayData);
            }
            else
            {
                if (score.Replay == null || score.Replay.Count == 0)
                {
                    if (score.ReplayCompressed == null) //SaveToDisk nulls this when it activates.
                    {
                        score.LoadLocalData();
                    }

                    score.ReadReplayData();
                }

                if (score.Replay != null && score.Replay.Count > 0)
                {
                    AudioEngine.PlaySamplePositional(@"menuhit");

                    StreamingManager.StopSpectating(false);

                    InputManager.ReplayMode  = true;
                    InputManager.ReplayScore = score;
                    Player.Seed = score.Seed;
                    GameBase.ChangeMode(OsuModes.Play);
                }
                else
                {
                    NotificationManager.ShowMessage("This score has no replay data saved!", Color.Red, 5000);
                }
            }
        }
        public BankSpecificSettingsNO(CreditorPaymentFormat credPaymFormat)
        {
            CreditorPaymentFormatClientISONO credPaymFormatISONO = new CreditorPaymentFormatClientISONO();

            StreamingManager.Copy(credPaymFormat, credPaymFormatISONO);
            CredPaymFormat = credPaymFormatISONO;
        }
        public BankSpecificSettingsSE(CreditorPaymentFormat credPaymFormat)
        {
            CreditorPaymentFormatClientISOSE credPaymFormatISOSE = new CreditorPaymentFormatClientISOSE();

            StreamingManager.Copy(credPaymFormat, credPaymFormatISOSE);
            CredPaymFormat = credPaymFormatISOSE;
        }
Ejemplo n.º 5
0
 public override void Utility_Refresh(string screenName, object argument)
 {
     object[] args = argument as object[];
     if (screenName == TabControls.CrmProspectPage2 || screenName == TabControls.DebtorAccountPage2)
     {
         var gridSourceList            = (System.Collections.IList)dgCrmDebtorProspect.ItemsSource;
         UnicontaBaseEntity objectView = null;
         if (args[1] is CrmProspectClient)
         {
             objectView = StreamingManager.Copy(args[1] as CrmProspectClient, new CrmProspectView());
         }
         else if (args[1] is DebtorClient)
         {
             objectView = StreamingManager.Copy(args[1] as DebtorClient, new CrmDebtorView());
         }
         var index = gridSourceList.IndexOf(objectView);
         if (index > -1)
         {
             gridSourceList[index] = objectView;
             int rowHandle = dgCrmDebtorProspect.GetRowHandleByListIndex(index);
             dgCrmDebtorProspect.RefreshRow(rowHandle);
             dgCrmDebtorProspect.SelectedItem = objectView;
         }
         else if (objectView != null)
         {
             gridSourceList.Add(objectView);
             dgCrmDebtorProspect.ItemsSource  = null;
             dgCrmDebtorProspect.ItemsSource  = gridSourceList;
             dgCrmDebtorProspect.SelectedItem = objectView;
             dgCrmDebtorProspect.Visibility   = Visibility.Visible;
         }
     }
 }
Ejemplo n.º 6
0
 private void InitPage()
 {
     BusyIndicator = busyIndicator;
     layoutControl = layoutItems;
     if (LoadedRow == null)
     {
         frmRibbon.DisableButtons(new string[] { "Delete" });
         if (!isCopiedRow)
         {
             _bankImportFormatClient           = CreateNew() as BankImportFormatClient;
             _bankImportFormatClient.Seperator = UtilFunctions.GetDefaultDeLimiter();
             _bankImportFormatClient.CountryId = api.CompanyEntity._CountryId;
         }
     }
     else if (LoadedRow.CompanyId == -1)
     {
         isReadOnly = true;
         _bankImportFormatClient = CreateNew() as BankImportFormatClient;
         StreamingManager.Copy(LoadedRow, _bankImportFormatClient);
         _bankImportFormatClient.ClearCompany();
     }
     cmbFormat.ItemsSource    = Enum.GetValues(typeof(Uniconta.DataModel.BankImportFormatType));
     layoutItems.DataContext  = _bankImportFormatClient;
     frmRibbon.OnItemClicked += frmRibbon_OnItemClicked;
 }
        public async void CopyBalance()
        {
            ErrorCodes res = ErrorCodes.FieldCannotBeBlank;

            busyIndicator.IsBusy = true;
            Balance newItem = null;

            if (objBalance != null && objBalance.RowId != 0)
            {
                newItem = new Balance();
                StreamingManager.Copy(objBalance, newItem);

                var name = newItem.Name + Uniconta.ClientTools.Localization.lookup("Copy");
                newItem._Name = name;
                if (objBalance._Name != null)
                {
                    res = await api.Insert(newItem);
                }
                else
                {
                    res = ErrorCodes.FieldCannotBeBlank;
                }
            }
            busyIndicator.IsBusy = false;
            if (res == ErrorCodes.Succes)
            {
                itemsBalance.Add(newItem);
                cbBalance.SelectedItem = newItem;
            }
            else
            {
                UtilDisplay.ShowErrorCode(res);
            }
        }
Ejemplo n.º 8
0
        async private Task PrintDebtorPaymentStatementPage(CompanyClient companyClient, byte[] logo, DebtorPaymentStatementList selectedItem, string emailType)
        {
            int indexDebtorEmailType = AppEnums.DebtorEmailType.IndexOf(emailType);
            var debtorEmailType      = (DebtorEmailType)indexDebtorEmailType;

            var dbClientTotal = selectedItem.ChildRecords.FirstOrDefault();

            if (dbClientTotal != null)
            {
                var debtorClient = new DebtorClient();
                StreamingManager.Copy(dbClientTotal.Debtor, debtorClient);

                var debtorMessageClient = await Utility.GetDebtorMessageClient(api, debtorClient._Language, debtorEmailType);

                string messageText = debtorMessageClient?.Text;

                var dbStatementCustomPrint = new DebtorPaymentStatementCustPrint(api, selectedItem, companyClient, debtorClient,
                                                                                 txtDateFrm.DateTime, txtDateTo.DateTime, logo, debtorEmailType.ToString(), this.AddInterest, messageText);

                object[] obj = new object[1];
                obj[0] = dbStatementCustomPrint as CustomPrintTemplateData;

                AddDockItem(TabControls.DebtorPaymentStatementPrintPage, obj, true, string.Format("{0} : {1},{2}", Uniconta.ClientTools.Localization.lookup("PrintPreview"), selectedItem.Name, selectedItem.AccountNumber));
            }
        }
Ejemplo n.º 9
0
        private void GeneratePrimo()
        {
            var p = getSelectedItem();

            if (p == null)
            {
                return;
            }
            CWCreatePrimo dialogPrimo = new CWCreatePrimo(this.api, p);

            dialogPrimo.Closed += delegate
            {
                if (dialogPrimo.DialogResult == true)
                {
                    var s = string.Format(Uniconta.ClientTools.Localization.lookup("PrimoOnDate"), p._FromDate.ToShortDateString());
                    var EraseYearWindowDialog = new EraseYearWindow(s, true);
                    EraseYearWindowDialog.Closed += async delegate
                    {
                        if (EraseYearWindowDialog.DialogResult == true)
                        {
                            ErrorCodes res = await FiApi.GeneratePrimoTransactions(p, dialogPrimo.BalanceName, dialogPrimo.PLText, dialogPrimo.Voucher, dialogPrimo.NumberserieText);

                            UtilDisplay.ShowErrorCode(res);
                            if (res == ErrorCodes.Succes && !p._Current)
                            {
                                var text = string.Format(Uniconta.ClientTools.Localization.lookup("MoveToOBJ"), string.Format("{0} - {1}", p._FromDate.ToShortDateString(), p._ToDate.ToShortDateString()));
                                CWConfirmationBox dialog = new CWConfirmationBox(text, Uniconta.ClientTools.Localization.lookup("IsYearEnded"), true);
                                dialog.Closing += delegate
                                {
                                    var res2 = dialog.ConfirmationResult;
                                    if (res2 == CWConfirmationBox.ConfirmationResultEnum.Yes)
                                    {
                                        var source = (IList)dgFinanceYearGrid.ItemsSource;
                                        if (source != null)
                                        {
                                            IEnumerable <CompanyFinanceYearClient> gridItems = source.Cast <CompanyFinanceYearClient>();
                                            foreach (var y in gridItems)
                                            {
                                                if (y._Current)
                                                {
                                                    y.Current = false;
                                                    break;
                                                }
                                            }
                                        }
                                        var org = StreamingManager.Clone(p);
                                        p.Current = true;
                                        api.UpdateNoResponse(org, p);
                                    }
                                    ;
                                };
                                dialog.Show();
                            }
                        }
                    };
                    EraseYearWindowDialog.Show();
                }
            };
            dialogPrimo.Show();
        }
Ejemplo n.º 10
0
        public BankSpecificSettingsNL(CreditorPaymentFormat credPaymFormat)
        {
            CreditorPaymentFormatClientISONL credPaymFormatISONL = new CreditorPaymentFormatClientISONL();

            StreamingManager.Copy(credPaymFormat, credPaymFormatISONL);
            CredPaymFormat = credPaymFormatISONL;
        }
Ejemplo n.º 11
0
        public BankSpecificSettingsCH(CreditorPaymentFormat credPaymFormat)
        {
            CreditorPaymentFormatClientISOCH credPaymFormatISOCH = new CreditorPaymentFormatClientISOCH();

            StreamingManager.Copy(credPaymFormat, credPaymFormatISOCH);
            CredPaymFormat = credPaymFormatISOCH;
        }
        void BindClosingSheet(GLAccountClosingSheetClient acc)
        {
            if (acc != null)
            {
                this.primo         = acc.OrgBalance;
                this.masterAccount = acc;
                var Account = acc._Account;
                dgClosingSheetLine.MasterAccount = Account;

                List <GLClosingSheetLineLocal> lst = new List <GLClosingSheetLineLocal>();
                if (acc.Lines != null)
                {
                    foreach (var l in acc.Lines)
                    {
                        var lin = new GLClosingSheetLineLocal();
                        StreamingManager.Copy(l, lin);
                        lst.Add(lin);
                        lin.Swap = (lin._OffsetAccount == Account);
                    }
                }
                dgClosingSheetLine.ItemsSource = lst;
                dgClosingSheetLine.SelectRange(0, 0);
                dgClosingSheetLine.Visibility = Visibility.Visible;
            }
        }
        public async override Task InitQuery()
        {
            var master = stdVariant;

            if (master == null)
            {
                return;
            }
            var Combinations = master.Combinations ?? await master.LoadCombinations(api);

            if (Combinations == null)
            {
                return;
            }
            int desc = invItem._Decimals;
            var lst  = new List <ItemVariantLocal>();

            foreach (var rec in Combinations)
            {
                var r2 = new ItemVariantLocal(desc);
                StreamingManager.Copy(rec, r2);
                lst.Add(r2);
            }
            lst.Sort(new ItemVariantLocalSort());
            dgItemVariant.ItemsSource = lst;
            dgItemVariant.Visibility  = Visibility.Visible;
        }
Ejemplo n.º 14
0
        private void UpdateDate(DateTime date, DebtorTransPayment[] payments, bool isInterestnote)
        {
            if (payments == null || payments.Length == 0)
            {
                return;
            }

            var orgList = new DebtorTransPayment[payments.Length];

            for (int i = 0; (i < payments.Length); i++)
            {
                var debtTrans = payments[i];
                var org       = new DebtorTransPayment();
                StreamingManager.Copy(debtTrans, org);
                if (isInterestnote)
                {
                    debtTrans.LastInterest = date;
                }
                else
                {
                    debtTrans.LastCollectionLetter = date;
                    int collectionLetter = debtTrans._CollectionsLetters + 1;
                    debtTrans._CollectionsLetters = (byte)collectionLetter;
                }
                orgList[i] = org;
            }
            api.UpdateNoResponse(orgList, payments);
        }
Ejemplo n.º 15
0
        async private Task <DebtorCollectionReportClient> GenerateStandardCollectionReport(CompanyClient companyClient, DateTime dueDate, DebtorPaymentStatementList selectedItem, byte[] logo, DebtorEmailType debtorEmailType)
        {
            var dbClientTotal = selectedItem.ChildRecords.FirstOrDefault();
            var debtorType    = Uniconta.Reports.Utilities.ReportUtil.GetUserType(typeof(DebtorClient), api.CompanyEntity);
            var debtorClient  = Activator.CreateInstance(debtorType) as DebtorClient;

            StreamingManager.Copy(dbClientTotal.Debtor, debtorClient);

            var lan = UtilDisplay.GetLanguage(debtorClient, companyClient);

            if (lastMessage == null || messageLanguage != lan)
            {
                messageLanguage = lan;
                var res = await Utility.GetDebtorMessageClient(api, lan, debtorEmailType);

                if (res != null)
                {
                    lastMessage = res._Text;
                }
                else
                {
                    lastMessage = string.Empty;
                }
            }

            debtorClient.OpenTransactions = selectedItem.ChildRecords.ToArray();
            string _reportName = StandardReportUtility.GetLocalizedReportName(debtorClient, companyClient, debtorEmailType.ToString());

            return(new DebtorCollectionReportClient(companyClient, debtorClient, dueDate, logo, this.AddInterest, _reportName, lastMessage));
        }
 void insertOrUpdateAccount(string account, GLClosingSheetLineLocal lin, GLClosingSheetLineLocal clone)
 {
     if (account != null && account != masterAccount._Account)
     {
         var acc = FindAccount(account);
         if (acc != null)
         {
             var accLines = acc.Lines;
             if (accLines == null)
             {
                 acc.Lines = new List <GLClosingSheetLineLocal>()
                 {
                     clone
                 }
             }
             ;
             else
             {
                 var linOffset = FindLine(accLines, lin.RowId);
                 if (linOffset == null)
                 {
                     ((List <GLClosingSheetLineLocal>)accLines).Add(clone);
                 }
                 else
                 {
                     StreamingManager.Copy(lin, linOffset);
                 }
             }
             SumLines(acc);
         }
     }
 }
Ejemplo n.º 17
0
        protected void LoadReplay()
        {
            if (score.isOnline)
            {
                OnlineLoadReplay(score_GotReplayData);
            }
            else
            {
                if (score.replay == null || score.replay.Count == 0)
                {
                    score.ReadReplayData();
                }

                if (score.replay != null && score.replay.Count > 0)
                {
                    AudioEngine.PlaySample(AudioEngine.s_MenuHit);

                    StreamingManager.StopSpectating(false);

                    InputManager.ReplayMode  = true;
                    InputManager.ReplayScore = score;
                    GameBase.ChangeMode(Modes.Play);
                }
                else
                {
                    GameBase.ShowMessage("This score has no replay data saved!", Color.Red, 5000);
                }
            }
        }
Ejemplo n.º 18
0
        public BankSpecificSettingsLT(CreditorPaymentFormat credPaymFormat)
        {
            CreditorPaymentFormatClientISOLT credPaymFormatISOLT = new CreditorPaymentFormatClientISOLT();

            StreamingManager.Copy(credPaymFormat, credPaymFormatISOLT);
            CredPaymFormat = credPaymFormatISOLT;
        }
        private void btnOptions_Click(object sender, RoutedEventArgs e)
        {
            switch (editrow.PaymentMethod)
            {
            case DebtorPaymFormatType.Iceland:
                CWDebtorPaymentSetupIceland dialogIceland = new CWDebtorPaymentSetupIceland(this.api, editrow);
                dialogIceland.Closing += delegate
                {
                    if (dialogIceland.DialogResult == true)
                    {
                        StreamingManager.Copy(dialogIceland.paymentFormatIceland, editrow);
                    }
                };
                dialogIceland.Show();
                break;

#if !SILVERLIGHT
            case DebtorPaymFormatType.NetsBS:
                CWDebtorPaymentSetupNets dialogNets = new CWDebtorPaymentSetupNets(this.api, editrow);
                dialogNets.Closing += delegate
                {
                    if (dialogNets.DialogResult == true)
                    {
                        StreamingManager.Copy(dialogNets.paymentFormatNets, editrow);
                    }
                };
                dialogNets.Show();
                break;
#endif
            default:
                UnicontaMessageBox.Show(Uniconta.ClientTools.Localization.lookup("NoOptions"), Uniconta.ClientTools.Localization.lookup("Warning"));
                break;
            }
        }
Ejemplo n.º 20
0
 public override void Utility_Refresh(string screenName, object argument = null)
 {
     if (screenName == TabControls.ClosingSheetLinesAll)
     {
         BindGrid();
         mainList = null;
         ClosingSheetHasLinesList = null;
     }
     else if (screenName == TabControls.GLAccountPage2)
     {
         var args   = argument as object[];
         var entity = args[1] as GLAccountClient;
         if (entity != null)
         {
             var closingSheetAccount = new GLAccountClosingSheetClient();
             StreamingManager.Copy(entity, closingSheetAccount);
             args[1] = closingSheetAccount;
             dgGLTable.UpdateItemSource(args);
         }
     }
     else if (screenName == TabControls.UserNotesPage || screenName == TabControls.UserDocsPage && argument != null)
     {
         dgGLTable.UpdateItemSource(argument);
     }
 }
Ejemplo n.º 21
0
        public BankSpecificSettingsUK(CreditorPaymentFormat credPaymFormat)
        {
            CreditorPaymentFormatClientISOUK credPaymFormatISOUK = new CreditorPaymentFormatClientISOUK();

            StreamingManager.Copy(credPaymFormat, credPaymFormatISOUK);
            CredPaymFormat = credPaymFormatISOUK;
        }
        public static CompanyClient getCompany(Company company)
        {
            CompanyClient companyClient = new CompanyClient();

            StreamingManager.Copy(company, companyClient);
            return(companyClient);
        }
        private UnicontaBaseEntity ConvertToCorasauEntity(Appointment appointment)
        {
            var employeJournalline = CreateSourceObject(appointment) as EmployeeJournalLineClient;

            if (employeJournalline == null)
            {
                employeJournalline = new EmployeeJournalLineClient();
            }

            employeJournalline.FromTime     = appointment.Start;
            employeJournalline.ToTime       = appointment.End;
            employeJournalline.Employee     = _employee;
            employeJournalline.Project      = employeeScheduler.Storage.AppointmentStorage.Labels[appointment.LabelId].DisplayName;
            employeJournalline.CostCategory = employeeScheduler.Storage.AppointmentStorage.Statuses[appointment.StatusId].DisplayName;
            employeJournalline.Qty          = appointment.CustomFields["FieldQty"] != null?Convert.ToDouble(appointment.CustomFields["FieldQty"]) : 0.0;

            employeJournalline.SalesPrice = appointment.CustomFields["FieldSalesPrice"] != null?Convert.ToDouble(appointment.CustomFields["FieldSalesPrice"]) : 0.0;

            employeJournalline.CostPrice = appointment.CustomFields["FieldCostPrice"] != null?Convert.ToDouble(appointment.CustomFields["FieldCostPrice"]) : 0.0;

            employeJournalline.DiscountPct = appointment.CustomFields["FieldDiscountPct"] != null?Convert.ToDouble(appointment.CustomFields["FieldDiscountPct"]) : 0.0;

            employeJournalline.Text = appointment.CustomFields["FieldText"] != null?Convert.ToString(appointment.CustomFields["FieldText"]) : string.Empty;

            return(StreamingManager.Clone(employeJournalline));
        }
Ejemplo n.º 24
0
        public void SetSpectate(int userId)
        {
            if (!GameBase.Tournament || GameBase.FadeState != FadeStates.Idle)
            {
                return;
            }

            GameBase.Scheduler.Add(delegate
            {
                User found = BanchoClient.GetUserById(userId);
                if (found != null && found == StreamingManager.CurrentlySpectating)
                {
                    if (GameBase.TourneySpectatorName != null)
                    {
                        GameBase.TourneySpectatorName.Text = found.Name;
                    }
                    return;
                }

                StreamingManager.StopSpectating();
                if (found != null)
                {
                    found.BeatmapId              = 0;
                    found.BeatmapName            = string.Empty;
                    found.CurrentBeatmapChecksum = string.Empty;
                    StreamingManager.StartSpectating(found);
                }
            });
        }
Ejemplo n.º 25
0
 public ProdCatalogPage2(UnicontaBaseEntity sourceData, bool isEdit = true) : base(sourceData, isEdit)
 {
     InitializeComponent();
     if (!isEdit)
     {
         editRow = (ProdCatalogClient)StreamingManager.Clone(sourceData);
     }
     InitPage();
 }
Ejemplo n.º 26
0
 /*For Edit*/
 public DebtorGroupPostingPage2(UnicontaBaseEntity sourceData, bool isEdit = true) : base(sourceData, isEdit)
 {
     InitializeComponent();
     if (!isEdit)
     {
         editRow = (DCGroupPostingClient)StreamingManager.Clone(sourceData);
     }
     InitPage(api);
 }
Ejemplo n.º 27
0
        private void LocalMenu_OnItemClicked(string ActionType)
        {
            var selectedItem = dgEmailSetupGrid.SelectedItem as CompanySMTPClient;

            switch (ActionType)
            {
            case "AddRow":
                AddDockItem(TabControls.EmailSetupPage2, api, Uniconta.ClientTools.Localization.lookup("EmailSetup"), "Add_16x16.png");
                break;

            case "CopyRow":
                if (selectedItem == null)
                {
                    return;
                }
                object[] copyParam = new object[2];
                copyParam[0] = StreamingManager.Clone(selectedItem);
                copyParam[1] = false;
                AddDockItem(TabControls.EmailSetupPage2, copyParam, string.Format("{0}: {1}", string.Format(Uniconta.ClientTools.Localization.lookup("CopyOBJ"), Uniconta.ClientTools.Localization.lookup("EmailSetup")), selectedItem._Name), "Copy_16x16.png");
                break;

            case "EditRow":
                if (selectedItem == null)
                {
                    return;
                }
                object[] editParam = new object[2];
                editParam[0] = selectedItem;
                editParam[1] = true;
                AddDockItem(TabControls.EmailSetupPage2, editParam, string.Format("{0}: {1}", Uniconta.ClientTools.Localization.lookup("EmailSetup"), selectedItem._Name), "Edit_16x16.png");
                break;

            case "ApprovalSetup":
                var smtps = dgEmailSetupGrid.ItemsSource as IList <CompanySMTPClient>;
                var approverEmailDialog = new CWApprovalEmailSetup(api, smtps);
                approverEmailDialog.Show();
                break;

            case "AddNote":
                if (selectedItem != null)
                {
                    AddDockItem(TabControls.UserNotesPage, dgEmailSetupGrid.syncEntity);
                }
                break;

            case "AddDoc":
                if (selectedItem != null)
                {
                    AddDockItem(TabControls.UserDocsPage, dgEmailSetupGrid.syncEntity, string.Format("{0}: {1}", Uniconta.ClientTools.Localization.lookup("Documents"), selectedItem._Name));
                }
                break;

            default:
                gridRibbon_BaseActions(ActionType);
                break;
            }
        }
Ejemplo n.º 28
0
 public CreditorGroupPostingPage2(UnicontaBaseEntity sourceData, UnicontaBaseEntity groupMaster, bool isEdit = true) : base(sourceData, isEdit)
 {
     InitializeComponent();
     if (!isEdit)
     {
         editRow = (DCGroupPostingClient)StreamingManager.Clone(sourceData);
     }
     isGroupEnabled = !isEdit;
     InitPage(api, groupMaster);
 }
Ejemplo n.º 29
0
 void ClearFields(CreditorOrderClient initialOrder)
 {
     Order = StreamingManager.Clone(initialOrder) as CreditorOrderClient;
     Order.PropertyChanged += Editrow_PropertyChanged;
     this.DataContext       = Order;
     dgCreditorOrderLineGrid.UpdateMaster(Order);
     dgCreditorOrderLineGrid.ItemsSource = null;
     dgCreditorOrderLineGrid.AddFirstRow();
     LeAccount.Focus();
 }
        private UnicontaBaseEntity CreateSourceObject(Appointment appointment)
        {
            var source = appointment.GetSourceObject(employeeScheduler.GetCoreStorage()) as EmployeeJournalLineClient;

            if (source == null)
            {
                return(null);
            }
            return(StreamingManager.Clone(source));
        }
 public void SetUp()
 {
     _mockApiConnection = MockRepository.GenerateMock<IApiConnection>();
     _mockLightStreamerConnectionManager = MockRepository.GenerateMock<LightStreamerConnectionManager>(_mockApiConnection);
     _streamingManager = new StreamingManager(_mockLightStreamerConnectionManager);
 }