예제 #1
0
        public override void ModifyWizardPages(object source, GXPropertyPageType type, System.Collections.Generic.List<Control> pages)
		{
            if (type == GXPropertyPageType.Property)
            {
                pages.Insert(1, new ModBusWizardPage1Dlg());
            }
		}        
예제 #2
0
 public override void ModifyWizardPages(object source, GXPropertyPageType type, List <Control> pages)
 {
     if (type == GXPropertyPageType.Property)
     {
         pages.Insert(1, new AddressDlg(source as GXProperty));
     }
     else if (type == GXPropertyPageType.Import)
     {
         pages.Insert(1, new ImportSelectionDlg());
     }
     else if (type == GXPropertyPageType.Device)
     {
         pages.Insert(1, new IEC62056DeviceModeWizardDlg(source as GXDevice));
     }
 }
 public override void ModifyWizardPages(object source, GXPropertyPageType type, System.Collections.Generic.List<Control> pages)
 {
     if (type == GXPropertyPageType.Device)
     {
         pages.Insert(1, new GXDLT645DeviceWizardDlg());
     }
     else if (type == GXPropertyPageType.Property ||
         type == GXPropertyPageType.Table)
     {
         //Remove default pages.
         pages.Clear();
         pages.Add(new AddressDlg());
     }
     else if (type == GXPropertyPageType.Import)
     {
         pages.Insert(1, new DeviceImportForm());
     }
 }
        public override void ModifyWizardPages(object source, GXPropertyPageType type, List<Control> pages)
		{
            if (type == GXPropertyPageType.Property)
            {
                pages.Insert(1, new AddressDlg(source as GXProperty));
            }            
            else if (type == GXPropertyPageType.Import)
            {
                pages.Insert(1, new ImportSelectionDlg());
            }
            else if (type == GXPropertyPageType.Device)
            {
                pages.Insert(1, new IEC62056DeviceModeWizardDlg(source as GXDevice));
            }                
		}
예제 #5
0
		/// <summary>
		/// Modifies the wizard by adding protocol specific pages.
		/// </summary>
        /// <param name="source">The associated object.</param>
		/// <param name="type">The Type of the property page</param>
        /// <param name="pages">The collection of tab pages.</param>
        public virtual void ModifyWizardPages(object source, GXPropertyPageType type, List<Control> pages)
		{        
            
		}      
예제 #6
0
        public override void ModifyWizardPages(object source, GXPropertyPageType type, System.Collections.Generic.List<Control> pages)
		{		        
            if (type == GXPropertyPageType.Import)
            {
                pages.Insert(1, new ImportSettings(source as GXDevice));
            }
            if (type == GXPropertyPageType.Device)
            {
                pages.Insert(1, new DlmsWizardPage1Dlg(source as GXDevice));
            }
            else if (type == GXPropertyPageType.Category)
            {
                if (source.GetType() != typeof(GXCategory))
                {
                    GXCategory cat = source as GXCategory;
                    pages.Insert(1, new DlmsTypeWizardDlg(cat.Device, source));
                }
            }
            else if (type == GXPropertyPageType.Table)                
            {
                GXTable table = source as GXTable;
                pages.Insert(1, new DlmsTypeWizardDlg(table.Device, source));
            }
            else if (type == GXPropertyPageType.Property)                
            {
                GXProperty p = source as GXProperty;
                pages.Insert(1, new DlmsTypeWizardDlg(p.Device, source));
            }            
		}
예제 #7
0
		public override void ModifyWizardPages(object source, GXPropertyPageType type, List<Control> pages)
		{
            if (type == GXPropertyPageType.Import)
            {
                pages.Insert(1, new ImportSelectionDlg(source as GXMBusDevice));
            }
		}