Example #1
0
        /// <summary>
        /// Show Properties dialog. Return true if list is changed
        /// </summary>
        /// <param name="parent"></param>
        /// <returns></returns>
        public bool ShowPropertiesDialog(IWin32Window parent)
        {
            if (SelectionCount < 1)
            {
                return(false);
            }

            GraphicsProperties properties = GetProperties();
            PropertiesDialog   dlg        = new PropertiesDialog();

            dlg.Properties = properties;

            if (dlg.ShowDialog(parent) != DialogResult.OK)
            {
                return(false);
            }

            ApplyProperties(properties);

            return(true);
        }
Example #2
0
		/// <summary>
		/// Show Properties dialog. Return true if list is changed
		/// </summary>
		/// <param name="parent"></param>
		/// <returns></returns>
		public bool ShowPropertiesDialog(IWin32Window parent)
		{
			if (SelectionCount < 1)
				return false;

			GraphicsProperties properties = GetProperties();
			PropertiesDialog dlg = new PropertiesDialog();
			dlg.Properties = properties;

			if (dlg.ShowDialog(parent) != DialogResult.OK)
				return false;

			ApplyProperties(properties);

			return true;
		}