Beispiel #1
0
        private static TaskDialogNativeMethods.TaskDialogButton[] BuildButtonStructArray(List <TaskDialogButtonBase> controls)
        {
            TaskDialogNativeMethods.TaskDialogButton[] buttonStructs;
            TaskDialogButtonBase button;

            int totalButtons = controls.Count;

            buttonStructs = new TaskDialogNativeMethods.TaskDialogButton[totalButtons];
            for (int i = 0; i < totalButtons; i++)
            {
                button           = controls[i];
                buttonStructs[i] = new TaskDialogNativeMethods.TaskDialogButton(button.Id, button.ToString());
            }
            return(buttonStructs);
        }
Beispiel #2
0
		private static TaskDialogNativeMethods.TaskDialogButton[] BuildButtonStructArray(List<TaskDialogButtonBase> controls) {
			TaskDialogNativeMethods.TaskDialogButton[] buttonStructs;
			TaskDialogButtonBase button;

			int totalButtons = controls.Count;
			buttonStructs = new TaskDialogNativeMethods.TaskDialogButton[totalButtons];
			for (int i = 0; i < totalButtons; i++) {
				button = controls[i];
				buttonStructs[i] = new TaskDialogNativeMethods.TaskDialogButton(button.Id, button.ToString());
			}
			return buttonStructs;
		}