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; }
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; }
public override void Run(int mapnum,ref ToolStripProgressBar progress,ref ListView lv) { MapNumber = mapnum; MessageBox.Show("Refresh Map"); Maps.Refresh(MapNumber); }
public RepoResultsActor(DataGridView userDg, ToolStripStatusLabel statusLabel, ToolStripProgressBar progressBar) { _userDg = userDg; _statusLabel = statusLabel; _progressBar = progressBar; InitialReceives(); }
/// <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); }
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); } }
public StatusInformer(Form form, ToolStripProgressBar bar, RichTextBox console, NotifyIcon notifier) { Window = form; Bar = bar; Console = console; Notifier = notifier; }
/// <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; }
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));}; }
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 ); } } } }
public MainHostHandler(frmMain form) { _form = form; statusInfo = _form.StatusInfo; statusProgress = _form.StatusProgressBar; SetStatusVersion(); }
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; }
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; }
/* * http://ichart.finance.yahoo.com/table.csv?s=WIPRO.NS&a=10&b=25&c=2005&d=11&e=26&f=2009&g=d&ignore=.csv * http://ichart.finance.yahoo.com/table.csv?s=WIPRO.NS&a=07&b=12&c=2002&d=09&e=21&f=2009&g=w&ignore=.csv * http://ichart.finance.yahoo.com/table.csv?s=WIPRO.NS&a=07&b=12&c=2002&d=09&e=21&f=2009&g=m&ignore=.csv * http://ichart.finance.yahoo.com/table.csv?s=WIPRO.NS&a=07&b=12&c=2002&d=09&e=21&f=2009&g=v&ignore=.csv */ public frmYahoo(object pdalStockAc, System.Windows.Forms.ToolStripStatusLabel plbl, System.Windows.Forms.ToolStripProgressBar pBar) { InitializeComponent(); _pdalYahoo = (DoubleM.DALDoubleM)pdalStockAc; _lblMsgDoubleM = plbl; _pBar = pBar; }
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; } }
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; }
/// <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 }
/// ------------------------------------------------------------------------------------ /// <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(); }
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; }
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()); }
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."); }
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"); }
public MyTrainingProgressComponent() { this.tdbMyTrainings = new System.Windows.Forms.ToolStripDropDownButton(); this.slCurrentTraining = new System.Windows.Forms.ToolStripStatusLabel(); this.tpbMyTrainingProgress = new System.Windows.Forms.ToolStripProgressBar(); this.tdbMyTrainings.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; slCurrentTraining.Visible = false; tpbMyTrainingProgress.Visible = false; }
private void InitializeComponent() { this.contextStatusLabel = new ToolStripStatusLabel(); this.progressStatusSeparator = new ToolStripSeparator(); this.progressStatusBar = new ToolStripProgressBar(); this.imageInfoStatusLabel = new ToolStripStatusLabel(); this.cursorInfoStatusLabel = new ToolStripStatusLabel(); SuspendLayout(); // // contextStatusLabel // this.contextStatusLabel.Name = "contextStatusLabel"; this.contextStatusLabel.Width = UI.ScaleWidth(436); this.contextStatusLabel.Spring = true; this.contextStatusLabel.TextAlign = ContentAlignment.MiddleLeft; this.contextStatusLabel.ImageAlign = ContentAlignment.MiddleLeft; // // progressStatusBar // this.progressStatusBar.Name = "progressStatusBar"; this.progressStatusBar.Width = 130; this.progressStatusBar.AutoSize = false; // // imageInfoStatusLabel // this.imageInfoStatusLabel.Name = "imageInfoStatusLabel"; this.imageInfoStatusLabel.Width = UI.ScaleWidth(130); this.imageInfoStatusLabel.TextAlign = ContentAlignment.MiddleLeft; this.imageInfoStatusLabel.ImageAlign = ContentAlignment.MiddleLeft; this.imageInfoStatusLabel.AutoSize = false; // // cursorInfoStatusLabel // this.cursorInfoStatusLabel.Name = "cursorInfoStatusLabel"; this.cursorInfoStatusLabel.Width = UI.ScaleWidth(130); this.cursorInfoStatusLabel.TextAlign = ContentAlignment.MiddleLeft; this.cursorInfoStatusLabel.ImageAlign = ContentAlignment.MiddleLeft; this.cursorInfoStatusLabel.AutoSize = false; // // PdnStatusBar // this.Name = "PdnStatusBar"; this.Items.Add(this.contextStatusLabel); this.Items.Add(this.progressStatusSeparator); this.Items.Add(this.progressStatusBar); this.Items.Add(new ToolStripSeparator()); this.Items.Add(this.imageInfoStatusLabel); this.Items.Add(new ToolStripSeparator()); this.Items.Add(this.cursorInfoStatusLabel); ResumeLayout(false); }
public Output() { // Infobox infoBox = new ListBox(); infoBox.MinimumSize = new Size(0, 108); infoBox.MaximumSize = new Size(0, 108); infoBox.SetBounds(0, 183, 526, 172); // Statusbar statusStrip = new StatusStrip(); statusLabel = new ToolStripStatusLabel("statusLabel"); statusProzentBar = new ToolStripProgressBar(); statusStrip.Items.Add(statusProzentBar); statusStrip.Items.Add(statusLabel); }
public Wait(Form instanceForm = null, int max = -1, System.Windows.Forms.ToolStripProgressBar p = null) { thisForm = T.Coalesce(instanceForm, form); thisForm.Cursor = Cursors.WaitCursor; progress = p; if (p != null) { progress = p; p.Maximum = max; p.Minimum = 0; p.Visible = true; } }
public void Connect(ToolStripStatusLabel toolStatus, ToolStripProgressBar toolProgress) { TelnetConnection tc = new TelnetConnection(settings.Address, 23); string s = tc.Login(settings.Username, settings.Password, 100); Console.Write(s); tc.WriteLine("/etc/enigma2/AutoRecorder/reconf /etc/enigma2/AutoRecorder/SearchProfiles/Automaatti.prof >/etc/enigma2/AutoRecorder/SearchProfiles/AutomaattiOut.py"); ftp ftpClient = new ftp(@"ftp://" + settings.Address, settings.Username, settings.Password); toolProgress.Value = 65; toolStatus.Text = "Downloading..."; ftpClient.download("/etc/enigma2/AutoRecorder/SearchProfiles/AutomaattiOut.py", @".\AutomaattiOut.py"); }
public static void ExecuteThreadSafe(Control host, ToolStripProgressBar control, int value) { if (host.InvokeRequired) { host.Invoke(new SetTextDelegate(ExecuteThreadSafe), new object[] { control, value }); } else { if (value <= control.Maximum && value >= control.Minimum) { control.Value = value; } } }
public StatusManager(StatusStrip strip, ToolStripStatusLabel label, ToolStripProgressBar progress) { this.strip = strip; this.label = label; this.progress = progress; label.Text = "Initializing..."; watch = new Stopwatch(); watch.Start(); progress.Minimum = 0; progress.Step = 1; progress.Maximum = 1; messages = new Queue<string>(); }
public void Update_All(System.Windows.Forms.StatusStrip aStatusStrip = null, System.Windows.Forms.ToolStripProgressBar aProgressBar = null) { Cursor OldCursor = Cursor.Current; Cursor.Current = Cursors.WaitCursor; LblStartTime.Text = $"Current run started {DateTime.Now.ToString("MMM dd, yyyy hh:mm:ss")}"; Update99s(); MirrorTokenXRef(); Load_From_eStore(); Update_mediaid(); Update_tokenxref(); Update_salesdata(); LblStartTime.Text = string.Empty; Cursor.Current = OldCursor; }
public int DownloadFile(string URL, string filename, System.Windows.Forms.ToolStripProgressBar prog, System.Windows.Forms.ToolStripLabel label1) { this.toolStripProgressBar1.Visible = true; float percent = 0; System.Net.HttpWebRequest Myrq; System.Net.HttpWebResponse myrp; try { Myrq = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(URL); Myrq.Timeout = 2000; myrp = (System.Net.HttpWebResponse)Myrq.GetResponse(); long totalBytes = myrp.ContentLength; if (prog != null) { prog.Maximum = (int)totalBytes; } System.IO.Stream st = myrp.GetResponseStream(); System.IO.Stream so = new System.IO.FileStream(filename, System.IO.FileMode.OpenOrCreate); long totalDownloadedByte = 0; byte[] by = new byte[102400]; int osize = st.Read(by, 0, (int)by.Length); while (osize > 0) { totalDownloadedByte = osize + totalDownloadedByte; System.Windows.Forms.Application.DoEvents(); so.Write(by, 0, osize); if (prog != null) { prog.Value = (int)totalDownloadedByte; } osize = st.Read(by, 0, (int)by.Length); percent = (float)totalDownloadedByte / (float)totalBytes * 100; label1.Text = "当前下载进度" + percent.ToString("F2") + "%"; System.Windows.Forms.Application.DoEvents(); //必须加注这句代码,否则label1将因为循环执行太快而来不及显示信息 } so.Close(); st.Close(); return(0); } catch (System.Exception) { return(-1); } }
public Output(Form myForm) { // Infobox infoBox = new ListBox(); infoBox.MinimumSize = new Size(0, 108); infoBox.MaximumSize = new Size(0, 108); infoBox.SetBounds(0, 215, 526, 172); //infoBox.Anchor = AnchorStyles.Bottom; // Statusbar statusStrip = new StatusStrip(); statusLabel = new ToolStripStatusLabel("statusLabel"); statusProzentBar = new ToolStripProgressBar(); statusStrip.Items.Add(statusProzentBar); statusStrip.Items.Add(statusLabel); //Form myForm.Controls.Add(infoBox); myForm.Controls.Add(statusStrip); }
public void Constructor () { ToolStripProgressBar tsi = new ToolStripProgressBar (); Assert.AreEqual (100, tsi.MarqueeAnimationSpeed, "A1"); Assert.AreEqual (100, tsi.Maximum, "A2"); Assert.AreEqual (0, tsi.Minimum, "A3"); Assert.AreEqual ("System.Windows.Forms.ProgressBar", tsi.ProgressBar.GetType ().ToString (), "A4"); Assert.AreEqual (false, tsi.RightToLeftLayout, "A5"); Assert.AreEqual (10, tsi.Step, "A6"); Assert.AreEqual (ProgressBarStyle.Blocks, tsi.Style, "A7"); Assert.AreEqual (string.Empty, tsi.Text, "A8"); Assert.AreEqual (0, tsi.Value, "A9"); tsi = new ToolStripProgressBar ("Bob"); Assert.AreEqual ("Bob", tsi.Name, "A10"); Assert.AreEqual (string.Empty, tsi.Control.Name, "A11"); }
static public void ScriptChecks(ref TextBox textbox, ref ToolStripProgressBar ProgressBar) { string[] src = FileSystemUtil.GetAllFileNames((string)Settings.Global.Properties["POLPath"], "*.src"); string[] ecl = FileSystemUtil.GetAllFileNames((string)Settings.Global.Properties["POLPath"], "*.ecl"); string[] asp = FileSystemUtil.GetAllFileNames((string)Settings.Global.Properties["POLPath"], "*.asp"); ScriptCount.Add("ECL", ecl.Length); ScriptCount.Add("SRC", src.Length); ScriptCount.Add("ASP", asp.Length); if (ecl.Length < src.Length) textbox.AppendText("* Warning: Not all scripts are compiled." + Environment.NewLine); else if (ecl.Length > src.Length) textbox.AppendText("* Warning: There are more ecl files than src files." + Environment.NewLine); else textbox.AppendText("* Pass: All scripts are compiled." + Environment.NewLine); textbox.AppendText("Found " + src.Length.ToString() + " .src files and " + ecl.Length.ToString() + " .ecl files." + Environment.NewLine); ProgressBar.PerformStep(); }
public static void SetProgressNoAnimation(ToolStripProgressBar pb, int value) { // To get around the progressive animation, we need to move the // progress bar backwards. if (value == pb.Maximum) { // Special case as value can't be set greater than Maximum. pb.Maximum = value + 1; // Temporarily Increase Maximum pb.Value = value + 1; // Move past pb.Maximum = value; // Reset maximum } else { pb.Value = value + 1; // Move past } pb.Value = value; // Move to correct value if (pb.Owner != null) pb.Owner.Update(); }
public void CopyFile(string[] list,string strNewPath,ToolStripProgressBar TSPBar) { try { TSPBar.Maximum = list.Length; string strNewFile = "c:\\" + strNewPath; if (!Directory.Exists(strNewFile)) Directory.CreateDirectory(strNewFile); foreach (object objFile in list) { string strFile = objFile.ToString(); string Filename = strFile.Substring(strFile.LastIndexOf("\\") + 1, strFile.Length - strFile.LastIndexOf("\\") - 1); File.Copy(strFile, strNewFile+"\\"+Filename, true); TSPBar.Value += 1; } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void InitializeComponent() { components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager componentResourceManager = new System.ComponentModel.ComponentResourceManager(typeof(LiveOutlook.LiveApp.FrmMain)); ToolTip = new System.Windows.Forms.ToolTip(components); lblStatus = new System.Windows.Forms.ToolStripStatusLabel(); statusStrip = new System.Windows.Forms.StatusStrip(); lblLoggedInLive = new System.Windows.Forms.ToolStripStatusLabel(); lblPCUserLive = new System.Windows.Forms.ToolStripStatusLabel(); lblUsersOnlineLive = new System.Windows.Forms.ToolStripStatusLabel(); pblive = new System.Windows.Forms.ToolStripProgressBar(); toolStrip = new System.Windows.Forms.ToolStrip(); tsbtnAppointments = new System.Windows.Forms.ToolStripButton(); tsbtnEnrollement = new System.Windows.Forms.ToolStripButton(); tsbtnVisit = new System.Windows.Forms.ToolStripButton(); fileMenu = new System.Windows.Forms.ToolStripMenuItem(); exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); viewMenu = new System.Windows.Forms.ToolStripMenuItem(); toolBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); statusBarToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); windowsMenu = new System.Windows.Forms.ToolStripMenuItem(); cascadeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); tileVerticalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); tileHorizontalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); closeAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); arrangeIconsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); menuStrip = new System.Windows.Forms.MenuStrip(); patientsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); appointmentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); enroToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); facilityToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); usersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); reportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); visitsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); activePatientsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); defaultersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); userToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); changePasswordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); statusStrip.SuspendLayout(); toolStrip.SuspendLayout(); menuStrip.SuspendLayout(); SuspendLayout(); lblStatus.Name = "lblStatus"; lblStatus.Size = new System.Drawing.Size(161, 17); lblStatus.Spring = true; lblStatus.Text = "Ready"; lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[5] { lblStatus, lblLoggedInLive, lblPCUserLive, lblUsersOnlineLive, pblive }); statusStrip.Location = new System.Drawing.Point(0, 431); statusStrip.Name = "statusStrip"; statusStrip.Size = new System.Drawing.Size(764, 22); statusStrip.TabIndex = 2; statusStrip.Text = "StatusStrip"; lblLoggedInLive.Name = "lblLoggedInLive"; lblLoggedInLive.Size = new System.Drawing.Size(161, 17); lblLoggedInLive.Spring = true; lblLoggedInLive.Text = "logged in as Amme"; lblPCUserLive.Name = "lblPCUserLive"; lblPCUserLive.Size = new System.Drawing.Size(161, 17); lblPCUserLive.Spring = true; lblPCUserLive.Text = "Ke\\dkoske"; lblUsersOnlineLive.Name = "lblUsersOnlineLive"; lblUsersOnlineLive.Size = new System.Drawing.Size(161, 17); lblUsersOnlineLive.Spring = true; lblUsersOnlineLive.Text = "5 users online"; pblive.Name = "pblive"; pblive.Size = new System.Drawing.Size(100, 16); toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[3] { tsbtnAppointments, tsbtnEnrollement, tsbtnVisit }); toolStrip.Location = new System.Drawing.Point(0, 24); toolStrip.Name = "toolStrip"; toolStrip.Size = new System.Drawing.Size(764, 25); toolStrip.TabIndex = 1; toolStrip.Text = "ToolStrip"; tsbtnAppointments.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; tsbtnAppointments.Image = LiveOutlook.Properties.Resources.cale; tsbtnAppointments.ImageTransparentColor = System.Drawing.Color.Magenta; tsbtnAppointments.Name = "tsbtnAppointments"; tsbtnAppointments.Size = new System.Drawing.Size(23, 22); tsbtnAppointments.Text = "toolStripButton1"; tsbtnAppointments.ToolTipText = "Manage Appointments"; tsbtnAppointments.Click += new System.EventHandler(tsbtnAppointments_Click); tsbtnEnrollement.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; tsbtnEnrollement.Image = LiveOutlook.Properties.Resources.Accept; tsbtnEnrollement.ImageTransparentColor = System.Drawing.Color.Magenta; tsbtnEnrollement.Name = "tsbtnEnrollement"; tsbtnEnrollement.Size = new System.Drawing.Size(23, 22); tsbtnEnrollement.Text = "toolStripButton2"; tsbtnEnrollement.ToolTipText = "Manage Patients"; tsbtnEnrollement.Click += new System.EventHandler(tsbtnEnrollement_Click); tsbtnVisit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; tsbtnVisit.Image = LiveOutlook.Properties.Resources.ReportGraph; tsbtnVisit.ImageTransparentColor = System.Drawing.Color.Magenta; tsbtnVisit.Name = "tsbtnVisit"; tsbtnVisit.Size = new System.Drawing.Size(23, 22); tsbtnVisit.Text = "toolStripButton3"; tsbtnVisit.ToolTipText = "Reporting"; tsbtnVisit.Click += new System.EventHandler(tsbtnVisit_Click); fileMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[1] { exitToolStripMenuItem }); fileMenu.ImageTransparentColor = System.Drawing.SystemColors.ActiveBorder; fileMenu.Name = "fileMenu"; fileMenu.Size = new System.Drawing.Size(37, 20); fileMenu.Text = "&File"; exitToolStripMenuItem.Name = "exitToolStripMenuItem"; exitToolStripMenuItem.Size = new System.Drawing.Size(92, 22); exitToolStripMenuItem.Text = "E&xit"; exitToolStripMenuItem.Click += new System.EventHandler(ExitToolsStripMenuItem_Click); viewMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2] { toolBarToolStripMenuItem, statusBarToolStripMenuItem }); viewMenu.Name = "viewMenu"; viewMenu.Size = new System.Drawing.Size(44, 20); viewMenu.Text = "&View"; toolBarToolStripMenuItem.Checked = true; toolBarToolStripMenuItem.CheckOnClick = true; toolBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; toolBarToolStripMenuItem.Name = "toolBarToolStripMenuItem"; toolBarToolStripMenuItem.Size = new System.Drawing.Size(126, 22); toolBarToolStripMenuItem.Text = "&Toolbar"; toolBarToolStripMenuItem.Click += new System.EventHandler(ToolBarToolStripMenuItem_Click); statusBarToolStripMenuItem.Checked = true; statusBarToolStripMenuItem.CheckOnClick = true; statusBarToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked; statusBarToolStripMenuItem.Name = "statusBarToolStripMenuItem"; statusBarToolStripMenuItem.Size = new System.Drawing.Size(126, 22); statusBarToolStripMenuItem.Text = "&Status Bar"; statusBarToolStripMenuItem.Click += new System.EventHandler(StatusBarToolStripMenuItem_Click); windowsMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[5] { cascadeToolStripMenuItem, tileVerticalToolStripMenuItem, tileHorizontalToolStripMenuItem, closeAllToolStripMenuItem, arrangeIconsToolStripMenuItem }); windowsMenu.Name = "windowsMenu"; windowsMenu.Size = new System.Drawing.Size(68, 20); windowsMenu.Text = "&Windows"; cascadeToolStripMenuItem.Name = "cascadeToolStripMenuItem"; cascadeToolStripMenuItem.Size = new System.Drawing.Size(151, 22); cascadeToolStripMenuItem.Text = "&Cascade"; cascadeToolStripMenuItem.Click += new System.EventHandler(CascadeToolStripMenuItem_Click); tileVerticalToolStripMenuItem.Name = "tileVerticalToolStripMenuItem"; tileVerticalToolStripMenuItem.Size = new System.Drawing.Size(151, 22); tileVerticalToolStripMenuItem.Text = "Tile &Vertical"; tileVerticalToolStripMenuItem.Click += new System.EventHandler(TileVerticalToolStripMenuItem_Click); tileHorizontalToolStripMenuItem.Name = "tileHorizontalToolStripMenuItem"; tileHorizontalToolStripMenuItem.Size = new System.Drawing.Size(151, 22); tileHorizontalToolStripMenuItem.Text = "Tile &Horizontal"; tileHorizontalToolStripMenuItem.Click += new System.EventHandler(TileHorizontalToolStripMenuItem_Click); closeAllToolStripMenuItem.Name = "closeAllToolStripMenuItem"; closeAllToolStripMenuItem.Size = new System.Drawing.Size(151, 22); closeAllToolStripMenuItem.Text = "C&lose All"; closeAllToolStripMenuItem.Click += new System.EventHandler(CloseAllToolStripMenuItem_Click); arrangeIconsToolStripMenuItem.Name = "arrangeIconsToolStripMenuItem"; arrangeIconsToolStripMenuItem.Size = new System.Drawing.Size(151, 22); arrangeIconsToolStripMenuItem.Text = "&Arrange Icons"; arrangeIconsToolStripMenuItem.Click += new System.EventHandler(ArrangeIconsToolStripMenuItem_Click); menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[7] { fileMenu, viewMenu, patientsToolStripMenuItem, settingsToolStripMenuItem, reportsToolStripMenuItem, windowsMenu, userToolStripMenuItem }); menuStrip.Location = new System.Drawing.Point(0, 0); menuStrip.MdiWindowListItem = windowsMenu; menuStrip.Name = "menuStrip"; menuStrip.Size = new System.Drawing.Size(764, 24); menuStrip.TabIndex = 0; menuStrip.Text = "MenuStrip"; patientsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2] { appointmentsToolStripMenuItem, enroToolStripMenuItem }); patientsToolStripMenuItem.Name = "patientsToolStripMenuItem"; patientsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); patientsToolStripMenuItem.Text = "Patients"; appointmentsToolStripMenuItem.Name = "appointmentsToolStripMenuItem"; appointmentsToolStripMenuItem.Size = new System.Drawing.Size(150, 22); appointmentsToolStripMenuItem.Text = "Appointments"; appointmentsToolStripMenuItem.Click += new System.EventHandler(appointmentsToolStripMenuItem_Click); enroToolStripMenuItem.Name = "enroToolStripMenuItem"; enroToolStripMenuItem.Size = new System.Drawing.Size(150, 22); enroToolStripMenuItem.Text = "Enrollment"; enroToolStripMenuItem.Click += new System.EventHandler(enroToolStripMenuItem_Click); settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[2] { facilityToolStripMenuItem, usersToolStripMenuItem }); settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; settingsToolStripMenuItem.Size = new System.Drawing.Size(61, 20); settingsToolStripMenuItem.Text = "Settings"; facilityToolStripMenuItem.Name = "facilityToolStripMenuItem"; facilityToolStripMenuItem.Size = new System.Drawing.Size(111, 22); facilityToolStripMenuItem.Text = "Facility"; facilityToolStripMenuItem.Click += new System.EventHandler(facilityToolStripMenuItem_Click); usersToolStripMenuItem.Name = "usersToolStripMenuItem"; usersToolStripMenuItem.Size = new System.Drawing.Size(111, 22); usersToolStripMenuItem.Text = "Users"; usersToolStripMenuItem.Click += new System.EventHandler(usersToolStripMenuItem_Click); reportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[3] { visitsToolStripMenuItem, activePatientsToolStripMenuItem, defaultersToolStripMenuItem }); reportsToolStripMenuItem.Name = "reportsToolStripMenuItem"; reportsToolStripMenuItem.Size = new System.Drawing.Size(59, 20); reportsToolStripMenuItem.Text = "Reports"; visitsToolStripMenuItem.Image = LiveOutlook.Properties.Resources.ReportGraph; visitsToolStripMenuItem.Name = "visitsToolStripMenuItem"; visitsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); visitsToolStripMenuItem.Text = "Visits"; visitsToolStripMenuItem.Click += new System.EventHandler(visitsToolStripMenuItem_Click); activePatientsToolStripMenuItem.Name = "activePatientsToolStripMenuItem"; activePatientsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); activePatientsToolStripMenuItem.Text = "Active patients"; activePatientsToolStripMenuItem.Click += new System.EventHandler(activePatientsToolStripMenuItem_Click); defaultersToolStripMenuItem.Name = "defaultersToolStripMenuItem"; defaultersToolStripMenuItem.Size = new System.Drawing.Size(152, 22); defaultersToolStripMenuItem.Text = "Defaulters"; defaultersToolStripMenuItem.Click += new System.EventHandler(defaultersToolStripMenuItem_Click); userToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[1] { changePasswordToolStripMenuItem }); userToolStripMenuItem.Name = "userToolStripMenuItem"; userToolStripMenuItem.Size = new System.Drawing.Size(41, 20); userToolStripMenuItem.Text = "user"; changePasswordToolStripMenuItem.Name = "changePasswordToolStripMenuItem"; changePasswordToolStripMenuItem.Size = new System.Drawing.Size(168, 22); changePasswordToolStripMenuItem.Text = "Change Password"; changePasswordToolStripMenuItem.Click += new System.EventHandler(changePasswordToolStripMenuItem_Click); base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f); base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.ClientSize = new System.Drawing.Size(764, 453); base.Controls.Add(statusStrip); base.Controls.Add(toolStrip); base.Controls.Add(menuStrip); base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon"); base.IsMdiContainer = true; base.MainMenuStrip = menuStrip; base.Name = "FrmMain"; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; Text = "Hospital Reception System - PSC"; base.WindowState = System.Windows.Forms.FormWindowState.Maximized; base.Load += new System.EventHandler(FrmMain_Load); base.FormClosed += new System.Windows.Forms.FormClosedEventHandler(FrmMain_FormClosed); base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FrmMain_FormClosing); statusStrip.ResumeLayout(performLayout: false); statusStrip.PerformLayout(); toolStrip.ResumeLayout(performLayout: false); toolStrip.PerformLayout(); menuStrip.ResumeLayout(performLayout: false); menuStrip.PerformLayout(); ResumeLayout(performLayout: false); PerformLayout(); }
private void CallPB(System.Windows.Forms.ToolStripProgressBar pBar, int nPos, int nTot) { pBar.Value = nPos * 100 / nTot; }
private void InitializeComponent() { this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.tsslCurrentStatus = new System.Windows.Forms.ToolStripStatusLabel(); this.tspCopyProgress = new System.Windows.Forms.ToolStripProgressBar(); this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); this.kryptonGroupBox1 = new Krypton.Toolkit.KryptonGroupBox(); this.ktxtProjectPath = new Krypton.Toolkit.KryptonTextBox(); this.klbProjectFiles = new Krypton.Toolkit.KryptonListBox(); this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel(); this.kbtnBrowseProjectDirectory = new Krypton.Toolkit.KryptonButton(); this.kbtnClose = new Krypton.Toolkit.KryptonButton(); this.kgbStageThree = new Krypton.Toolkit.KryptonGroupBox(); this.kgbStageTwo = new Krypton.Toolkit.KryptonGroupBox(); this.kbtnVarifyBackup = new Krypton.Toolkit.KryptonButton(); this.kbtnBackupProject = new Krypton.Toolkit.KryptonButton(); this.kchkCompressBackup = new Krypton.Toolkit.KryptonCheckBox(); this.kbtnBrowseBackupDirectory = new Krypton.Toolkit.KryptonButton(); this.ktxtBackupDirectory = new Krypton.Toolkit.KryptonTextBox(); this.kryptonLabel2 = new Krypton.Toolkit.KryptonLabel(); this.statusStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).BeginInit(); this.kryptonGroupBox1.Panel.SuspendLayout(); this.kryptonGroupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kgbStageThree)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kgbStageThree.Panel)).BeginInit(); this.kgbStageThree.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kgbStageTwo)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kgbStageTwo.Panel)).BeginInit(); this.kgbStageTwo.Panel.SuspendLayout(); this.kgbStageTwo.SuspendLayout(); this.SuspendLayout(); // // statusStrip1 // this.statusStrip1.Font = new System.Drawing.Font("Segoe UI", 9F); this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.tsslCurrentStatus, this.tspCopyProgress }); this.statusStrip1.Location = new System.Drawing.Point(0, 453); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.statusStrip1.Size = new System.Drawing.Size(1133, 22); this.statusStrip1.TabIndex = 0; this.statusStrip1.Text = "statusStrip1"; // // tsslCurrentStatus // this.tsslCurrentStatus.Name = "tsslCurrentStatus"; this.tsslCurrentStatus.Size = new System.Drawing.Size(985, 17); this.tsslCurrentStatus.Spring = true; this.tsslCurrentStatus.Text = "Ready"; this.tsslCurrentStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tspCopyProgress // this.tspCopyProgress.Name = "tspCopyProgress"; this.tspCopyProgress.Size = new System.Drawing.Size(100, 16); this.tspCopyProgress.Visible = false; // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kryptonGroupBox1); this.kryptonPanel1.Controls.Add(this.kbtnClose); this.kryptonPanel1.Controls.Add(this.kgbStageThree); this.kryptonPanel1.Controls.Add(this.kgbStageTwo); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1133, 453); this.kryptonPanel1.TabIndex = 1; // // kryptonGroupBox1 // this.kryptonGroupBox1.Location = new System.Drawing.Point(17, 12); this.kryptonGroupBox1.Name = "kryptonGroupBox1"; // // kryptonGroupBox1.Panel // this.kryptonGroupBox1.Panel.Controls.Add(this.ktxtProjectPath); this.kryptonGroupBox1.Panel.Controls.Add(this.klbProjectFiles); this.kryptonGroupBox1.Panel.Controls.Add(this.kryptonLabel1); this.kryptonGroupBox1.Panel.Controls.Add(this.kbtnBrowseProjectDirectory); this.kryptonGroupBox1.Size = new System.Drawing.Size(411, 426); this.kryptonGroupBox1.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonGroupBox1.TabIndex = 12; this.kryptonGroupBox1.Values.Heading = "Step 1: Locate Project Files"; // // ktxtProjectPath // this.ktxtProjectPath.Location = new System.Drawing.Point(17, 44); this.ktxtProjectPath.Name = "ktxtProjectPath"; this.ktxtProjectPath.Size = new System.Drawing.Size(341, 26); this.ktxtProjectPath.StateCommon.Content.Font = new System.Drawing.Font("Arial Narrow", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ktxtProjectPath.StateCommon.Content.TextH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.ktxtProjectPath.TabIndex = 7; this.ktxtProjectPath.TextChanged += new System.EventHandler(this.ktxtProjectPath_TextChanged); // // klbProjectFiles // this.klbProjectFiles.Location = new System.Drawing.Point(17, 76); this.klbProjectFiles.Name = "klbProjectFiles"; this.klbProjectFiles.Size = new System.Drawing.Size(378, 306); this.klbProjectFiles.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klbProjectFiles.TabIndex = 5; this.klbProjectFiles.MouseEnter += new System.EventHandler(this.klbProjectFiles_MouseEnter); this.klbProjectFiles.MouseHover += new System.EventHandler(this.klbProjectFiles_MouseHover); // // kryptonLabel1 // this.kryptonLabel1.Location = new System.Drawing.Point(133, 16); this.kryptonLabel1.Name = "kryptonLabel1"; this.kryptonLabel1.Size = new System.Drawing.Size(115, 22); this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel1.TabIndex = 2; this.kryptonLabel1.Values.Text = "Project Files:"; // // kbtnBrowseProjectDirectory // this.kbtnBrowseProjectDirectory.Location = new System.Drawing.Point(364, 44); this.kbtnBrowseProjectDirectory.Name = "kbtnBrowseProjectDirectory"; this.kbtnBrowseProjectDirectory.Size = new System.Drawing.Size(31, 26); this.kbtnBrowseProjectDirectory.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnBrowseProjectDirectory.TabIndex = 4; this.kbtnBrowseProjectDirectory.Values.Text = "..&."; this.kbtnBrowseProjectDirectory.Click += new System.EventHandler(this.kbtnBrowseProjectDirectory_Click); // // kbtnClose // this.kbtnClose.Enabled = false; this.kbtnClose.Location = new System.Drawing.Point(1025, 308); this.kbtnClose.Name = "kbtnClose"; this.kbtnClose.Size = new System.Drawing.Size(96, 26); this.kbtnClose.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnClose.TabIndex = 11; this.kbtnClose.Values.Text = "&Close"; // // kgbStageThree // this.kgbStageThree.Enabled = false; this.kgbStageThree.Location = new System.Drawing.Point(445, 151); this.kgbStageThree.Name = "kgbStageThree"; this.kgbStageThree.Size = new System.Drawing.Size(676, 111); this.kgbStageThree.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kgbStageThree.TabIndex = 6; this.kgbStageThree.Values.Heading = "Step 2: Migrate Project"; // // kgbStageTwo // this.kgbStageTwo.Enabled = false; this.kgbStageTwo.Location = new System.Drawing.Point(445, 12); this.kgbStageTwo.Name = "kgbStageTwo"; // // kgbStageTwo.Panel // this.kgbStageTwo.Panel.Controls.Add(this.kbtnVarifyBackup); this.kgbStageTwo.Panel.Controls.Add(this.kbtnBackupProject); this.kgbStageTwo.Panel.Controls.Add(this.kchkCompressBackup); this.kgbStageTwo.Panel.Controls.Add(this.kbtnBrowseBackupDirectory); this.kgbStageTwo.Panel.Controls.Add(this.ktxtBackupDirectory); this.kgbStageTwo.Panel.Controls.Add(this.kryptonLabel2); this.kgbStageTwo.Size = new System.Drawing.Size(676, 111); this.kgbStageTwo.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kgbStageTwo.TabIndex = 5; this.kgbStageTwo.Values.Heading = "Step 2: Backup Project"; // // kbtnVarifyBackup // this.kbtnVarifyBackup.Enabled = false; this.kbtnVarifyBackup.Location = new System.Drawing.Point(455, 46); this.kbtnVarifyBackup.Name = "kbtnVarifyBackup"; this.kbtnVarifyBackup.Size = new System.Drawing.Size(184, 26); this.kbtnVarifyBackup.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnVarifyBackup.TabIndex = 10; this.kbtnVarifyBackup.Values.Text = "V&erify Backup"; // // kbtnBackupProject // this.kbtnBackupProject.Enabled = false; this.kbtnBackupProject.Location = new System.Drawing.Point(250, 46); this.kbtnBackupProject.Name = "kbtnBackupProject"; this.kbtnBackupProject.Size = new System.Drawing.Size(184, 26); this.kbtnBackupProject.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnBackupProject.TabIndex = 9; this.kbtnBackupProject.Values.Text = "&Backup Project"; this.kbtnBackupProject.Click += new System.EventHandler(this.kbtnBackupProject_Click); // // kchkCompressBackup // this.kchkCompressBackup.Location = new System.Drawing.Point(57, 50); this.kchkCompressBackup.Name = "kchkCompressBackup"; this.kchkCompressBackup.Size = new System.Drawing.Size(159, 22); this.kchkCompressBackup.StateCommon.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kchkCompressBackup.TabIndex = 8; this.kchkCompressBackup.Values.Text = "&Compress Backup"; // // kbtnBrowseBackupDirectory // this.kbtnBrowseBackupDirectory.Location = new System.Drawing.Point(630, 11); this.kbtnBrowseBackupDirectory.Name = "kbtnBrowseBackupDirectory"; this.kbtnBrowseBackupDirectory.Size = new System.Drawing.Size(31, 26); this.kbtnBrowseBackupDirectory.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnBrowseBackupDirectory.TabIndex = 7; this.kbtnBrowseBackupDirectory.Values.Text = "..&."; this.kbtnBrowseBackupDirectory.Click += new System.EventHandler(this.KbtnBrowseBackupDirectory_Click); // // ktxtBackupDirectory // this.ktxtBackupDirectory.Location = new System.Drawing.Point(182, 11); this.ktxtBackupDirectory.Name = "ktxtBackupDirectory"; this.ktxtBackupDirectory.Size = new System.Drawing.Size(442, 26); this.ktxtBackupDirectory.StateCommon.Content.Font = new System.Drawing.Font("Arial Narrow", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ktxtBackupDirectory.StateCommon.Content.TextH = Krypton.Toolkit.PaletteRelativeAlign.Inherit; this.ktxtBackupDirectory.TabIndex = 6; this.ktxtBackupDirectory.TextChanged += new System.EventHandler(this.ktxtBackupDirectory_TextChanged); // // kryptonLabel2 // this.kryptonLabel2.Location = new System.Drawing.Point(22, 13); this.kryptonLabel2.Name = "kryptonLabel2"; this.kryptonLabel2.Size = new System.Drawing.Size(154, 22); this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel2.TabIndex = 5; this.kryptonLabel2.Values.Text = "Backup Directory:"; // // KryptonMainWindow // this.ClientSize = new System.Drawing.Size(1133, 475); this.Controls.Add(this.kryptonPanel1); this.Controls.Add(this.statusStrip1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "KryptonMainWindow"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1.Panel)).EndInit(); this.kryptonGroupBox1.Panel.ResumeLayout(false); this.kryptonGroupBox1.Panel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonGroupBox1)).EndInit(); this.kryptonGroupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kgbStageThree.Panel)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kgbStageThree)).EndInit(); this.kgbStageThree.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kgbStageTwo.Panel)).EndInit(); this.kgbStageTwo.Panel.ResumeLayout(false); this.kgbStageTwo.Panel.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.kgbStageTwo)).EndInit(); this.kgbStageTwo.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// calculate frequency of pulse output /// </summary> /// <param name="Freq1">pulse output 1</param> /// <param name="Freq2">pulse output 2</param> /// <param name="Freq3">pulse output 3</param> /// <param name="Freq4">pulse output 4</param> /// <param name="FreqCust">customer pulse output</param> /// <param name="TestTime">measuring time</param> /// <param name="Current">current value</param> /// <param name="Port">serial port</param> /// <param name="ProgBar">progress bar</param> public void GetFrequency(ref float Freq1, ref float Freq2, ref float Freq3, ref float Freq4, ref float FreqCust, int TestTime, ref float Current, System.IO.Ports.SerialPort Port, System.Windows.Forms.ToolStripProgressBar ProgBar) { int Count1 = 0, Count2 = 0, Count3 = 0, Count4 = 0, CountCust = 0; int CountRing1 = 0, CountRing2 = 0, CountRing3 = 0, CountRing4 = 0, CountRingCust = 0; float[] arrCurrent = new float[(int)TestTime]; OpenInternalRelay(0, 1, Port); OpenInternalRelay(0, 3, Port); OpenInternalRelay(0, 4, Port); ResetCounter(Port); if (TestTime == 60) { CloseInternalRelay(0, 1, Port); } else if (TestTime == 120) { CloseInternalRelay(0, 3, Port); } else if (TestTime == 300) { CloseInternalRelay(0, 4, Port); } for (int i = 0; i < TestTime; i++) { if (IsCalibrationCanceld) { OpenInternalRelay(0, 1, Port); OpenInternalRelay(0, 3, Port); OpenInternalRelay(0, 4, Port); ResetCounter(Port); ProgBar.Value = 0; return; } System.Threading.Thread.Sleep(1000); ProgBar.Increment(1); Application.DoEvents(); arrCurrent[(int)i] = ReadAnalogInputValue(4, 3, Port); } Current = CalculateMean(arrCurrent) / 10; System.Threading.Thread.Sleep(1000); ProgBar.Value = 0; Read4CounterValues(5, Port, ref Count1, ref Count2, ref Count3, ref Count4); CountCust = ReadCounterValue(6, 1, Port); OpenInternalRelay(0, 1, Port); CountRing1 = GetFAM3DataValue(0, 3, Port); CountRing2 = GetFAM3DataValue(0, 4, Port); CountRing3 = GetFAM3DataValue(0, 5, Port); CountRing4 = GetFAM3DataValue(0, 6, Port); CountRingCust = GetFAM3DataValue(0, 2, Port); Freq1 = Convert.ToSingle((Count1 + (CountRing1 * 0xFFFF)) / (float)TestTime); Freq2 = Convert.ToSingle((Count2 + (CountRing2 * 0xFFFF)) / (float)TestTime); Freq3 = Convert.ToSingle((Count3 + (CountRing3 * 0xFFFF)) / (float)TestTime); Freq4 = Convert.ToSingle((Count4 + (CountRing4 * 0xFFFF)) / (float)TestTime); FreqCust = Convert.ToSingle((CountCust + (CountRingCust * 0xFFFF)) / (float)TestTime); }
/// <summary> /// Returns an observable sequence wrapping the KeyUp event on the ToolStripProgressBar instance. /// </summary> /// <param name="instance">The ToolStripProgressBar instance to observe.</param> /// <returns>An observable sequence wrapping the KeyUp event on the ToolStripProgressBar instance.</returns> public static IObservable <EventPattern <KeyEventArgs> > KeyUpObservable(this ToolStripProgressBar instance) { return(Observable.FromEventPattern <KeyEventHandler, KeyEventArgs>( handler => instance.KeyUp += handler, handler => instance.KeyUp -= handler)); }
/// <summary> /// Returns an observable sequence wrapping the TextChanged event on the ToolStripProgressBar instance. /// </summary> /// <param name="instance">The ToolStripProgressBar instance to observe.</param> /// <returns>An observable sequence wrapping the TextChanged event on the ToolStripProgressBar instance.</returns> public static IObservable <EventPattern <EventArgs> > TextChangedObservable(this ToolStripProgressBar instance) { return(Observable.FromEventPattern <EventHandler, EventArgs>( handler => instance.TextChanged += handler, handler => instance.TextChanged -= handler)); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StatusStripControls)); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.ss = new System.Windows.Forms.StatusStrip(); this.knudtsiTest = new ExtendedControls.ExtendedToolkit.ToolstripControls.KryptonNumericUpDownToolStripItem(); this.o07cptsiTest = new ExtendedControls.ExtendedToolkit.Controls.Drawing.Controls.Office2007ColorPickerToolStripMenuItem(); this.kcbtsmiTest = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonColourButtonToolStripMenuItem(); this.ktbtsmiTest = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonTrackBarToolStripMenuItem(); this.kvbTest = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonViewBar(); this.ksbTest = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.ToolbarItems.KryptonSliderBar(); this.tsmiuacsTest = new KryptonExtendedToolkit.ExtendedToolkit.ToolstripControls.ToolStripMenuItemUACSheld(); this.etslTest = new ExtendedControls.ExtendedToolkit.ToolstripControls.ExtendedToolStripStatusLabel(); this.tspbTest = new System.Windows.Forms.ToolStripProgressBar(); this.kpgStatusStripItems = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.KryptonPropertyGrid(); this.kcbtnBackwardDiagonal = new ComponentFactory.Krypton.Toolkit.KryptonCheckButton(); this.kcbtnForwardDiagonal = new ComponentFactory.Krypton.Toolkit.KryptonCheckButton(); this.kcbtnVertical = new ComponentFactory.Krypton.Toolkit.KryptonCheckButton(); this.kcbtnHorizontal = new ComponentFactory.Krypton.Toolkit.KryptonCheckButton(); this.kcbtnTextColour = new ComponentFactory.Krypton.Toolkit.KryptonColorButton(); this.kcbtnGradientColour2 = new ComponentFactory.Krypton.Toolkit.KryptonColorButton(); this.kcbtnGradientColour1 = new ComponentFactory.Krypton.Toolkit.KryptonColorButton(); this.kryptonSliderBar1 = new ExtendedControls.ExtendedToolkit.Controls.KryptonControls.ToolbarItems.KryptonSliderBar(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); this.ss.SuspendLayout(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.ss); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.kryptonPanel1.Location = new System.Drawing.Point(0, 646); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(1207, 22); this.kryptonPanel1.TabIndex = 0; // // ss // this.ss.Font = new System.Drawing.Font("Segoe UI", 9F); this.ss.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.knudtsiTest, this.o07cptsiTest, this.kcbtsmiTest, this.ktbtsmiTest, this.kvbTest, this.ksbTest, this.tsmiuacsTest, this.etslTest, this.tspbTest, this.kryptonSliderBar1 }); this.ss.Location = new System.Drawing.Point(0, -3); this.ss.Name = "ss"; this.ss.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.ss.Size = new System.Drawing.Size(1207, 25); this.ss.TabIndex = 0; this.ss.Text = "statusStrip1"; // // knudtsiTest // this.knudtsiTest.AutoSize = false; this.knudtsiTest.Name = "knudtsiTest"; this.knudtsiTest.Size = new System.Drawing.Size(50, 23); this.knudtsiTest.Text = "0"; this.knudtsiTest.Value = new decimal(new int[] { 0, 0, 0, 0 }); this.knudtsiTest.Click += new System.EventHandler(this.KnudtsiTest_Click); // // o07cptsiTest // this.o07cptsiTest.Name = "o07cptsiTest"; // // o07cptsiTest // this.o07cptsiTest.Office2007ColourPickerControl.AccessibleName = "o07cptsiTest"; this.o07cptsiTest.Office2007ColourPickerControl.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; this.o07cptsiTest.Office2007ColourPickerControl.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.o07cptsiTest.Office2007ColourPickerControl.Items.AddRange(new object[] { "Color" }); this.o07cptsiTest.Office2007ColourPickerControl.Location = new System.Drawing.Point(51, 2); this.o07cptsiTest.Office2007ColourPickerControl.Name = "o07cptsiTest"; this.o07cptsiTest.Office2007ColourPickerControl.SelectedColour = System.Drawing.Color.Black; this.o07cptsiTest.Office2007ColourPickerControl.Size = new System.Drawing.Size(121, 24); this.o07cptsiTest.Office2007ColourPickerControl.TabIndex = 2; this.o07cptsiTest.Size = new System.Drawing.Size(121, 23); this.o07cptsiTest.Text = "Color"; // // kcbtsmiTest // this.kcbtsmiTest.AutoSize = false; // // kcbtsmiTest // this.kcbtsmiTest.KryptonColorButtonControl.AccessibleName = "kcbtsmiTest"; this.kcbtsmiTest.KryptonColorButtonControl.Location = new System.Drawing.Point(172, 2); this.kcbtsmiTest.KryptonColorButtonControl.Name = "kcbtsmiTest"; this.kcbtsmiTest.KryptonColorButtonControl.Size = new System.Drawing.Size(90, 23); this.kcbtsmiTest.KryptonColorButtonControl.TabIndex = 3; this.kcbtsmiTest.Name = "kcbtsmiTest"; this.kcbtsmiTest.Size = new System.Drawing.Size(90, 23); this.kcbtsmiTest.Text = "Color"; // // ktbtsmiTest // this.ktbtsmiTest.AutoSize = false; // // ktbtsmiTest // this.ktbtsmiTest.KryptonTrackBarControl.AccessibleName = "ktbtsmiTest"; this.ktbtsmiTest.KryptonTrackBarControl.DrawBackground = true; this.ktbtsmiTest.KryptonTrackBarControl.Location = new System.Drawing.Point(262, 2); this.ktbtsmiTest.KryptonTrackBarControl.Name = "ktbtsmiTest"; this.ktbtsmiTest.KryptonTrackBarControl.Size = new System.Drawing.Size(150, 23); this.ktbtsmiTest.KryptonTrackBarControl.TabIndex = 4; this.ktbtsmiTest.LargeChange = 5; this.ktbtsmiTest.Maximum = 10; this.ktbtsmiTest.Minimum = 0; this.ktbtsmiTest.Name = "ktbtsmiTest"; this.ktbtsmiTest.Orientation = System.Windows.Forms.Orientation.Horizontal; this.ktbtsmiTest.Size = new System.Drawing.Size(150, 23); this.ktbtsmiTest.SmallChange = 1; this.ktbtsmiTest.Text = "kryptonTrackBarToolStripMenuItem1"; this.ktbtsmiTest.TickFrequency = 1; this.ktbtsmiTest.TickStyle = System.Windows.Forms.TickStyle.BottomRight; this.ktbtsmiTest.TrackBarSize = ComponentFactory.Krypton.Toolkit.PaletteTrackBarSize.Medium; this.ktbtsmiTest.Value = 0; this.ktbtsmiTest.VolumeControl = false; // // kvbTest // this.kvbTest.BackColor = System.Drawing.Color.Transparent; this.kvbTest.Font = new System.Drawing.Font("Segoe UI", 8.25F); this.kvbTest.Name = "kvbTest"; this.kvbTest.Size = new System.Drawing.Size(117, 23); this.kvbTest.Text = "kryptonViewBar1"; this.kvbTest.ViewBarSize = new System.Drawing.Size(117, 23); // // ksbTest // this.ksbTest.BackColor = System.Drawing.Color.Transparent; this.ksbTest.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.ksbTest.Name = "ksbTest"; this.ksbTest.Size = new System.Drawing.Size(140, 23); this.ksbTest.Steps = 2; this.ksbTest.Text = "kryptonSliderBar1"; this.ksbTest.TrackerSize = new System.Drawing.Size(140, 23); // // tsmiuacsTest // this.tsmiuacsTest.Image = ((System.Drawing.Image)(resources.GetObject("tsmiuacsTest.Image"))); this.tsmiuacsTest.Name = "tsmiuacsTest"; this.tsmiuacsTest.Size = new System.Drawing.Size(194, 25); this.tsmiuacsTest.Text = "toolStripMenuItemUACSheld1"; // // etslTest // this.etslTest.BackColor = System.Drawing.Color.Empty; this.etslTest.BkClr = false; this.etslTest.BlinkDuration = ((long)(10)); this.etslTest.BlinkState = ExtendedControls.Base.Enumerations.BlinkState.NormalBlink; this.etslTest.CycleInterval = ((short)(2000)); this.etslTest.EnableBlinking = true; this.etslTest.ForeColor = System.Drawing.SystemColors.ControlText; this.etslTest.GradientColourOne = System.Drawing.Color.Empty; this.etslTest.GradientColourTwo = System.Drawing.Color.Empty; this.etslTest.Name = "etslTest"; this.etslTest.Size = new System.Drawing.Size(75, 20); this.etslTest.Text = "Gradient Test"; this.etslTest.Click += new System.EventHandler(this.EtslTest_Click); // // tspbTest // this.tspbTest.Name = "tspbTest"; this.tspbTest.Size = new System.Drawing.Size(100, 19); this.tspbTest.Value = 50; // // kpgStatusStripItems // this.kpgStatusStripItems.CategoryForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91))))); this.kpgStatusStripItems.HelpBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(187)))), ((int)(((byte)(206)))), ((int)(((byte)(230))))); this.kpgStatusStripItems.HelpForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(57)))), ((int)(((byte)(91))))); this.kpgStatusStripItems.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(179)))), ((int)(((byte)(196)))), ((int)(((byte)(216))))); this.kpgStatusStripItems.Location = new System.Drawing.Point(12, 12); this.kpgStatusStripItems.Name = "kpgStatusStripItems"; this.kpgStatusStripItems.Size = new System.Drawing.Size(349, 612); this.kpgStatusStripItems.TabIndex = 1; // // kcbtnBackwardDiagonal // this.kcbtnBackwardDiagonal.Location = new System.Drawing.Point(403, 92); this.kcbtnBackwardDiagonal.Name = "kcbtnBackwardDiagonal"; this.kcbtnBackwardDiagonal.Size = new System.Drawing.Size(150, 25); this.kcbtnBackwardDiagonal.TabIndex = 23; this.kcbtnBackwardDiagonal.Values.Text = "&Backward Diagonal"; this.kcbtnBackwardDiagonal.Click += new System.EventHandler(this.KcbtnBackwardDiagonal_Click); // // kcbtnForwardDiagonal // this.kcbtnForwardDiagonal.Checked = true; this.kcbtnForwardDiagonal.Location = new System.Drawing.Point(402, 252); this.kcbtnForwardDiagonal.Name = "kcbtnForwardDiagonal"; this.kcbtnForwardDiagonal.Size = new System.Drawing.Size(150, 25); this.kcbtnForwardDiagonal.TabIndex = 22; this.kcbtnForwardDiagonal.Values.Text = "&Forward Diagonal"; this.kcbtnForwardDiagonal.Click += new System.EventHandler(this.KcbtnForwardDiagonal_Click); // // kcbtnVertical // this.kcbtnVertical.Location = new System.Drawing.Point(403, 172); this.kcbtnVertical.Name = "kcbtnVertical"; this.kcbtnVertical.Size = new System.Drawing.Size(150, 25); this.kcbtnVertical.TabIndex = 21; this.kcbtnVertical.Values.Text = "Ver&tical"; this.kcbtnVertical.Click += new System.EventHandler(this.KcbtnVertical_Click); // // kcbtnHorizontal // this.kcbtnHorizontal.Location = new System.Drawing.Point(402, 12); this.kcbtnHorizontal.Name = "kcbtnHorizontal"; this.kcbtnHorizontal.Size = new System.Drawing.Size(150, 25); this.kcbtnHorizontal.TabIndex = 20; this.kcbtnHorizontal.Values.Text = "&Horizontal"; this.kcbtnHorizontal.Click += new System.EventHandler(this.KcbtnHorizontal_Click); // // kcbtnTextColour // this.kcbtnTextColour.AutoSize = true; this.kcbtnTextColour.Location = new System.Drawing.Point(402, 488); this.kcbtnTextColour.Name = "kcbtnTextColour"; this.kcbtnTextColour.Size = new System.Drawing.Size(136, 25); this.kcbtnTextColour.TabIndex = 26; this.kcbtnTextColour.Values.Text = "Text Colour"; this.kcbtnTextColour.SelectedColorChanged += new System.EventHandler <ComponentFactory.Krypton.Toolkit.ColorEventArgs>(this.KcbtnTextColour_SelectedColorChanged); // // kcbtnGradientColour2 // this.kcbtnGradientColour2.AutoSize = true; this.kcbtnGradientColour2.Location = new System.Drawing.Point(403, 401); this.kcbtnGradientColour2.Name = "kcbtnGradientColour2"; this.kcbtnGradientColour2.Size = new System.Drawing.Size(136, 25); this.kcbtnGradientColour2.TabIndex = 25; this.kcbtnGradientColour2.Values.Text = "Gradient Colour 2"; this.kcbtnGradientColour2.SelectedColorChanged += new System.EventHandler <ComponentFactory.Krypton.Toolkit.ColorEventArgs>(this.KcbtnGradientColour2_SelectedColorChanged); // // kcbtnGradientColour1 // this.kcbtnGradientColour1.AutoSize = true; this.kcbtnGradientColour1.Location = new System.Drawing.Point(403, 314); this.kcbtnGradientColour1.Name = "kcbtnGradientColour1"; this.kcbtnGradientColour1.Size = new System.Drawing.Size(136, 25); this.kcbtnGradientColour1.TabIndex = 24; this.kcbtnGradientColour1.Values.Text = "Gradient Colour 1"; this.kcbtnGradientColour1.SelectedColorChanged += new System.EventHandler <ComponentFactory.Krypton.Toolkit.ColorEventArgs>(this.KcbtnGradientColour1_SelectedColorChanged); // // kryptonSliderBar1 // this.kryptonSliderBar1.BackColor = System.Drawing.Color.Transparent; this.kryptonSliderBar1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonSliderBar1.Name = "kryptonSliderBar1"; this.kryptonSliderBar1.Size = new System.Drawing.Size(140, 23); this.kryptonSliderBar1.Steps = 2; this.kryptonSliderBar1.Text = "kryptonSliderBar1"; this.kryptonSliderBar1.TrackerSize = new System.Drawing.Size(140, 23); // // StatusStripControls // this.ClientSize = new System.Drawing.Size(1207, 668); this.Controls.Add(this.kcbtnTextColour); this.Controls.Add(this.kcbtnGradientColour2); this.Controls.Add(this.kcbtnGradientColour1); this.Controls.Add(this.kcbtnBackwardDiagonal); this.Controls.Add(this.kcbtnForwardDiagonal); this.Controls.Add(this.kcbtnVertical); this.Controls.Add(this.kcbtnHorizontal); this.Controls.Add(this.kpgStatusStripItems); this.Controls.Add(this.kryptonPanel1); this.Name = "StatusStripControls"; this.Load += new System.EventHandler(this.StatusStripControls_Load); this.Click += new System.EventHandler(this.StatusStripControls_Click); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); this.ss.ResumeLayout(false); this.ss.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
public ToolStripProgressBarAccessibleObject(ToolStripProgressBar ownerItem) : base(ownerItem) { this.ownerItem = ownerItem; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.toolBar = new ZXMAK2.Host.WinForms.Controls.ToolStripEx(); this.btnRewind = new System.Windows.Forms.ToolStripButton(); this.btnPrev = new System.Windows.Forms.ToolStripButton(); this.btnPlay = new System.Windows.Forms.ToolStripButton(); this.btnNext = new System.Windows.Forms.ToolStripButton(); this.toolProgressBar = new System.Windows.Forms.ToolStripProgressBar(); this.btnUseTraps = new System.Windows.Forms.ToolStripButton(); this.btnUseAutoPlay = new System.Windows.Forms.ToolStripButton(); this.panelList = new System.Windows.Forms.Panel(); this.blockList = new System.Windows.Forms.ListBox(); this.timerProgress = new System.Windows.Forms.Timer(this.components); this.toolBar.SuspendLayout(); this.panelList.SuspendLayout(); this.SuspendLayout(); // // toolBar // this.toolBar.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.btnRewind, this.btnPrev, this.btnPlay, this.btnNext, this.toolProgressBar, this.btnUseTraps, this.btnUseAutoPlay }); this.toolBar.Location = new System.Drawing.Point(0, 0); this.toolBar.Name = "toolBar"; this.toolBar.Size = new System.Drawing.Size(390, 27); this.toolBar.TabIndex = 2; this.toolBar.Text = "toolBar"; // // btnRewind // this.btnRewind.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnRewind.Image = global::ZXMAK2.Resources.ResourceImages.HardwareTapeRewind; this.btnRewind.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnRewind.Name = "btnRewind"; this.btnRewind.Size = new System.Drawing.Size(23, 24); this.btnRewind.Text = "Rewind"; this.btnRewind.Click += new System.EventHandler(this.toolButtonRewind_Click); // // btnPrev // this.btnPrev.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnPrev.Image = global::ZXMAK2.Resources.ResourceImages.HardwareTapePrev; this.btnPrev.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnPrev.Name = "btnPrev"; this.btnPrev.Size = new System.Drawing.Size(23, 24); this.btnPrev.Text = "Previous block"; this.btnPrev.Click += new System.EventHandler(this.toolButtonPrev_Click); // // btnPlay // this.btnPlay.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnPlay.Image = global::ZXMAK2.Resources.ResourceImages.HardwareTapePlay; this.btnPlay.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnPlay.Name = "btnPlay"; this.btnPlay.Size = new System.Drawing.Size(23, 24); this.btnPlay.Text = "Play/Stop"; this.btnPlay.Click += new System.EventHandler(this.toolButtonPlay_Click); // // btnNext // this.btnNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnNext.Image = global::ZXMAK2.Resources.ResourceImages.HardwareTapeNext; this.btnNext.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnNext.Name = "btnNext"; this.btnNext.Size = new System.Drawing.Size(23, 24); this.btnNext.Text = "Next block"; this.btnNext.Click += new System.EventHandler(this.toolButtonNext_Click); // // toolProgressBar // this.toolProgressBar.Name = "toolProgressBar"; this.toolProgressBar.Size = new System.Drawing.Size(170, 24); this.toolProgressBar.Step = 1; this.toolProgressBar.ToolTipText = "Loading progress"; this.toolProgressBar.Value = 50; // // btnTraps // this.btnUseTraps.CheckOnClick = true; this.btnUseTraps.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnUseTraps.Image = global::ZXMAK2.Resources.ResourceImages.HardwareTapeTraps; this.btnUseTraps.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnUseTraps.Name = "btnTraps"; this.btnUseTraps.Size = new System.Drawing.Size(23, 24); this.btnUseTraps.Text = "Use Traps"; this.btnUseTraps.Click += new System.EventHandler(this.btnTraps_Click); // // btnAutoPlay // this.btnUseAutoPlay.CheckOnClick = true; this.btnUseAutoPlay.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; this.btnUseAutoPlay.Image = global::ZXMAK2.Resources.ResourceImages.HardwareTapeAutoplay; this.btnUseAutoPlay.ImageTransparentColor = System.Drawing.Color.Magenta; this.btnUseAutoPlay.Name = "btnAutoPlay"; this.btnUseAutoPlay.Size = new System.Drawing.Size(23, 24); this.btnUseAutoPlay.Text = "Use Auto Play"; this.btnUseAutoPlay.Click += new System.EventHandler(this.btnAutoPlay_Click); // // panelList // this.panelList.Controls.Add(this.blockList); this.panelList.Dock = System.Windows.Forms.DockStyle.Fill; this.panelList.Location = new System.Drawing.Point(0, 27); this.panelList.Name = "panelList"; this.panelList.Size = new System.Drawing.Size(390, 183); this.panelList.TabIndex = 3; // // blockList // this.blockList.Dock = System.Windows.Forms.DockStyle.Fill; this.blockList.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.blockList.FormattingEnabled = true; this.blockList.IntegralHeight = false; this.blockList.ItemHeight = 16; this.blockList.Location = new System.Drawing.Point(0, 0); this.blockList.Name = "blockList"; this.blockList.Size = new System.Drawing.Size(390, 183); this.blockList.TabIndex = 0; this.blockList.Click += new System.EventHandler(this.blockList_Click); this.blockList.DoubleClick += new System.EventHandler(this.blockList_DoubleClick); // // timerProgress // this.timerProgress.Enabled = true; this.timerProgress.Interval = 200; this.timerProgress.Tick += new System.EventHandler(this.timerProgress_Tick); // // TapeForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(390, 210); this.Controls.Add(this.panelList); this.Controls.Add(this.toolBar); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "TapeForm"; this.ShowIcon = false; this.ShowInTaskbar = false; this.Text = "Tape"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.TapeForm_FormClosed); this.toolBar.ResumeLayout(false); this.toolBar.PerformLayout(); this.panelList.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HashFile)); this.kryptonPanel1 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kcbShowLength = new ComponentFactory.Krypton.Toolkit.KryptonCheckBox(); this.kbtnGenerateFileHash = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.klblResult = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.ctxResult = new System.Windows.Forms.ContextMenuStrip(this.components); this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.kryptonLabel2 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kcbxHashAlgorithimType = new ComponentFactory.Krypton.Toolkit.KryptonComboBox(); this.kryptonLabel1 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kbtnBrowse = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kptxtApplicationExecutable = new ExtendedControls.ExtendedToolkit.Controls.KryptonPromptTextBox(); this.kryptonLabel3 = new ComponentFactory.Krypton.Toolkit.KryptonLabel(); this.kbtnCancel = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kryptonPanel2 = new ComponentFactory.Krypton.Toolkit.KryptonPanel(); this.kbtnVarify = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.kbtnSaveHash = new ComponentFactory.Krypton.Toolkit.KryptonButton(); this.ss = new System.Windows.Forms.StatusStrip(); this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); this.tspbHashProgess = new System.Windows.Forms.ToolStripProgressBar(); this.tslHashProgressValue = new System.Windows.Forms.ToolStripStatusLabel(); this.panel1 = new System.Windows.Forms.Panel(); this.bgwMD5 = new System.ComponentModel.BackgroundWorker(); this.bgwSHA1 = new System.ComponentModel.BackgroundWorker(); this.bgwSHA256 = new System.ComponentModel.BackgroundWorker(); this.bgwSHA384 = new System.ComponentModel.BackgroundWorker(); this.bgwSHA512 = new System.ComponentModel.BackgroundWorker(); this.bgwRIPEMD160 = new System.ComponentModel.BackgroundWorker(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); this.ctxResult.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kcbxHashAlgorithimType)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).BeginInit(); this.kryptonPanel2.SuspendLayout(); this.ss.SuspendLayout(); this.SuspendLayout(); // // kryptonPanel1 // this.kryptonPanel1.Controls.Add(this.kcbShowLength); this.kryptonPanel1.Controls.Add(this.kbtnGenerateFileHash); this.kryptonPanel1.Controls.Add(this.klblResult); this.kryptonPanel1.Controls.Add(this.kryptonLabel2); this.kryptonPanel1.Controls.Add(this.kcbxHashAlgorithimType); this.kryptonPanel1.Controls.Add(this.kryptonLabel1); this.kryptonPanel1.Controls.Add(this.kbtnBrowse); this.kryptonPanel1.Controls.Add(this.kptxtApplicationExecutable); this.kryptonPanel1.Controls.Add(this.kryptonLabel3); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); this.kryptonPanel1.Name = "kryptonPanel1"; this.kryptonPanel1.Size = new System.Drawing.Size(853, 427); this.kryptonPanel1.TabIndex = 0; // // kcbShowLength // this.kcbShowLength.Location = new System.Drawing.Point(572, 109); this.kcbShowLength.Name = "kcbShowLength"; this.kcbShowLength.Size = new System.Drawing.Size(119, 26); this.kcbShowLength.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbShowLength.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbShowLength.TabIndex = 9; this.kcbShowLength.Values.Text = "Show &Length"; // // kbtnGenerateFileHash // this.kbtnGenerateFileHash.Enabled = false; this.kbtnGenerateFileHash.Location = new System.Drawing.Point(410, 109); this.kbtnGenerateFileHash.Name = "kbtnGenerateFileHash"; this.kbtnGenerateFileHash.Size = new System.Drawing.Size(156, 27); this.kbtnGenerateFileHash.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnGenerateFileHash.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnGenerateFileHash.TabIndex = 8; this.kbtnGenerateFileHash.Values.Text = "&Generate"; this.kbtnGenerateFileHash.Click += new System.EventHandler(this.KbtnGenerateFileHash_Click); // // klblResult // this.klblResult.AutoSize = false; this.klblResult.ContextMenuStrip = this.ctxResult; this.klblResult.Location = new System.Drawing.Point(24, 217); this.klblResult.Name = "klblResult"; this.klblResult.Size = new System.Drawing.Size(811, 73); this.klblResult.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblResult.StateCommon.LongText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.klblResult.StateCommon.LongText.TextV = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.klblResult.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.klblResult.StateCommon.ShortText.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.klblResult.StateCommon.ShortText.TextV = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Center; this.klblResult.TabIndex = 7; this.klblResult.Values.Text = ""; // // ctxResult // this.ctxResult.Font = new System.Drawing.Font("Segoe UI", 9F); this.ctxResult.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.copyToolStripMenuItem }); this.ctxResult.Name = "ctxResult"; this.ctxResult.Size = new System.Drawing.Size(103, 26); // // copyToolStripMenuItem // this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; this.copyToolStripMenuItem.Size = new System.Drawing.Size(102, 22); this.copyToolStripMenuItem.Text = "C&opy"; this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click); // // kryptonLabel2 // this.kryptonLabel2.Location = new System.Drawing.Point(24, 170); this.kryptonLabel2.Name = "kryptonLabel2"; this.kryptonLabel2.Size = new System.Drawing.Size(62, 26); this.kryptonLabel2.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel2.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel2.TabIndex = 6; this.kryptonLabel2.Values.Text = "Result:"; // // kcbxHashAlgorithimType // this.kcbxHashAlgorithimType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.kcbxHashAlgorithimType.DropDownWidth = 223; this.kcbxHashAlgorithimType.Items.AddRange(new object[] { "MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512", "RIPEMD-160" }); this.kcbxHashAlgorithimType.Location = new System.Drawing.Point(181, 109); this.kcbxHashAlgorithimType.Name = "kcbxHashAlgorithimType"; this.kcbxHashAlgorithimType.Size = new System.Drawing.Size(223, 27); this.kcbxHashAlgorithimType.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbxHashAlgorithimType.StateCommon.ComboBox.Content.TextH = ComponentFactory.Krypton.Toolkit.PaletteRelativeAlign.Near; this.kcbxHashAlgorithimType.StateCommon.Item.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbxHashAlgorithimType.StateCommon.Item.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kcbxHashAlgorithimType.TabIndex = 5; this.kcbxHashAlgorithimType.SelectedIndexChanged += new System.EventHandler(this.KcbxHashAlgorithimType_SelectedIndexChanged); // // kryptonLabel1 // this.kryptonLabel1.Location = new System.Drawing.Point(24, 110); this.kryptonLabel1.Name = "kryptonLabel1"; this.kryptonLabel1.Size = new System.Drawing.Size(138, 26); this.kryptonLabel1.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel1.TabIndex = 4; this.kryptonLabel1.Values.Text = "Hash Algorithim:"; // // kbtnBrowse // this.kbtnBrowse.Location = new System.Drawing.Point(800, 44); this.kbtnBrowse.Name = "kbtnBrowse"; this.kbtnBrowse.Size = new System.Drawing.Size(35, 29); this.kbtnBrowse.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnBrowse.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnBrowse.TabIndex = 3; this.kbtnBrowse.Values.Text = "..."; this.kbtnBrowse.Click += new System.EventHandler(this.KbtnBrowse_Click); // // kptxtApplicationExecutable // this.kptxtApplicationExecutable.DrawPrompt = true; this.kptxtApplicationExecutable.FocusSelect = true; this.kptxtApplicationExecutable.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kptxtApplicationExecutable.Location = new System.Drawing.Point(181, 44); this.kptxtApplicationExecutable.Name = "kptxtApplicationExecutable"; this.kptxtApplicationExecutable.PromptForeColour = System.Drawing.SystemColors.GrayText; this.kptxtApplicationExecutable.PromptText = "Executable Path"; this.kptxtApplicationExecutable.PromptTypeface = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kptxtApplicationExecutable.Size = new System.Drawing.Size(613, 29); this.kptxtApplicationExecutable.TabIndex = 2; // // kryptonLabel3 // this.kryptonLabel3.Location = new System.Drawing.Point(24, 45); this.kryptonLabel3.Name = "kryptonLabel3"; this.kryptonLabel3.Size = new System.Drawing.Size(153, 26); this.kryptonLabel3.StateCommon.LongText.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel3.StateCommon.ShortText.Font = new System.Drawing.Font("Segoe UI Semibold", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonLabel3.TabIndex = 1; this.kryptonLabel3.Values.Text = "Application Binary:"; // // kbtnCancel // this.kbtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.kbtnCancel.Location = new System.Drawing.Point(718, 17); this.kbtnCancel.Name = "kbtnCancel"; this.kbtnCancel.Size = new System.Drawing.Size(117, 29); this.kbtnCancel.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnCancel.TabIndex = 9; this.kbtnCancel.Values.Text = "&Cancel"; // // kryptonPanel2 // this.kryptonPanel2.Controls.Add(this.kbtnVarify); this.kryptonPanel2.Controls.Add(this.kbtnSaveHash); this.kryptonPanel2.Controls.Add(this.kbtnCancel); this.kryptonPanel2.Controls.Add(this.ss); this.kryptonPanel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.kryptonPanel2.Location = new System.Drawing.Point(0, 343); this.kryptonPanel2.Name = "kryptonPanel2"; this.kryptonPanel2.Size = new System.Drawing.Size(853, 84); this.kryptonPanel2.TabIndex = 2; // // kbtnVarify // this.kbtnVarify.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.kbtnVarify.Location = new System.Drawing.Point(12, 17); this.kbtnVarify.Name = "kbtnVarify"; this.kbtnVarify.Size = new System.Drawing.Size(139, 29); this.kbtnVarify.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnVarify.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnVarify.TabIndex = 11; this.kbtnVarify.Values.Text = "V&arify Hash"; this.kbtnVarify.Click += new System.EventHandler(this.KbtnVarify_Click); // // kbtnSaveHash // this.kbtnSaveHash.Enabled = false; this.kbtnSaveHash.Location = new System.Drawing.Point(595, 17); this.kbtnSaveHash.Name = "kbtnSaveHash"; this.kbtnSaveHash.Size = new System.Drawing.Size(117, 29); this.kbtnSaveHash.StateCommon.Content.LongText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnSaveHash.StateCommon.Content.ShortText.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kbtnSaveHash.TabIndex = 10; this.kbtnSaveHash.Values.Text = "S&ave"; // // ss // this.ss.Font = new System.Drawing.Font("Segoe UI", 9F); this.ss.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripStatusLabel1, this.tspbHashProgess, this.tslHashProgressValue }); this.ss.Location = new System.Drawing.Point(0, 62); this.ss.Name = "ss"; this.ss.RenderMode = System.Windows.Forms.ToolStripRenderMode.ManagerRenderMode; this.ss.Size = new System.Drawing.Size(853, 22); this.ss.TabIndex = 0; this.ss.Text = "statusStrip1"; // // toolStripStatusLabel1 // this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new System.Drawing.Size(838, 17); this.toolStripStatusLabel1.Spring = true; this.toolStripStatusLabel1.Text = "Ready"; this.toolStripStatusLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // tspbHashProgess // this.tspbHashProgess.Name = "tspbHashProgess"; this.tspbHashProgess.Size = new System.Drawing.Size(100, 16); this.tspbHashProgess.Visible = false; // // tslHashProgressValue // this.tslHashProgressValue.Name = "tslHashProgressValue"; this.tslHashProgressValue.Size = new System.Drawing.Size(31, 17); this.tslHashProgressValue.Text = "{0}%"; this.tslHashProgressValue.Visible = false; // // panel1 // this.panel1.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel1.Location = new System.Drawing.Point(0, 340); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(853, 3); this.panel1.TabIndex = 3; // // bgwMD5 // this.bgwMD5.WorkerReportsProgress = true; this.bgwMD5.WorkerSupportsCancellation = true; this.bgwMD5.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bgwMD5_DoWork); this.bgwMD5.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgwMD5_ProgressChanged); this.bgwMD5.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgwMD5_RunWorkerCompleted); // // bgwSHA1 // this.bgwSHA1.WorkerReportsProgress = true; this.bgwSHA1.WorkerSupportsCancellation = true; this.bgwSHA1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bgwSHA1_DoWork); this.bgwSHA1.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgwSHA1_ProgressChanged); this.bgwSHA1.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgwSHA1_RunWorkerCompleted); // // bgwSHA256 // this.bgwSHA256.WorkerReportsProgress = true; this.bgwSHA256.WorkerSupportsCancellation = true; this.bgwSHA256.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bgwSHA256_DoWork); this.bgwSHA256.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgwSHA256_ProgressChanged); this.bgwSHA256.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgwSHA256_RunWorkerCompleted); // // bgwSHA384 // this.bgwSHA384.WorkerReportsProgress = true; this.bgwSHA384.WorkerSupportsCancellation = true; this.bgwSHA384.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bgwSHA384_DoWork); this.bgwSHA384.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgwSHA384_ProgressChanged); this.bgwSHA384.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgwSHA384_RunWorkerCompleted); // // bgwSHA512 // this.bgwSHA512.WorkerReportsProgress = true; this.bgwSHA512.WorkerSupportsCancellation = true; this.bgwSHA512.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bgwSHA512_DoWork); this.bgwSHA512.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgwSHA512_ProgressChanged); this.bgwSHA512.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgwSHA512_RunWorkerCompleted); // // bgwRIPEMD160 // this.bgwRIPEMD160.WorkerReportsProgress = true; this.bgwRIPEMD160.WorkerSupportsCancellation = true; this.bgwRIPEMD160.DoWork += new System.ComponentModel.DoWorkEventHandler(this.bgwRIPEMD160_DoWork); this.bgwRIPEMD160.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.bgwRIPEMD160_ProgressChanged); this.bgwRIPEMD160.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.bgwRIPEMD160_RunWorkerCompleted); // // HashFile // this.CancelButton = this.kbtnCancel; this.ClientSize = new System.Drawing.Size(853, 427); this.Controls.Add(this.panel1); this.Controls.Add(this.kryptonPanel2); this.Controls.Add(this.kryptonPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; this.Name = "HashFile"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Hash File"; this.Load += new System.EventHandler(this.HashFile_Load); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).EndInit(); this.kryptonPanel1.ResumeLayout(false); this.kryptonPanel1.PerformLayout(); this.ctxResult.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.kcbxHashAlgorithimType)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel2)).EndInit(); this.kryptonPanel2.ResumeLayout(false); this.kryptonPanel2.PerformLayout(); this.ss.ResumeLayout(false); this.ss.PerformLayout(); this.ResumeLayout(false); }
/// <summary> /// Returns an observable sequence wrapping the Validating event on the ToolStripProgressBar instance. /// </summary> /// <param name="instance">The ToolStripProgressBar instance to observe.</param> /// <returns>An observable sequence wrapping the Validating event on the ToolStripProgressBar instance.</returns> public static IObservable <EventPattern <CancelEventArgs> > ValidatingObservable(this ToolStripProgressBar instance) { return(Observable.FromEventPattern <CancelEventHandler, CancelEventArgs>( handler => instance.Validating += handler, handler => instance.Validating -= handler)); }
/// /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// private void InitializeComponent() { this.btnAbbrechen = new System.Windows.Forms.Button(); this.lblStatus2 = new System.Windows.Forms.ToolStripStatusLabel(); this.statusStrip1 = new System.Windows.Forms.StatusStrip(); this.prgBar = new System.Windows.Forms.ToolStripProgressBar(); this.btnProjectsHistory = new System.Windows.Forms.Button(); this.btnHistory = new System.Windows.Forms.Button(); this.liviLastOpend = new System.Windows.Forms.ListView(); this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.statusStrip1.SuspendLayout(); this.SuspendLayout(); // // btnAbbrechen // this.btnAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnAbbrechen.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnAbbrechen.Location = new System.Drawing.Point(612, 418); this.btnAbbrechen.Name = "btnAbbrechen"; this.btnAbbrechen.Size = new System.Drawing.Size(120, 24); this.btnAbbrechen.TabIndex = 7; this.btnAbbrechen.Text = "Abbrechen"; this.btnAbbrechen.UseVisualStyleBackColor = true; // // lblStatus2 // this.lblStatus2.Margin = new System.Windows.Forms.Padding(2, 3, 0, 2); this.lblStatus2.Name = "lblStatus2"; this.lblStatus2.Size = new System.Drawing.Size(235, 17); this.lblStatus2.Text = "Letzte Änderung: 2009-10-23 - Johann Weiher"; // // statusStrip1 // this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.prgBar }); this.statusStrip1.Location = new System.Drawing.Point(0, 450); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new System.Drawing.Size(744, 22); this.statusStrip1.SizingGrip = false; this.statusStrip1.TabIndex = 13; this.statusStrip1.Text = "statusStrip1"; // // prgBar // this.prgBar.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.prgBar.AutoSize = false; this.prgBar.Name = "prgBar"; this.prgBar.Size = new System.Drawing.Size(740, 16); // // btnProjectsHistory // this.btnProjectsHistory.Enabled = false; this.btnProjectsHistory.Location = new System.Drawing.Point(486, 419); this.btnProjectsHistory.Name = "btnProjectsHistory"; this.btnProjectsHistory.Size = new System.Drawing.Size(120, 23); this.btnProjectsHistory.TabIndex = 11; this.btnProjectsHistory.Text = "Projekt(e) öffnen"; this.btnProjectsHistory.UseVisualStyleBackColor = true; this.btnProjectsHistory.Click += new System.EventHandler(this.btnProjectsHistory_Click); // // btnHistory // this.btnHistory.Location = new System.Drawing.Point(360, 419); this.btnHistory.Name = "btnHistory"; this.btnHistory.Size = new System.Drawing.Size(120, 23); this.btnHistory.TabIndex = 17; this.btnHistory.Text = "History löschen"; this.btnHistory.UseVisualStyleBackColor = true; this.btnHistory.Click += new System.EventHandler(this.btnHistory_Click); // // liviLastOpend // this.liviLastOpend.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader4, this.columnHeader5, this.columnHeader6 }); this.liviLastOpend.FullRowSelect = true; this.liviLastOpend.GridLines = true; this.liviLastOpend.HideSelection = false; this.liviLastOpend.Location = new System.Drawing.Point(12, 12); this.liviLastOpend.Name = "liviLastOpend"; this.liviLastOpend.Size = new System.Drawing.Size(720, 400); this.liviLastOpend.TabIndex = 10; this.liviLastOpend.UseCompatibleStateImageBehavior = false; this.liviLastOpend.View = System.Windows.Forms.View.Details; this.liviLastOpend.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.liviLastOpend_ColumnClick); this.liviLastOpend.SelectedIndexChanged += new System.EventHandler(this.liviLastOpend_SelectedIndexChanged); this.liviLastOpend.DoubleClick += new System.EventHandler(this.liviLastOpend_DoubleClick); // // columnHeader4 // this.columnHeader4.Text = "Projekt"; this.columnHeader4.Width = 76; // // columnHeader5 // this.columnHeader5.Text = "Pfad"; this.columnHeader5.Width = 89; // // columnHeader6 // this.columnHeader6.Text = "Erweiterung"; this.columnHeader6.Width = 223; // // FrmProjectHistory // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; this.CancelButton = this.btnAbbrechen; this.ClientSize = new System.Drawing.Size(744, 472); this.Controls.Add(this.btnHistory); this.Controls.Add(this.btnProjectsHistory); this.Controls.Add(this.liviLastOpend); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.btnAbbrechen); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "FrmProjectHistory"; this.ShowIcon = false; this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "ProjectHistory"; this.Load += new System.EventHandler(this.FrmSearchMacros_Load); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// 进度条装饰者 /// </summary> /// <param name="tspb"></param> public TSProgressBarHelper(System.Windows.Forms.ToolStripProgressBar tspb) { _tspb = tspb; }