예제 #1
0
        public NotifyLogWindow()
        {
            InitializeComponent();

            //リストビュー関連の設定
            lstCtrl = new ListViewController <NotifySrvInfoItem>(this);
            lstCtrl.SetInitialSortKey(CommonUtil.GetMemberName(() => (new NotifySrvInfoItem()).Time), ListSortDirection.Descending);
            lstCtrl.SetViewSetting(listView_log, gridView_log, false, true);
        }
예제 #2
0
        public NotifyLogWindow()
        {
            InitializeComponent();

            try
            {
                base.SetParam(false, checkBox_windowPinned);

                this.KeyDown             += ViewUtil.KeyDown_Escape_Close;
                this.KeyDown             += ViewUtil.KeyDown_Enter(this.button_reload);
                this.textBox_logMax.Text  = Settings.Instance.NotifyLogMax.ToString();
                this.button_reload.Click += (sender, e) => ReloadInfoData();

                //リストビュー関連の設定
                lstCtrl = new ListViewController <NotifySrvInfoItem>(this);
                lstCtrl.SetInitialSortKey(CommonUtil.NameOf(() => (new NotifySrvInfoItem()).TimeView), ListSortDirection.Descending);
                lstCtrl.SetViewSetting(listView_log, gridView_log, false, true);

                //データ読込
                ReloadInfoData();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
        }