本文整理汇总了C#中System.Windows.Forms.ToolStripProgressBar类的典型用法代码示例。如果您正苦于以下问题:C# ToolStripProgressBar类的具体用法?C# ToolStripProgressBar怎么用?C# ToolStripProgressBar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ToolStripProgressBar类属于System.Windows.Forms命名空间,在下文中一共展示了ToolStripProgressBar类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: StatusInformer
public StatusInformer(Form form, ToolStripProgressBar bar, RichTextBox console, NotifyIcon notifier)
{
Window = form;
Bar = bar;
Console = console;
Notifier = notifier;
}
开发者ID:pabloat81,项目名称:MobileNet,代码行数:7,代码来源:StatusInformer.cs
示例2: Run
public override void Run(int mapnum,ref ToolStripProgressBar progress,ref ListView lv)
{
MapNumber = mapnum;
MessageBox.Show("Refresh Map");
Maps.Refresh(MapNumber);
}
开发者ID:nolenfelten,项目名称:Blam_BSP,代码行数:7,代码来源:Class1.cs
示例3: NewProgress
public IProgress<ProgressEventArgs> NewProgress()
{
var progressBar = new ToolStripProgressBar();
var cancelButton = new ToolStripSplitButton { DropDownButtonWidth = 0, Text = "Cancel" };
cancelButton.ButtonClick += (sender, e) => ((ToolStripItem)sender).Enabled = false;
StatusBar.AddRange(new ToolStripItem[] { progressBar, cancelButton });
var progress = new Progress<ProgressEventArgs>((e) =>
{
if (e.Continue)
{
e.Continue = e.Index < e.Count && cancelButton.Enabled;
if (e.Continue)
{
progressBar.Maximum = e.Count;
progressBar.Value = e.Index;
if (e.Success)
Model.Modified = true;
}
else
{
StatusBar.Remove(cancelButton);
StatusBar.Remove(progressBar);
}
}
});
return progress;
}
开发者ID:dogbiscuituk,项目名称:TagScanner32767,代码行数:27,代码来源:StatusController.cs
示例4: PropertyMarqueeAnimationSpeed
public void PropertyMarqueeAnimationSpeed ()
{
ToolStripProgressBar tsi = new ToolStripProgressBar ();
EventWatcher ew = new EventWatcher (tsi);
tsi.MarqueeAnimationSpeed = 200;
Assert.AreEqual (200, tsi.MarqueeAnimationSpeed, "B1");
Assert.AreEqual (string.Empty, ew.ToString (), "B2");
ew.Clear ();
tsi.MarqueeAnimationSpeed = 200;
Assert.AreEqual (string.Empty, ew.ToString (), "B3");
}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:13,代码来源:ToolStripProgressBarTest.cs
示例5: PowerShellHost
/// <summary>
/// Default constructor.
/// </summary>
/// <param name="parentForm">The connection form that will display the PowerShell console.</param>
/// <param name="terminal">Terminal control that will display the PowerShell console.</param>
/// <param name="executeHelper">Method used to execute PowerShell commands within the current session.</param>
/// <param name="progressBar">Progress bar UI element to update when writing progress records.</param>
/// <param name="progressLabel">Label UI element to update when writing progress records.</param>
public PowerShellHost(
PowerShellConnectionForm parentForm, TerminalControl terminal, Func<string, Collection<PSObject>> executeHelper, ToolStripProgressBar progressBar,
ToolStripStatusLabel progressLabel)
{
_parentForm = parentForm;
_powerShellHostUi = new PowerShellHostUi(terminal, executeHelper, progressBar, progressLabel);
}
开发者ID:cdhunt,项目名称:EasyConnect,代码行数:15,代码来源:PowerShellHost.cs
示例6: RepoResultsActor
public RepoResultsActor(DataGridView userDg, ToolStripStatusLabel statusLabel, ToolStripProgressBar progressBar)
{
_userDg = userDg;
_statusLabel = statusLabel;
_progressBar = progressBar;
InitialReceives();
}
开发者ID:jdarsie,项目名称:akka-bootcamp,代码行数:7,代码来源:RepoResultsActor.cs
示例7: binarize
private void binarize(Bitmap bittt, ref int[,] massss, ToolStripProgressBar progress)
{
massss = new int[bittt.Width, bittt.Height];
progress.Minimum = 0;
progress.Maximum = bittt.Height;
for (int i = 0; i < bittt.Height; i++)
{
for (int j = 0; j < bittt.Width; j++)
{
if (bittt.GetPixel(j, i).R > 200 || bittt.GetPixel(j, i).B > 200 || bittt.GetPixel(j, i).G > 200)
{
bittt.SetPixel(j, i, Color.White);
massss[j, i] = 0;
}
else
{
bittt.SetPixel(j, i, Color.Black);
massss[j, i] = 1;
}
/* if (j == (int)(bittt.Height / 6))
{
bittt.SetPixel(j, i, Color.Teal);
}*/
}
if (progress.Value < bittt.Height)
{
progress.Value++;
}
}
progress.Value = 0;
}
开发者ID:RomanBoychuk,项目名称:MiSOI,代码行数:31,代码来源:Form1.cs
示例8: ConnectToolStripProgressBar
public void ConnectToolStripProgressBar(ToolStripProgressBar arg)
{
if (arg == null) throw new ArgumentNullException("Нельзя посылать null!");
_tool_progress_bar = arg;
Action<int> ActIncremetion = arg.Increment;
_fractal.ProgressChanged += (f, inc) =>{_owner.Invoke(ActIncremetion,(inc - arg.Value));};
}
开发者ID:asteroidsuper,项目名称:FractalBrowser,代码行数:7,代码来源:FractalDataHandler.cs
示例9: CrmConnectionStatusBar
/// <summary>
/// Initializes a new instance of class CrmConnectionStatusBar
/// </summary>
public CrmConnectionStatusBar(FormHelper formHelper)
{
resources = new System.ComponentModel.ComponentResourceManager(typeof(CrmConnectionStatusBar));
ConnectionManager.Instance.ConnectionListUpdated += cManager_ConnectionListUpdated;
_formHelper = formHelper;
// Build connection control
this.BuildConnectionControl();
// Add label that will display information about connection
ToolStripStatusLabel informationLabel = new ToolStripStatusLabel
{
Spring = true,
TextAlign = ContentAlignment.MiddleRight
};
this.Items.Add(informationLabel);
ToolStripProgressBar progress = new ToolStripProgressBar
{
Minimum = 0,
Maximum = 100,
Visible = false
};
this.Items.Add(progress);
base.RenderMode = ToolStripRenderMode.Professional;
}
开发者ID:NORENBUCH,项目名称:XrmToolBox,代码行数:32,代码来源:CrmConnectionStatusBar.cs
示例10: CreateProgress
public HResult CreateProgress(out INiStatusBarProgress progress)
{
progress = null;
try
{
var label = new ToolStripStatusLabel
{
Visible = false
};
var progressBar = new ToolStripProgressBar
{
Visible = false
};
int index = _mainForm._statusStrip.Items.IndexOf(_mainForm._statusStripText);
_mainForm._statusStrip.Items.Insert(
index + 1,
label
);
_mainForm._statusStrip.Items.Insert(
index + 2,
progressBar
);
progress = new NiStatusBarProgress(label, progressBar);
return HResult.OK;
}
catch (Exception ex)
{
return ErrorUtil.GetHResult(ex);
}
}
开发者ID:netide,项目名称:netide,代码行数:35,代码来源:MainForm.StatusBar.cs
示例11: openFile
public static void openFile( Form plcType,
Form main,
ComboBox height,
ToolStripProgressBar mLoad,
ToolStripStatusLabel mStatus )
{
bool noFile = true, cancel = false;
OpenFileDialog openDiag;
DialogResult res;
String filename;
mnuHeight = height;
mnuLoad = mLoad;
mnuStatus = mStatus;
init = true;
plcType.Hide();
while( noFile ^ cancel )
{
openDiag = new OpenFileDialog();
openDiag.Multiselect = false;
openDiag.AddExtension = true;
openDiag.DefaultExt = "dat";
openDiag.Filter = "Minecraft Levels (*.dat)|*.dat|" +
"All Files (*.*)|*.*";
res = openDiag.ShowDialog();
plcType.Show();
if( res == DialogResult.Cancel )
cancel = true;
else
{
filename = openDiag.FileName;
noFile = false;
openDiag.Dispose();
lvl = AnvilWorld.Open( filename );
if( lvl == null )
MessageBox.Show( "That file was not a compatible Minecraft level.",
"Open File Error",
MessageBoxButtons.OK,
MessageBoxIcon.Error );
else
{
regDiag = new SelectRegion( lvl.GetRegionManager(), main );
loadLimits();
selectRegion( true );
}
}
}
}
开发者ID:InTheSPOT,项目名称:creative-mode-plus,代码行数:59,代码来源:LoadSave.cs
示例12: Load
public int Load(string path,ToolStripProgressBar pb = null)
{
//returns 0=Ok
// -1=Fail
// -2=Compressed
FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read);
try
{
memory = new byte[(int)fileStream.Length];
int count;
int sum = 0;
while ((count = fileStream.Read(memory, sum, memsize - sum)) > 0) sum += count;
}
finally
{
fileStream.Close();
}
if (memsize > 0)
{
BitConverter.IsLittleEndian = true;
uint magic = getUInt(0);
if (magic != 0x9E2A83C1)
{
if (magic == 0xC1832A9E)
{
BitConverter.IsLittleEndian = false;
isXBox = true;
}
else
return -1;
}
Header.v1 = getVersion(4);
Header.v2 = getVersion(6);
Header.PackFlags = getUInt(26);
uint test = getUInt(30);
int reloff = 0;
if (test != 0) reloff = 4;
if ((Header.PackFlags & 0x02000000u) != 0)
return -2;//Compressed
loadedFilename = Path.GetFileName(path);
reloff = 0;
Header.offinfo =(uint)(34 - reloff);
Header.NameCount = getUInt(34 - reloff);
Header.NameOffset = getUInt(38 - reloff);
Header.ExportCount = getUInt(42 - reloff);
Header.ExportOffset = getUInt(46 - reloff);
Header.ImportCount = getUInt(50 - reloff);
Header.ImportOffset = getUInt(54 - reloff);
names = new string[Header.NameCount];
Import = new imports[Header.ImportCount];
Export = new exports[Header.ExportCount];
ReadNames((int)Header.NameOffset, pb);
ReadImports((int)Header.ImportOffset, pb);
ReadExports((int)Header.ExportOffset, pb);
return 0;
}
return -1;
}
开发者ID:CreeperLava,项目名称:ME3Explorer,代码行数:58,代码来源:PCCFile.cs
示例13: P007_P008_ucTracking
public P007_P008_ucTracking(ToolStripProgressBar _pb1, ToolStripStatusLabel _stt1, ToolStripStatusLabel _stt2)
{
InitializeComponent();
dtpFrom.Value = DateTime.Now;
dtpTo.Value = DateTime.Now;
ProgressBar1 = _pb1;
Status_1 = _stt1;
Status_2 = _stt2;
}
开发者ID:anthanhcong,项目名称:atc-demand-instruction-form,代码行数:9,代码来源:P007_P008_ucTracking.cs
示例14: Collection
public Collection(List<string> countries, List<string> genders, decimal minAge, decimal maxAge,
string membersCount, string groupId, ToolStripProgressBar progressBar1)
{
_countries = countries;
_genders = genders;
_minAge = minAge;
_maxAge = maxAge;
_membersCount = membersCount;
_groupId = groupId;
_progressBar1 = progressBar1;
}
开发者ID:durman4ik,项目名称:CPA-Helper,代码行数:11,代码来源:Collection.cs
示例15: SetControls
public void SetControls(ToolStripStatusLabel sbText, ToolStripProgressBar pbProgress)
{
m_sbText = sbText;
m_pbProgress = pbProgress;
if(m_pbProgress != null)
{
if(m_pbProgress.Minimum != 0) m_pbProgress.Minimum = 0;
if(m_pbProgress.Maximum != 100) m_pbProgress.Maximum = 100;
}
}
开发者ID:rdealexb,项目名称:keepass,代码行数:11,代码来源:StatusBarLogger.cs
示例16: progressReady
/// <summary>
/// Stop the progress bar
/// </summary>
/// <param name="progress">The progress bar to stop</param>
/// <param name="label">The label to show the status message</param>
public static void progressReady(ToolStripProgressBar progress, ToolStripStatusLabel label)
{
#region Pre Conditions
Debug.Assert(progress != null, "Progress Bar cannot be null");
Debug.Assert(label != null, "Label cannot be null");
#endregion
#region Action
progress.Style = ProgressBarStyle.Continuous;
label.Text = "Ready";
#endregion
}
开发者ID:emadhura,项目名称:doublesnap,代码行数:17,代码来源:MainWindow.cs
示例17: StatusBarProgressHandler
/// ------------------------------------------------------------------------------------
/// <summary>
/// Initializes a new instance of the <see cref="T:StatusBarProgressHandler"/> class.
/// </summary>
/// <param name="label">The label that will display the message.</param>
/// <param name="progressBar">The progress bar.</param>
/// ------------------------------------------------------------------------------------
public StatusBarProgressHandler(ToolStripStatusLabel label,
ToolStripProgressBar progressBar)
{
m_label = label;
m_progressBar = progressBar;
// Create a (invisible) control for multithreading purposes. We have to do this
// because ToolStripStatusLabel and ToolStripProgressBar don't derive from Control
// and so don't provide an implementation of Invoke.
m_control = new Control();
m_control.CreateControl();
}
开发者ID:sillsdev,项目名称:WorldPad,代码行数:19,代码来源:StatusBarProgressHandler.cs
示例18: BatchStrategySimulatorDlg
public BatchStrategySimulatorDlg(StockDictionary stockDictionary, StockPortofolioList stockPortofolioList, StockSerie.Groups group, StockSerie.StockBarDuration barDuration, ToolStripProgressBar progressBar)
{
InitializeComponent();
this.stockPortofolioList = stockPortofolioList;
this.stockDictionary = stockDictionary;
this.progressBar = progressBar;
this.group = group;
this.BarDuration = barDuration;
}
开发者ID:dadelcarbo,项目名称:StockAnalyzer,代码行数:12,代码来源:BatchStrategySimulatorDlg.cs
示例19: WorkloadTest
public void WorkloadTest()
{
ToolStrip toolstrip = new ToolStrip();
ToolStripProgressBar progressBar = new ToolStripProgressBar();
toolstrip.Items.Add(progressBar);
WorkloadManager.Instance.AttachControls(progressBar, new LoadingAnimation());
WorkloadManager.Instance.Add(1);
WorkloadManager.Instance.Step();
Assert.IsTrue(WorkloadManager.Instance.CurrentWorkload == 0, "WorkloadManager add or step failed.");
}
开发者ID:w0pr,项目名称:blizztv,代码行数:13,代码来源:WorkloadManagerTest.cs
示例20: ExportManager
public ExportManager(IList nodes, ToolStripProgressBar progressBar,
DicomViewer.MainForm.ToolStripProgressBarDelegate toolStripProgressBarDelegate)
{
this.elements = new List<DicomElement>();
this.toolStripProgressBar = progressBar;
foreach (var item in nodes)
{
TreeNode node = (TreeNode)item;
parseNode(node);
}
toolStripProgressBarDelegate(0, countMaximum());
}
开发者ID:selfwalker,项目名称:dicom,代码行数:13,代码来源:ExportManager.cs
注:本文中的System.Windows.Forms.ToolStripProgressBar类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论