Inheritance: System.Windows.Forms.Form
Exemple #1
0
        public TAPurgeRuleCmd()
        {
            //
            // TODO: Define values for the public properties
            //
            base.m_category = ".NET Samples";                              //localizable text
            base.m_caption  = "Change the purge rule for temporal layers"; //localizable text
            base.m_message  = "Change the purge rule for temporal layers"; //localizable text
            base.m_toolTip  = "Change the purge rule for temporal layers"; //localizable text
            base.m_name     = "TAPurgeRuleCommand_TAPurgeRuleCmd";         //unique id, non-localizable (e.g. "MyCategory_MyCommand")

            m_PRForm = new PurgeRuleForm();

            try
            {
                //
                // TODO: change bitmap name if necessary
                //
                string bitmapResourceName = GetType().Name + ".bmp";
                base.m_bitmap = new Bitmap(GetType(), bitmapResourceName);
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap");
            }
        }
		public TAPurgeRuleCmd()
		{
			//
			// TODO: Define values for the public properties
			//
			base.m_category = ".NET Samples"; //localizable text
			base.m_caption = "Change the purge rule for temporal layers";  //localizable text
			base.m_message = "Change the purge rule for temporal layers"; //localizable text 
			base.m_toolTip = "Change the purge rule for temporal layers";  //localizable text 
			base.m_name = "TAPurgeRuleCommand_TAPurgeRuleCmd";   //unique id, non-localizable (e.g. "MyCategory_MyCommand")

			m_PRForm = new PurgeRuleForm();

			try
			{
				//
				// TODO: change bitmap name if necessary
				//
				string bitmapResourceName = GetType().Name + ".bmp";
				base.m_bitmap = new Bitmap(GetType(), bitmapResourceName);
			}
			catch (Exception ex)
			{
				System.Diagnostics.Trace.WriteLine(ex.Message, "Invalid Bitmap");
			}
		}