Example #1
0
        private void tsmIconSize16_Click(object sender, EventArgs e)
        {
            tvFileList.ImageList = imageList16;
            tvFileList.Refresh();

            // Save setting (Icon Size to 16)
            //
            var userSetting = new UserSettings();

            userSetting.FKUserID       = Utils.UserID;
            userSetting.FKScreenCode   = this.ScreenCode;
            userSetting.FKControlCode  = FCMConstant.ScreenControl.TreeViewClientDocumentList;
            userSetting.FKPropertyCode = FCMConstant.ScreenProperty.IconSize;
            userSetting.Value          = "16";
            BUSUserSetting.Save(userSetting);
        }
Example #2
0
        private void tsmFontSize14_Click(object sender, EventArgs e)
        {
            tvFileList.Font =
                new System.Drawing.Font("Microsoft Sans Serif",
                                        14F,
                                        System.Drawing.FontStyle.Regular,
                                        System.Drawing.GraphicsUnit.Point,
                                        ((System.Byte)(0)));

            // Save setting (Font Size to 8.25)
            //
            var userSetting = new UserSettings();

            userSetting.FKUserID       = Utils.UserID;
            userSetting.FKScreenCode   = this.ScreenCode;
            userSetting.FKControlCode  = FCMConstant.ScreenControl.TreeViewDocumentList;
            userSetting.FKPropertyCode = FCMConstant.ScreenProperty.FontSize;
            userSetting.Value          = "14";

            BUSUserSetting.Save(userSetting);
        }