Example #1
0
 public static void Initialize(PacketViewManager instance = null)
 {
     if (instance == null)
     {
         instance = new PacketViewManager();
     }
     Instance = instance;
 }
Example #2
0
        public PacketViewInstance(PacketViewManager viewm, PacketViewClass viewd, PacketViewProperty viewp, Guid id)
        {
            InitializeComponent();

            viewm_   = viewm;
            Class    = viewd;
            Property = viewp;
            ID       = id;
        }
Example #3
0
        public PacketViewControl(PacketViewManager viewm, PacketViewInstance viewi) : this()
        {
            viewm_        = viewm;
            Instance      = viewi;
            Instance.Dock = DockStyle.Fill;

            Panel_Contents.Controls.Add(Instance);

            ChkBox_Filter.Checked = Instance.Property.TargetFilterEnable.Value;
            TBox_Filter.Text      = Instance.Property.TargetFilterValue.Value.Trim();

            Apply(false);
        }
Example #4
0
        internal PacketViewInstance CreateInstance(PacketViewManager viewm, Guid obj_id, PacketViewProperty viewp)
        {
            /* プロパティがnullのときはデフォルト値で新規作成 */
            if (viewp == null)
            {
                viewp = CreateProperty();
            }

            /* プロパティタイプが異なるときは失敗 */
            if (viewp.GetType() != GetPropertyType())
            {
                return(null);
            }

            return(OnCreateInstance(viewm, obj_id, viewp));
        }
Example #5
0
 protected virtual PacketViewInstance OnCreateInstance(PacketViewManager devm, Guid obj_id, PacketViewProperty devp)
 {
     return(null);
 }