Esempio n. 1
0
 private void OnLoading(LoadingEventArgs e)
 {
     if (Loading != null)
     {
         Loading(this, e);
     }
 }
 protected virtual void OnBackupProgress(LoadingEventArgs e)
 {
     if (LoadBackupsProgress != null)
     {
         LoadBackupsProgress(this, e);
     }
 }
        public void StopLoading()
        {
            var args = new LoadingEventArgs()
            {
                Show = false
            };

            OnLoadingEvent?.Invoke(this, args);
        }
        public void StartLoading()
        {
            var args = new LoadingEventArgs()
            {
                Show = true
            };

            OnLoadingEvent?.Invoke(this, args);
        }
        private static async void LoadAppData_LoadingProgress(object sender, LoadingEventArgs e)
        {
            int percent = (int)Math.Round((100.0 * e.Current) / e.Total);

            //await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, async () =>
            //{
            await UpdateStatusBar("Updating app list cache " + percent.ToString() + "%");

            //});
        }
        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            // Write your code here.
            DataConnection connection = this.DataConnections["EmpDesignation"];
            connection.Execute();

            DataConnection connectionEmpCountry = this.DataConnections["EmpCountry"];
            connectionEmpCountry.Execute();

            //XPathNavigator form = this.MainDataSource.CreateNavigator();
            //form.SelectSingleNode("/my:EmployeeForm/my:txtUserID", NamespaceManager).SetValue(this.User.LoginName);
        }
 private void Bl_LoadBackupsProgress(object sender, LoadingEventArgs e)
 {
     if (e.Current == 0)
     {
         progressStatus.Text = "Loading backups...";
     }
     else
     {
         int percent = (int)Math.Round((100.0 * e.Current) / e.Total);
         progressStatus.Text = "Loading backups " + percent.ToString() + "%";
     }
 }
        /// <summary>
        /// Loads the items based on the criteria specified
        /// </summary>
        /// <param name="Command">Command to run</param>
        /// <param name="Type">Command type</param>
        /// <param name="ConnectionString">Connection string name</param>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <returns>The specified items</returns>
        public static IEnumerable <ObjectType> All(string Command, CommandType Type, string ConnectionString, params object[] Params)
        {
            IEnumerable <ObjectType> instance = new List <ObjectType>();
            var E = new LoadingEventArgs();

            OnLoading(null, E);
            if (!E.Stop)
            {
                instance = QueryProvider.All <ObjectType>(Command, Type, ConnectionString, Params);
                foreach (ObjectType Item in instance)
                {
                    Item.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
        /// <summary>
        /// Loads the items based on type
        /// </summary>
        /// <param name="PageSize">Page size</param>
        /// <param name="CurrentPage">Current page (0 based)</param>
        /// <param name="OrderBy">The order by portion of the query</param>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <returns>All items that fit the specified query</returns>
        public static IEnumerable <ObjectType> Paged(int PageSize = 25, int CurrentPage = 0, string OrderBy = "", params IParameter[] Params)
        {
            IEnumerable <ObjectType> instance = new List <ObjectType>();
            var E = new LoadingEventArgs();

            OnLoading(null, E);
            if (!E.Stop)
            {
                instance = QueryProvider.Paged <ObjectType>(PageSize, CurrentPage, OrderBy, Params);
                foreach (ObjectType Item in instance)
                {
                    Item.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
        /// <summary>
        /// Loads the items based on type
        /// </summary>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <returns>All items that fit the specified query</returns>
        public static IEnumerable <ObjectType> All(params IParameter[] Params)
        {
            IEnumerable <ObjectType> instance = new List <ObjectType>();
            var E = new LoadingEventArgs();

            OnLoading(null, E);
            if (!E.Stop)
            {
                instance = QueryProvider.All <ObjectType>(Params);
                foreach (ObjectType Item in instance)
                {
                    Item.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
        /// <summary>
        /// Loads the item based on the criteria specified
        /// </summary>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <returns>The specified item</returns>
        public static ObjectType Any(params IParameter[] Params)
        {
            var instance = new ObjectType();
            var E        = new LoadingEventArgs();

            E.Content = Params;
            instance.OnLoading(E);
            if (!E.Stop)
            {
                instance = QueryProvider.Any <ObjectType>(Params);
                if (instance != null)
                {
                    instance.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
        /// <summary>
        /// Loads the item based on the criteria specified
        /// </summary>
        /// <param name="Command">Command to run</param>
        /// <param name="Type">Command type</param>
        /// <param name="ConnectionString">Connection string name</param>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <returns>The specified item</returns>
        public static ObjectType Any(string Command, CommandType Type, string ConnectionString, params object[] Params)
        {
            var instance = new ObjectType();
            var E        = new LoadingEventArgs();

            E.Content = Params;
            instance.OnLoading(E);
            if (!E.Stop)
            {
                instance = QueryProvider.Any <ObjectType>(Command, Type, ConnectionString, Params);
                if (instance != null)
                {
                    instance.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
        /// <summary>
        /// Loads the items based on type
        /// </summary>
        /// <param name="OrderBy">What the data is ordered by</param>
        /// <param name="PageSize">Page size</param>
        /// <param name="CurrentPage">Current page (0 based)</param>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <param name="Session">ORM session variable</param>
        /// <param name="Command">Command to run</param>
        /// <returns>All items that fit the specified query</returns>
        public static IEnumerable <ObjectType> PagedCommand(Session Session, string Command, string OrderBy = "", int PageSize = 25, int CurrentPage = 0, params IParameter[] Params)
        {
            IEnumerable <ObjectType> instance = new List <ObjectType>();
            LoadingEventArgs         E        = new LoadingEventArgs();

            ObjectBaseClass <ObjectType, IDType> .OnLoading(null, E);

            if (!E.Stop)
            {
                instance = Session.PagedCommand <ObjectType>(Command, OrderBy, PageSize, CurrentPage, Params);
                foreach (ObjectType Item in instance)
                {
                    Item.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
        /// <summary>
        /// Loads the items based on type
        /// </summary>
        /// <param name="Command">Command</param>
        /// <param name="CommandType">Command type</param>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <param name="Session">ORM session variable</param>
        /// <returns>All items that fit the specified query</returns>
        public static IEnumerable <ObjectType> All(Session Session, string Command, CommandType CommandType, params IParameter[] Params)
        {
            IEnumerable <ObjectType> instance = new List <ObjectType>();
            LoadingEventArgs         E        = new LoadingEventArgs();

            ObjectBaseClass <ObjectType, IDType> .OnLoading(null, E);

            if (!E.Stop)
            {
                instance = Session.All <ObjectType>(Command, CommandType, Params);
                foreach (ObjectType Item in instance)
                {
                    Item.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
        /// <summary>
        /// Loads the item based on the ID
        /// </summary>
        /// <param name="Params">Parameters used to specify what to load</param>
        /// <param name="Session">ORM session variable</param>
        /// <returns>The specified item</returns>
        public static ObjectType Any(Session Session, params IParameter[] Params)
        {
            ObjectType       instance = new ObjectType();
            LoadingEventArgs E        = new LoadingEventArgs();

            E.Content = Params;
            instance.OnLoading(E);
            if (!E.Stop)
            {
                instance = Session.Any <ObjectType>(Params);
                if (instance != null)
                {
                    instance.OnLoaded(new LoadedEventArgs());
                }
            }
            return(instance);
        }
Esempio n. 16
0
        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            // Write your code here.
            //DataConnection connection = this.DataConnections["EmpDesignation"];
            //connection.Execute();
            SharePointListRWQueryConnection spsConn = (SharePointListRWQueryConnection)this.DataSources["EmpDesignation"].QueryConnection;
            spsConn.Execute();

            DataConnection connectionEmpCountry = this.DataConnections["EmpCountry"];
            connectionEmpCountry.Execute();

            DataConnection connectionSiteGroups = this.DataConnections["SiteGroupsRestService"];
            connectionSiteGroups.Execute();

            MainDataSource.CreateNavigator().SelectSingleNode("/my:EmployeeForm/my:siteUrl", NamespaceManager).SetValue(spsConn.SiteUrl.ToString());
            LoadUserSiteGroups();
        }
Esempio n. 17
0
        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            // Write your code here.
            //DataConnection connection = this.DataConnections["EmpDesignation"];
            //connection.Execute();
            SharePointListRWQueryConnection spsConn = (SharePointListRWQueryConnection)this.DataSources["EmpDesignation"].QueryConnection;

            spsConn.Execute();

            DataConnection connectionEmpCountry = this.DataConnections["EmpCountry"];

            connectionEmpCountry.Execute();

            DataConnection connectionSiteGroups = this.DataConnections["SiteGroupsRestService"];

            connectionSiteGroups.Execute();

            MainDataSource.CreateNavigator().SelectSingleNode("/my:EmployeeForm/my:siteUrl", NamespaceManager).SetValue(spsConn.SiteUrl.ToString());
            LoadUserSiteGroups();
        }
Esempio n. 18
0
        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            //Form1 form1 = new Form1();
            //form1.ShowDialog();


            //this.Application.Quit();
            //DataConnections["Version"].Execute();

            //string validVerison = DataSources["Version"].CreateNavigator().SelectSingleNode("dataroot/Verzio/Bankjegy", NamespaceManager).Value;
            //string currentVersion = MainDataSource.CreateNavigator().SelectSingleNode("/my:sajátMezők/my:Alapadatok/my:Version", NamespaceManager).Value;

            ////if (Convert.ToInt32(validVerison.ToString().Substring(3, 1)) == Convert.ToInt32(currentVersion.ToString().Substring(3, 1)))

            //if (validVerison == currentVersion)
            //{
            //    MessageBox.Show("érvényes\nvalid: " + validVerison.ToString().Substring(3, 1) + "\n\ncurrent: " + currentVersion.ToString().Substring(3, 1));
            //}
            //else
            //{
            //    MessageBox.Show("nem érvényes\nvalid: " + validVerison.ToString().Substring(3, 1) + "\n\ncurrent: " + currentVersion.ToString().Substring(3, 1));
            //}
        }
Esempio n. 19
0
        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            e.SetDefaultView("New");
            string userName = Application.User.LoginName.Substring(Application.User.LoginName.Length - 6, 6);

            if (String.IsNullOrEmpty(GetField("FormName").Value))
            {
                SPListItem existForm = GetDataFromListByUserID(userName+".xml", Parameters["DOS.ListName.DahiliOtoSatisBasvurular"], Parameters["DOS.SiteUrl"], Parameters["DOS.FieldName.FormName"]);
                if (existForm != null)
                {
                    //Kayıtlı form var ise,
                    GetField("IsValid").SetValue("false");
                    GetField("ValidationString").SetValue(Parameters["ValidationText.ExistForm"]);
                    e.SetDefaultView("MessageView");
                }
            }
                GetSqlUserData(userName);
                //GetUserInformations(Application.User.LoginName);

                if (String.IsNullOrEmpty(GetField("Sicil").Value))
                {
                    GetField("IsValid").SetValue("false");
                    GetField("ValidationString").SetValue(Parameters["ValidationText.ID"]);
                    e.SetDefaultView("MessageView");
                }
                if (String.IsNullOrEmpty(GetField("IseGirisTarihi").Value) || String.IsNullOrEmpty(GetField("Unvan").Value))
                {
                    GetField("IsValid").SetValue("false");
                    GetField("ValidationString").SetValue(Parameters["ValidationText.NoTitleAndEmploymentDate"]);
                    e.SetDefaultView("MessageView");
                }
                else
                {
                    SetFields(GetField("Sicil").Value);
                }
        }
Esempio n. 20
0
        private void Init(LoadingEventArgs e)
        {
            try
            {
                XPathNavigator mainSourceNavigator = this.MainDataSource.CreateNavigator();

                mainSourceNavigator.SelectSingleNode("/my:myFields/my:ContactSelector", this.NamespaceManager).InnerXml = "";

                _xmlFileConfigUrl = string.Format("{0}{1}", this.ServerInfo.SharePointSiteCollectionUrl.ToString(), Resource.XmlFileConfigUrl);
                _notifyListUrl = string.Format("{0}{1}", this.ServerInfo.SharePointSiteUrl.ToString(), Resource.NotifyListUrl);

                if (e.InputParameters.ContainsKey("SaveLocation"))
                {
                    _saveLocation = e.InputParameters["SaveLocation"];
                    _isNewItem = true;
                }
                else
                {
                    _saveLocation = ServerInfo.SharePointSiteCollectionUrl + e.InputParameters["XmlLocation"].Substring(1);
                    _isNewItem = false;
                }

                if (!_isNewItem)
                {
                    SPSite site = new SPSite(_saveLocation, SPUserToken.SystemAccount);
                    SPWeb web = site.OpenWeb();
                    SPListItem item = web.GetListItem(_saveLocation);
                    _guid = item.UniqueId.ToString();
                    _mainListUrl = this.ServerInfo.SharePointSiteCollectionUrl.ToString().Substring(0, this.ServerInfo.SharePointSiteCollectionUrl.ToString().Length - 1) + item.ParentList.DefaultViewUrl;
                }
                else
                {
                    _guid = "";
                    if (e.InputParameters["Source"].Contains("?"))
                    {
                        _mainListUrl = e.InputParameters["Source"].Substring(0, e.InputParameters["Source"].IndexOf('?'));
                    }
                    else
                    {
                        _mainListUrl = e.InputParameters["Source"];
                    }
                }

                StepInit("1");
            }
            catch (Exception ex)
            {
                throw (new Exception("Form - PlatiProgramate, procedure - Init. Mesage-" + ex.Message + "source" + ex.Source + "stackTrace-" + ex.StackTrace));
            }
        }
        private void Lad_LoadingProgress(object sender, LoadingEventArgs e)
        {
            int percent = (int)Math.Round((100.0 * e.Current) / e.Total);

            progressStatus.Text = "Loading apps " + percent.ToString() + "%";
        }
Esempio n. 22
0
 public void FormEvents_Loading(object sender, LoadingEventArgs e)
 {
 }
 /// <summary>
 /// Called when the item is Loading
 /// </summary>
 /// <param name="e">LoadingEventArgs item</param>
 /// <param name="sender">Sender item</param>
 protected static void OnLoading(object sender, LoadingEventArgs e)
 {
     Utilities.Events.EventHelper.Raise <LoadingEventArgs>(Loading, sender, e);
 }
 /// <summary>
 /// Called when the item is Loading
 /// </summary>
 /// <param name="e">LoadingEventArgs item</param>
 protected virtual void OnLoading(LoadingEventArgs e)
 {
     Utilities.Events.EventHelper.Raise <LoadingEventArgs>(Loading, this, e);
 }
 /// <summary>
 /// Called when the item is Loading
 /// </summary>
 /// <param name="e">LoadingEventArgs item</param>
 protected virtual void OnLoading(LoadingEventArgs e)
 {
     Loading.Raise(this, e);
 }
 /// <summary>
 /// Called when the item is Loading
 /// </summary>
 /// <param name="e">LoadingEventArgs item</param>
 /// <param name="sender">Sender item</param>
 protected static void OnLoading(object sender, LoadingEventArgs e)
 {
     Loading.Raise(sender, e);
 }
 void Loading(object sender, LoadingEventArgs e)
 {
     progress = e.Progress;
 }
Esempio n. 28
0
 private void OnLoading(LoadingEventArgs e)
 {
     if (Loading != null)
     {
         Loading(this, e);
     }
 }
        protected void InvokeDataLoaded(ELoadingState LoadingState, Exception Exception = null)
        {
            LoadingEventArgs <IEnumerable <T> > LEA = new LoadingEventArgs <IEnumerable <T> >(LoadingState, this, Exception);

            OnDataLoaded?.Invoke(this, LEA);
        }
Esempio n. 30
0
        private void Init(LoadingEventArgs e)
        {
            try
            {
                XPathNavigator mainSourceNavigator = this.MainDataSource.CreateNavigator();

                _organisationListUrl = string.Format("{0}{1}", this.ServerInfo.SharePointSiteCollectionUrl.ToString(), Resource.OrganisationList);

                if (e.InputParameters.ContainsKey("SaveLocation"))
                {
                    _saveLocation = e.InputParameters["SaveLocation"];
                    _isNewItem = true;
                }
                else
                {
                    _saveLocation = ServerInfo.SharePointSiteCollectionUrl + e.InputParameters["XmlLocation"].Substring(1);
                    _isNewItem = false;
                }

                if (!_isNewItem)
                {
                    SPSite site = new SPSite(_saveLocation, SPUserToken.SystemAccount);
                    SPWeb web = site.OpenWeb();
                    SPListItem item = web.GetListItem(_saveLocation);
                    _guid = item.UniqueId.ToString();
                    _mainListUrl = this.ServerInfo.SharePointSiteCollectionUrl.ToString().Substring(0, this.ServerInfo.SharePointSiteCollectionUrl.ToString().Length - 1) + item.ParentList.DefaultViewUrl;

                    XPathNavigator vars = DataSources["Vars"].CreateNavigator();
                    vars.SelectSingleNode("/Root/BtnProcessingAccess").SetValue("1");

                }
                else
                {
                    _guid = "";
                    if (e.InputParameters["Source"].Contains("?"))
                    {
                        _mainListUrl = e.InputParameters["Source"].Substring(0, e.InputParameters["Source"].IndexOf('?'));
                    }
                    else
                    {
                        _mainListUrl = e.InputParameters["Source"];
                    }
                }
                mainSourceNavigator.SelectSingleNode("/my:myFields/my:Functionality/my:DocumentState", NamespaceManager).SetValue("");
                GetUnits();
                GetOrganisations();
            }
            catch (Exception ex)
            {
                throw (new Exception("Form - PlatiProgramate, procedure - Init. Mesage-" + ex.Message + "source" + ex.Source + "stackTrace-" + ex.StackTrace));
            }
        }
Esempio n. 31
0
        public void FormEvents_Loading(object sender, LoadingEventArgs e)
        {
            try
            {
                // Get the user name of the current user.
                string userName = this.Application.User.UserName;

                // Create a DirectorySearcher object using the user name
                // as the LDAP search filter. If using a directory other
                DirectorySearcher searcher = new DirectorySearcher(
                    "(sAMAccountName=" + userName + ")");

                // Search for the specified user.
                SearchResult result = searcher.FindOne();

                // Make sure the user was found.
                if (result == null)
                {
                    MessageBox.Show("Error finding user: "******"givenName"].Value.ToString();
                    string LastName   = employee.Properties["sn"].Value.ToString();
                    string CommonName = employee.Properties["cn"].Value.ToString();
                    string Mail       = employee.Properties["mail"].Value.ToString();
                    string Location   = employee.Properties["extensionAttribute10"].Value.ToString();
                    string Title      = employee.Properties["title"].Value.ToString();
                    string Phone      = employee.Properties["telephoneNumber"].Value.ToString();
                    string Department = employee.Properties["department"].Value.ToString();

                    // The manager property returns a distinguished name,
                    // so get the substring of the common name following "CN=".
                    string ManagerName = employee.Properties["manager"].Value.ToString();
                    ManagerName = ManagerName.Substring(3, ManagerName.IndexOf(",") - 3);

                    // Create an XPathNavigator to walk the main data source
                    // of the form.
                    XPathNavigator      xnMyForm = this.CreateNavigator();
                    XmlNamespaceManager ns       = this.NamespaceManager;

                    // Set the fields in the form.
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:FirstName", ns)
                    .SetValue(FirstName);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:LastName", ns)
                    .SetValue(LastName);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:CommonName", ns)
                    .SetValue(CommonName);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:Alias", ns)
                    .SetValue(userName);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:Email", ns)
                    .SetValue(Mail);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:Manager", ns)
                    .SetValue(ManagerName);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:Location", ns)
                    .SetValue(Location);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:Title", ns)
                    .SetValue(Title);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:TelephoneNumber", ns)
                    .SetValue(Phone);
                    xnMyForm.SelectSingleNode("/my:myFields/my:RequestorInformation/my:Department", ns)
                    .SetValue(Department);

                    // Clean up.
                    xnMyForm = null;
                    searcher.Dispose();
                    result = null;
                    employee.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("The following error occurred: " +
                                ex.Message.ToString());
                throw;
            }
        }
Esempio n. 32
0
 public void FormEvents_Loading(object sender, LoadingEventArgs e)
 {
     Init(e);
 }
Esempio n. 33
0
        private void Init(LoadingEventArgs e)
        {
            try
            {
                XPathNavigator mainSourceNavigator = this.MainDataSource.CreateNavigator();

                _xmlFileConfigUrl = string.Format("{0}{1}", this.ServerInfo.SharePointSiteCollectionUrl.ToString(), Resource.XmlFileConfigUrl);

                if (e.InputParameters.ContainsKey("SaveLocation"))
                {
                    _saveLocation = e.InputParameters["SaveLocation"];
                    _isNewItem = true;
                }
                else
                {
                    _saveLocation = ServerInfo.SharePointSiteCollectionUrl + e.InputParameters["XmlLocation"].Substring(1);
                    _isNewItem = false;
                }

                if (!_isNewItem)
                {
                    SPSite site = new SPSite(_saveLocation, SPUserToken.SystemAccount);
                    SPWeb web = site.OpenWeb();
                    SPListItem item = web.GetListItem(_saveLocation);
                    _guid = item.UniqueId.ToString();
                    _mainListUrl = this.ServerInfo.SharePointSiteCollectionUrl.ToString().Substring(0, this.ServerInfo.SharePointSiteCollectionUrl.ToString().Length - 1) + item.ParentList.DefaultViewUrl;

                    XPathNodeIterator procuri = mainSourceNavigator.Select("/my:myFields/my:Procures", NamespaceManager);
                    int i = 1;
                    foreach (XPathNavigator procura in procuri)
                    {
                        XmlDocument doc = new XmlDocument();
                        doc.LoadXml(procura.OuterXml);

                        if (doc.SelectSingleNode("/my:Procures/my:ProcureState", NamespaceManager).InnerText != "Canceled")
                        {
                            if (Convert.ToDateTime(doc.SelectSingleNode("/my:Procures/my:EndDate", NamespaceManager).InnerText) < DateTime.Today)
                            {
                                mainSourceNavigator.SelectSingleNode("/my:myFields/my:Procures[" + i + "]/my:ProcureState", NamespaceManager).SetValue("Expired");
                            }
                            i++;
                        }
                    }
                }
                else
                {
                    _guid = "";
                    if (e.InputParameters["Source"].Contains("?"))
                    {
                        _mainListUrl = e.InputParameters["Source"].Substring(0, e.InputParameters["Source"].IndexOf('?'));
                    }
                    else
                    {
                        _mainListUrl = e.InputParameters["Source"];
                    }
                }

                if (mainSourceNavigator.SelectSingleNode("/my:myFields/my:Functionality/my:StepID", this.NamespaceManager).Value == "")
                {
                    StepInit("1");
                }
                else
                {
                    StepInit(mainSourceNavigator.SelectSingleNode("/my:myFields/my:Functionality/my:StepID", this.NamespaceManager).Value);
                }
            }
            catch (Exception ex)
            {
                throw (new Exception("Form - ProcuriClienti, procedure - Init. Mesage-" + ex.Message + "source" + ex.Source + "stackTrace-" + ex.StackTrace));
            }
        }