void GetProjectList()
        {
            try
            {
                log.Info("GetProjectList() Start.!");
                ClearClipBoard();
                StateBusiness = ApplicationServicesProvider.Instance.Provider.TransactionStateService;
                this.TransactionDiagram.ProjectList = StateBusiness.AtmProjectList();

                if (this.TransactionDiagram.ProjectList.Count != 0 && this.TransactionDiagram.ProjectList != null)
                {
                    OpenProject openProject = new OpenProject(this.TransactionDiagram.ProjectList);
                    if (openProject.ShowDialog() == true)
                    {
                        if (!this.TransactionDiagram.CopyProjectXmlsDirectory())
                        {
                            pbw.Close();
                            return;
                        }
                        this.TransactionDiagram.ProjectName = openProject.ProjectName;
                        GetTransactionList();
                    }
                }
            }
            catch (Exception ex)
            {
                log.Error("GetProjectList() Error.! " + ex.Message);
            }
            finally
            {
                pbw.Close();
            }
        }
        bool GetTransactionList()
        {
            bool Retval = false;

            try
            {
                log.Info("GetTransactionList() start.!");
                StateBusiness = ApplicationServicesProvider.Instance.Provider.TransactionStateService;
                this.TransactionDiagram.TransactionNameList = StateBusiness.AtmTransactionList(this.TransactionDiagram.ProjectName);

                TreeViewItem parentNode = new TreeViewItem();
                parentNode.Header                = this.TransactionDiagram.ProjectName;
                parentNode.IsSelected            = true;
                parentNode.MouseRightButtonDown += OpenMenu_MouseRightButtonDown;

                this.TransactionDiagram.CurrentTransactionName = this.TransactionDiagram.TransactionNameList[0];
                this.TransactionDiagram.Open_Executed(true, this.TransactionDiagram.CurrentTransactionName);

                for (int i = 0; i < this.TransactionDiagram.TransactionNameList.Count; i++)
                {
                    TreeViewItem TransChild = new TreeViewItem();
                    TransChild.Header = this.TransactionDiagram.TransactionNameList[i];
                    if (this.TransactionDiagram.TransactionList.Exists(x => x.TransactionName == TransChild.Header.ToString()))
                    {
                        TransChild.Tag     = this.TransactionDiagram.TransactionList.Find(x => x.TransactionName == TransChild.Header.ToString()).BrandId;
                        TransChild.ToolTip = "BrandID : " + TransChild.Tag;
                    }
                    TransChild.MouseDoubleClick += OpenDiagramTree_MouseDoubleClick;
                    parentNode.Items.Add(TransChild);
                }

                TreeFlow.Items.Add(parentNode);
                ExpanderTree.IsExpanded = true;

                TransDiagramName.Header = this.TransactionDiagram.CurrentTransactionName;

                Retval = true;
            }
            catch (Exception ex)
            {
                log.Error("GetTransactionList() Error.! " + ex);
                Retval = false;
            }

            return(Retval);
        }
        private void NewProject()
        {
            string NewProjectName = "";

            ClearClipBoard();
            StateBusiness = ApplicationServicesProvider.Instance.Provider.TransactionStateService;

            this.TransactionDiagram.ProjectList = StateBusiness.AtmProjectList();
            NewProject newProject = new NewProject(this.TransactionDiagram.ProjectList);

            if (newProject.ShowDialog() == true)
            {
                NewProjectName = newProject.NewProjectName;
                TreeViewItem newChild = new TreeViewItem();
                newChild.Header                = NewProjectName;
                newChild.IsSelected            = true;
                newChild.MouseRightButtonDown += OpenMenu_MouseRightButtonDown;
                TreeFlow.Items.Add(newChild);
                this.TransactionDiagram.ProjectName         = NewProjectName;
                this.TransactionDiagram.TransactionNameList = StateBusiness.AtmTransactionList(this.TransactionDiagram.ProjectName);
            }
        }