예제 #1
0
        /// <summary>
        /// Construct
        /// </summary>
        public NewsListControl( )
        {
            InitializeComponent( );
            this. Loaded += (s, e) =>
            {

            };
            this. listBoxHelper = new ListBoxHelper( this. list_News, true );
            this. listBoxHelper. ReloadDelegate += new Action( listBoxHelper_ReloadDelegate );
            this. listBoxHelper_ReloadDelegate( );
        }
        private void MapCriteriaSave(NetworkMapCriteriaModel model)
        {
            switch (model.Mode)
            {
            case InputMode.Add:
                lbCriteria.Items.Add(model.Item);
                break;

            case InputMode.Edit:
                lbCriteria.SelectedItem = model.Item;
                ListBoxHelper.UpdateToString(lbCriteria);
                break;
            }
        }
예제 #3
0
 /// <summary>
 /// Construct
 /// </summary>
 public CommentListControl( )
 {
     InitializeComponent( );
     this.Loaded += (s, e) =>
     {
         this.listBoxHelper = new ListBoxHelper(this.list_Comment, false, true);
         this.listBoxHelper.ReloadDelegate += new Action(listBoxHelper_ReloadDelegate);
         this.listBoxHelper_ReloadDelegate( );
     };
     this.Unloaded += (s, e) =>
     {
         this.listBoxHelper.Clear( );
     };
 }
예제 #4
0
 /// <summary>
 /// Construct
 /// </summary>
 public CommentListControl( )
 {
     InitializeComponent( );
     this. Loaded += (s, e) =>
     {
         this. listBoxHelper = new ListBoxHelper( this. list_Comment, false, true );
         this. listBoxHelper. ReloadDelegate += new Action( listBoxHelper_ReloadDelegate );
         this. listBoxHelper_ReloadDelegate( );
     };
     this. Unloaded += (s, e) =>
     {
         this. listBoxHelper. Clear( );
     };
 }
예제 #5
0
 private void ctlButton6_Click(object sender, EventArgs e)
 {
     ListBoxHelper.RemoveSelectedItem(this.listBox1);
     this.SetOkButtonStatus();
 }