private void InitNotifyIcon() { InitRes(); _flowicon = new System.Windows.Forms.NotifyIcon { Visible = true, ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip(), Icon = Drawicon(FluxConv.GetFluxPercent(Formater.Instence.IpgwInfo).ToString()) }; string str = FluxConv.GetFluxPercent(Formater.Instence.IpgwInfo).ToString(); _flowicon.MouseClick += _flowicon_MouseClick; _flowicon.MouseMove += _flowicon_MouseMove; _flowicon.MouseDoubleClick += _flowicon_MouseDoubleClick; }
private void Default_SettingChanging(object sender, System.Configuration.SettingChangingEventArgs e) { switch (e.SettingName) { case "AreaFontSize": _areafontsize = (float)e.NewValue; _areafont = new Font(_pfc.Families[0], _areafontsize); _flowicon.Icon = Drawicon(FluxConv.GetFluxPercent(Formater.Instence.IpgwInfo).ToString()); break; case "AreaFontColor": _areafontcolor = (Color)e.NewValue; _flowicon.Icon = Drawicon(FluxConv.GetFluxPercent(Formater.Instence.IpgwInfo).ToString()); break; } }
private bool Instence_IpgwInfoChanged(object op, object np) { _flowicon.Icon = Drawicon(FluxConv.GetFluxPercent((Flux)np).ToString()); return(true); }
private void GraphAnimation() { _rowover.Value = FluxConv.GetFluxPercent(Formater.Instence.IpgwInfo) / 100; _rowani.Begin(); }