示例#1
0
        /// <summary>
        /// Occurs when a model register has been removed
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="args"></param>
        void MowayModel_RegisterRemoved(object sender, RegisterEventArgs args)
        {
            RegisterListViewItem item = this.registers[args.Register];

            this.registers.Remove(args.Register);
            this.pItems.Controls.Remove(item);
            this.UpdateItems();
        }
示例#2
0
 /// <summary>
 /// Occurs when a new register has been added to the model
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 void MowayModel_RegisterAdded(object sender, RegisterEventArgs args)
 {
     this.AddRegisterItem(args.Register);
     this.UpdateItems();
 }