示例#1
0
        public static int MakeListChoiceDialog(string displayText, List <string> choices, Window owner)
        {
            WindowChooseActionDialog newWin = new WindowChooseActionDialog(displayText, choices);

            newWin.Owner = owner;
            newWin.ShowDialog();

            return(newWin.ResultIndex);
        }
示例#2
0
        public static int MakeListChoiceDialog(string displayText, List<string> choices, Window owner)
        {
            WindowChooseActionDialog newWin = new WindowChooseActionDialog(displayText, choices);
            newWin.Owner = owner;
            newWin.ShowDialog();

            return newWin.ResultIndex;
        }