BlueSky.Services.XmlDashBoardService.SelectLocation C# (CSharp) Method

SelectLocation() public method

public SelectLocation ( string &newcommandname, string &AboveBelowSibling ) : string
newcommandname string
AboveBelowSibling string
return string
        public string SelectLocation(ref string newcommandname,  ref string AboveBelowSibling)
        {
            MenuEditor editor = new MenuEditor(newcommandname);
            editor.LoadXml(FileName);
            editor.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            editor.Activate();
            editor.ShowDialog();
            
            if (editor.DialogResult.HasValue && editor.DialogResult.Value)
            {
                string str = editor.ElementLocation;
                newcommandname = editor.NewCommandName;
                AboveBelowSibling = (editor.NewCommandAboveBelowSibling != null)? editor.NewCommandAboveBelowSibling:string.Empty;//06Feb2013
                XamlFile = (editor.XamlFile!=null && editor.XamlFile.Length>0) ? editor.XamlFile:string.Empty; //06Mar2013
                XmlFile = (editor.XmlFile != null && editor.XmlFile.Length > 0) ? editor.XmlFile : string.Empty; //06Mar2013
                return str;
            }
            return string.Empty;
        }