progress

WPF Progressbar

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: In my WPF application i have to show a progressbar progress with in a timer tick event, which i am writing as below, System.Windows.Forms.Timer timer; public MainWindow() { timer = new System.Windows.Forms.Timer(); timer.Interval = 1000; this.timer.Tick += new System.EventHandler(this.timer_Tick); } load event as below private void Window_Loaded(object sender, RoutedEventArgs e) { progressBar1.Minimum = 0; progressBar1.Value = DateTime.Now.Second; progressBar1.Maximum = 700; timer.Start(); } And at last in tick event, private void timer_Tick

Smooth Progress Bar Animation

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to implement a smooth animation for my ProgressBar , but when I increase the time (30 seconds), the animation is no longer smooth. Example with 5 seconds: Example with 30 seconds: My progress background: My progress layout: My animation method: private void startAnimation (){ ProgressBar mProgressBar = ( ProgressBar ) findViewById ( R . id . pb_loading ); ObjectAnimator progressAnimator = ObjectAnimator . ofInt ( mProgressBar , "progress" , 100 , 0 ); progressAnimator . setDuration ( 30000 ); progressAnimator .

How to Export CSV file from ASP.NET core

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to migrate code from ASP.net to ASP.net core. Where as in ASP.net code was like below, var progresses = db.Progresses.Where(p => p.UserId == id).Include(p => p.User.UserMetaData).Include(p => p.Quiz).Include(p => p.User.Groups).OrderByDescending(p => p.UpdatedAt).ToList(); List<ReportCSVModel> reportCSVModels = new List<ReportCSVModel>(); const string downloadName = "Reports.csv"; var csv = new CsvWriter(Response.Output); csv.Configuration.RegisterClassMap<ReportCSVMap>(); Response.ClearContent(); Response.ContentType =

Android SeekBarPreference

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm currently trying to implement SeekBarPreference class using http://android-journey.blogspot.com/2010/01/for-almost-any-application-we-need-to.html tutorial with RelativeLayout. First problem is TextView preferenceText isn't showing at all. Second problem is the bar can't be slided like those in regular preferences (like media volume bar)? public class SeekBarPreference extends Preference implements OnSeekBarChangeListener { public static int maximum = 100; public static int interval = 5; private float oldValue = 25; private TextView

wx python 3.0.2 classic SetFocus blows

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I had a Progress class that was working fine in 2.8.12.1 unicode: class Progress(bolt.Progress): """Progress as progress dialog.""" def __init__(self,title=_(u'Progress'),message=u' '*60,parent=None, style=wx.PD_APP_MODAL|wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_SMOOTH, abort=False, onAbort=None): if abort: style |= wx.PD_CAN_ABORT self.fnAbort = onAbort self.dialog = wx.ProgressDialog(title,message,100,parent,style) self.dialog.SetFocus() #### line 1295 in the traceback is here #### bolt.Progress.__init__(self) self.message = message self

progressBar separate thread

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have question about progressbar show value. I have this main thread private void button1_Click ( object sender , EventArgs e ) { progress prog = new progress (); progress . progressEvent += new progress . progressEventHandler ( progressEvent ); for ( int i = 0 ; i < 100 ; i ++) { Thread . Sleep ( 100 ); prog . incA (); } } void progressEvent ( object sender ) { if ( progressBar1 . InvokeRequired ) { //Tady mi to caka az kym nedobehne cyklus for a pak zacne tohleto fungovat progressBar1 . Invoke ( new ChangeProgressBarValue (

Xhr uploading event.loaded issue

匿名 (未验证) 提交于 2019-12-03 01:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: opts.xhr=function(){ var xhr = new window.XMLHttpRequest(); // Upload progress xhr.upload.onprogress = function(e) { if (e.lengthComputable) { var percentComplete = e.loaded / e.total * 100; console.log('Progress info:', e.loaded, e.total, Math.round(percentComplete), Math.round(e.loaded/1024/1024), Math.round(e.total/1024/1024)); } } return xhr; } return $.ajax(opts); Progress info: 53657600 2666153229 2 51 2543 Progress info: 55656448 2666153229 2 53 2543 Progress info: 57655296 2666153229 2 55 2543 Progress info: 59850752 2666153229 2 57

小程序上传多图片多附件多视频 c#后端

匿名 (未验证) 提交于 2019-12-03 00:42:01
前言: 最近在研究微信小程序,本人自己是C#写后端的;感觉小程序挺好玩的,就自己研究了一下;刚好今天又给我需求,通过小程序上传多图 然后C#后端保存到服务器; 用NET明白 前端上传需要用到流,然后就接收 保存; 小程序端的比较完整,能上传图片 删除图片 查看图片,文件或者视频也可以; 进入主题; 效果图: c#后端: /// <summary> /// 上传图片 /// </summary> /// <returns></returns> [HttpPost] public ResultData UploadFileNew() { ResultData result = new ResultData(); string parameters = "" ; string operating = " 图片上传 " ; try { string path = " /tmp/ " ; HttpPostedFile file = System.Web.HttpContext.Current.Request.Files[ " content " ]; // 对应小程序 name parameters = string .Format( " postData:{0} " , file.ToString()); LogHelper.Info( " file文件: " + file

微信小程序实现流程进度样式

匿名 (未验证) 提交于 2019-12-03 00:10:02
wxml: <view class = "step" > <view class = "progress" > <view class = "step_box step_box1" > <view class = "radius rad_1 radius_active" ></view> <view class = "step_title" > 基本信息 </view> </view> <view class = "step_box step_box2" > <view class = "radius rad_2 " ></view> <view class = "step_title" > 项目信息 </view> </view> <view class = "step_box step_box3" > <view class = "radius rad_3 " ></view> <view class = "step_title" > 需求信息 </view> </view> <progress percent = "{{percent}}" activeColor = "#F86221" backgroundColor = "#E0E2E7" stroke-width = "2" class = "pro_border" /> </view> </view> wxss: .

ios 自定义圆环加载进度

匿名 (未验证) 提交于 2019-12-02 23:43:01
2019独角兽企业重金招聘Python工程师标准>>> 效果 #import <UIKit/UIKit.h> @interface HWCircleView : UIView @property (nonatomic, assign) CGFloat progress; //进度条颜色 @property(nonatomic,strong) UIColor *progerssColor; //进度条背景颜色 @property(nonatomic,strong) UIColor *progerssBackgroundColor; //进度条的宽度 @property(nonatomic,assign) CGFloat progerWidth; //进度数据字体大小 @property(nonatomic,assign)CGFloat percentageFontSize; //进度数字颜色 @property(nonatomic,strong) UIColor *percentFontColor; @end #import "HWCircleView.h" @interface HWCircleView () @property (nonatomic, weak) UILabel *cLabel; @end @implementation HWCircleView -