public WorkshareBaseFormWPF(WorkshareFormUtility.DialogLevel dialogLevel, WorkshareFormUtility.BrandType brandType, string title, string mainheader, string subheader, DialogCommandButtons btnenum)
            : this()
        {
			DialogType = new DialogTypeTuple(dialogLevel, brandType);
			this.Title = WorkshareFormUtility.CreateTitleBarText(dialogLevel, brandType, title);
            lb_mainheader.Content = mainheader;
			lb_secondaryheader.Content = subheader;
            CheckButtonsVisibility(btnenum);
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Dialog names will not be shown for secondary dialogs.
		/// Refer to "UI Design - PDD" in Velocity	
		/// </summary>
		/// <param name="dialogLevel">Current dialog type</param>
		/// <param name="sDialogName">Will be in the format "- sDialogName" for Primary dialogs when run</param>
		/// <param name="brandType">The brand type for this dialog</param>
		public WorkshareBaseForm(WorkshareFormUtility.DialogLevel dialogLevel, WorkshareFormUtility.BrandType brandType, string sDialogName)
		{
			m_dialogLevel = dialogLevel;
			m_brandType = brandType;
			m_sDialogNameWithinTitleBarText = sDialogName;
			NeedToUpdateFont(true);

			LoadWorkshareDialogBrandingBitmap();

			InitializeComponent();
		}
Ejemplo n.º 3
0
		/// <summary>
		/// Dialog names will not be shown for secondary dialogs.
		/// Refer to "UI Design - PDD" in Velocity	
		/// </summary>
		/// <param name="dialogLevel">Current dialog type</param>
		/// <param name="sDialogName">Will be in the format "- sDialogName" for Primary dialogs when run</param>
		public WorkshareBaseForm(WorkshareFormUtility.DialogLevel dialogLevel, string sDialogName)
			: this(dialogLevel, WorkshareFormUtility.BrandType.Default, sDialogName)
		{
		}
Ejemplo n.º 4
0
		/// <summary>
		/// Dialog names will not be shown for secondary dialogs.
		/// Refer to "UI Design - PDD" in Velocity	
		/// </summary>
		/// <param name="dialogLevel">Current dialog type</param>
		/// <param name="brandType">The brand type for this dialog</param>
		public WorkshareBaseForm(WorkshareFormUtility.DialogLevel dialogLevel, WorkshareFormUtility.BrandType brandType)
			: this(dialogLevel, brandType, string.Empty)
		{
		}
Ejemplo n.º 5
0
		/// <summary>
		/// Inherit from this dialog when you are creating a new Workshare Dialog.
		/// The class will draw a background image based on the DialogLevel that you specify, i.e. Primary, Secondary or Tertiary.
		/// The class will also update the Font for all controls to MS Shell Dlg 2 and set its ForeColor to SystemColors.WindowText.
		/// </summary>
		/// <param name="dialogLevel"></param>
		public WorkshareBaseForm(WorkshareFormUtility.DialogLevel dialogLevel)
			: this(dialogLevel, WorkshareFormUtility.BrandType.Default, string.Empty)
		{ }
		public BasePasswordRequestDialog(WorkshareFormUtility.DialogLevel dialogLevel, string sDialogName)
			: base(dialogLevel, sDialogName)
		{ }