public MainForm() { InitializeComponent(); // 01. Initialize readonly members var config_dir = Path.Combine( Environment.GetFolderPath( Environment.SpecialFolder.ApplicationData), Application.ProductName ); if (!Directory.Exists(config_dir)) Directory.CreateDirectory(config_dir); mSoundPackListConfigPath = Path.Combine(config_dir, "SoundPackList.config"); mSoundEngineConfigPath = Path.Combine(config_dir, "SoundEngine.config"); mKeysDisplayForm = new KeysDisplayForm(); // 02. Parepare events for MainForm Load += new EventHandler(MainForm_Load); FormClosed += new FormClosedEventHandler(MainForm_FormClosed); FormClosing += new FormClosingEventHandler(MainForm_FormClosing); KeyDisplayEnabledChanged += new EventHandler(MainForm_KeyDisplayEnabledChanged); AppDomain.CurrentDomain.FirstChanceException += (_sender, _e) => { ShowBaloon("初回例外。{0}:{1}\r\n" + "正しく初期化されなかった可能性があります", _e.Exception.Source, _e.Exception.Message); }; }
int secondsPassed = 0; // Used to monitor the number of seconds that have passed since the gamee started #endregion Fields #region Constructors // When an instance of this GameForm is created public GameForm(LoginForm parentForm, string usernameArg) { InitializeComponent(); // Initialize this Form component loginForm = parentForm; // Store the parent LoginForm username = usernameArg; // Record the Username that the player logged in with using the supplied username SettingsQuestionEntryBox.SetUsername(usernameArg); // Set the username stored by the SettingsQuestionEntryBox DropGrid.SetGridRange(7, 21, 21, 0); // Manually set the range of the DropGrid DropGrid.AllowDrop = true; // Ensure that the DropGrid allows dropping DropGrid.SetGridVisibility(false); // Set the Grid in the drop grid to invisible DropGrid.AddOccupyingPB(SoldierPictureBox); // Add the picture of the soldier to the list of PictureBoxes that cannot be dropped ontop of DropGrid.DragDrop += new DragEventHandler(objectPlaced); // Add a DragDrop listener to the DropGrid to call the objectPlaced method when triggered BeginPanel.BringToFront(); // Ensure that the BeginPanel is at the front of theform ShopFlowLayoutPanel.HorizontalScroll.Visible = false; // Prevent the Shop FlowLayoutPanel from scrolling horizontally FormClosed += new FormClosedEventHandler(formClosed); // Add a FormClosed listener to call the formClosed method when this form is closed PointsLabel.Text = "Points: " + points; // Update the text of the PointsLabel to display the current points of the user UserDatabase userDB = new UserDatabase(); // Create a new instance of a UserDatabase. This is done for reading purposes QuestionButtonState buttonState = userDB.getQuestionButtonState(username); // Read and store the button state that has been saved for this user SetBiologyButtonsState(buttonState.biologyButtonEnabled); // Set the state of the Biology Buttons to the saved values OtherSubjectTextBox.Text = buttonState.otherButtonLabel; // Update the name of the Other subjcet to the saved value SetOtherButtonState(buttonState.otherButtonEnabled); // Set the state of the Other Subject Buttons to the saved values PlantDispenser.stock = 3; // Manually set the stock for each dispenser in the shop. TapDispenser.stock = 4; FoodMachineDispenser.stock = 1; TorchDispenser.stock = 1; }
/// <param name="title">Titlul ferestrei</param> /// <param name="width">Lăţimea ferestrei</param> /// <param name="height">Înălţimea ferestrei</param> /// <param name="x">Distanţa de la marginea dreaptă a ecranului până la fereastră</param> /// <param name="y">Distanţa de la marginea de sus a ecranului până la fereastră</param> /// <param name="onClose">Handlerul evenimentului de închidere a ferestrei, null pentru nici un handler</param> public Visualizer(string title, int width, int height, int x, int y,FormClosedEventHandler onClose) { if (height < 0 && width < 0) { height = 200; } if (height < 0) { height = 9 * width / 16; } if (width < 0) { width = 16 * height / 9; } this.form = new GraphicVisualizerForm(this); if (onClose != null) { this.form.FormClosed += onClose; } this.form.Show(); this.zedGraph = this.form.graphicControl; this.zedGraph.PointEditEvent += new ZedGraphControl.PointEditHandler(this.curveHasBeenEdited); this.form.Text = title; this.form.Bounds = new Rectangle(x, y, width, height); }
public Form1() { FormClosed += new FormClosedEventHandler(Form1_FormClosed); InitializeComponent(); string[] filePaths = Directory.GetFiles(Application.StartupPath, "*.exe"); foreach (string file in filePaths) { try { Assembly demo = Assembly.LoadFile(file); Type[] types = demo.GetExportedTypes(); foreach (Type type in types) { if (type.BaseType.Name.Equals("Game")) { listBox1.Items.Add(Path.GetFileNameWithoutExtension(file)); break; } } } catch { } } }
public Game(Login parentForm, string usernameArg) { InitializeComponent(); loginForm = parentForm; username = usernameArg; questionEntryBox1.SetUsername(usernameArg); dropGrid.SetGridRange(7, 21, 21, 0); dropGrid.AllowDrop = true; dropGrid.SetGridVisibility(false); dropGrid.AddOccupyingPB(pictureBox2); dropGrid.DragDrop += new DragEventHandler(objectPlaced); BeginPanel.BringToFront(); flowLayoutPanel1.HorizontalScroll.Visible = false; FormClosed += new FormClosedEventHandler(formClosed); PointsLabel.Text = "Points: " + points; UserDatabase userDB = new UserDatabase(); QuestionButtonState buttonState = userDB.getQuestionButtonState(username); SetBiologyButtonsState(buttonState.biologyButtonEnabled); OtherSubjectTextBox.Text = buttonState.otherButtonLabel; SetOtherButtonState(buttonState.otherButtonEnabled); PlantDispenser.stock = 3; TapDispenser.stock = 4; FoodMachineDispenser.stock = 1; TorchDispenser.stock = 1; }
public SelectionForm() { InitializeComponent(); UpdateServerListFromFile(); UpdateUI(); FormClosed += new FormClosedEventHandler(SelectionForm_FormClosed); }
public MainForm() { InitializeComponent(); Text = "SharpMapTracker v" + Constants.MAP_TRACKER_VERSION; DataBindings.Add("TopMost", alwaysOnTopCheckBox, "Checked"); DataBindings.Add("TrackMoveableItems", trackMoveableItemsCheckBox, "Checked"); DataBindings.Add("TrackSplashes", trackSplashesCheckBox, "Checked"); DataBindings.Add("TrackMonsters", trackMonstersCheckBox, "Checked"); DataBindings.Add("TrackNPCs", trackNpcsCheckBox, "Checked"); DataBindings.Add("TrackOnlyCurrentFloor", trackOnlyCurrentFloorCheckBox, "Checked"); DataBindings.Add("RetrackTiles", retrackTilesToolStripMenuItem, "Checked"); DataBindings.Add("NPCAutoTalk", npcAutoTalkCheckBox, "Checked"); DataBindings.Add("ShareTrackedMap", shareTrackedMapCheckBox, "Checked"); Trace.Listeners.Add(new TextBoxTraceListener(traceTextBox)); Trace.Listeners.Add(new TextWriterTraceListener("log.txt")); Trace.AutoFlush = true; KeyDown += new KeyEventHandler(MainForm_KeyDown); Load += MainForm_Load; FormClosed += new FormClosedEventHandler(MainForm_FormClosed); miniMap.MiniMapClick += new EventHandler<MiniMapClickEventArgs>(miniMap_MiniMapClick); }
/// <summary> /// Constructor /// </summary> /// <param name="specification"></param> public Window(DataDictionary.Dictionary dictionary) { InitializeComponent(); FormClosed += new FormClosedEventHandler(Window_FormClosed); Visible = false; Dictionary = dictionary; Refresh(); }
/// <summary> /// Constructor /// </summary> /// <param name="dictionary"></param> public Window(DataDictionary.Tests.Translations.TranslationDictionary dictionary) { InitializeComponent(); FormClosed += new FormClosedEventHandler(Window_FormClosed); Visible = false; translationTreeView.Root = dictionary; Text = dictionary.Dictionary.Name + " test translation view"; Refresh(); }
/// <summary> /// Constructor /// </summary> /// <param name="dictionary"></param> public Window(DataDictionary.Shortcuts.ShortcutDictionary dictionary) { InitializeComponent(); FormClosed += new FormClosedEventHandler(Window_FormClosed); Visible = false; shortcutTreeView.Root = dictionary; Text = dictionary.Dictionary.Name + " shortcuts view"; Refresh(); }
public ListAssessments(FormClosedEventHandler onClose, Module module) { this.module = module; acglist = new List<AssessmentControlGroup>(); InitializeComponent(); update_panel(); this.FormClosed += onClose; this.Focus(); }
public void ShowDock(DockPane pane, DockAlignment align, double proportion) { FormClosed += new FormClosedEventHandler(dock_FormClosed); if (m_Docks.Count > 0) Show(m_Docks[0].Pane, m_Docks[0]); else Show(pane, align, proportion); m_Docks.Add(this); }
public ServeurForm() { FormIsClosed = false; InitializeComponent(); FormClosed += new FormClosedEventHandler(ServeurForm_FormClosed); Serv = new Serveur(1234,WriteLine,Write); Serv.CliManagement.ClientConnectionEnded += new ClientsManagement.ClientConnectionEndedEventHandler(CliManagement_ClientConnectionEnded); Serv.CliManagement.ClientConnected += new ClientsManagement.ClientConnectedEventHandler(CliManagement_ClientConnected); }
/// <summary> /// Constructor /// </summary> public GraphView() { InitializeComponent(); FormClosed += new FormClosedEventHandler(GraphView_FormClosed); SizeChanged += new EventHandler(GraphView_SizeChanged); AllowDrop = true; DragEnter += new DragEventHandler(GraphView_DragEnter); DragDrop += new DragEventHandler(GraphView_DragDrop); Functions = new List<DataDictionary.Functions.Function>(); }
public MainWindow() { CenterToScreen(); FormClosed += new FormClosedEventHandler(MainWindow_FormClosed); Load += new EventHandler(MainWindow_Load); FormClosing += new FormClosingEventHandler(MainWindow_FormClosing); Activated += new EventHandler(MainWindow_Activated); Deactivate += new EventHandler(MainWindow_Deactivate); AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; ClientSize = new System.Drawing.Size(422, 114); Name = "MainWindow"; Text = "Простое приложение"; ResumeLayout(false); }
public AssessmentControlGroup(FormClosedEventHandler updateFCEH, EventHandler updateEH, Module module, int maxweight, Assessment assessment, Panel root) { this.root = root; this.module = module; this.assessment = assessment; this.maxweight = maxweight; this.updateFCEH = updateFCEH; this.updateEH = updateEH; assessName = new Label(); assessMark = new Label(); assessWeight = new Label(); assessStatus = new Label(); assessEdit = new Button(); assessDelete = new Button(); }
public Initializing(Writer idb,string idbName, string idbFName,string iusernameInput,string ipasswordInput, int p, bool iresetDatabase, FormClosedEventHandler closeHandler, Form owner) { port = p; Owner = owner; dbName = idbName; dbFName = idbFName; username = iusernameInput; password = ipasswordInput; reset = iresetDatabase; db = idb; InitializeComponent(); FormClosing += Initializing_FormClosing; FormClosed += closeHandler; initializer.ProgressChanged += initializer_ProgressChanged; initializer.RunWorkerCompleted += initializer_RunWorkerCompleted; initializer.RunWorkerAsync(); }
public SortedPlayersView(Game theGame) { InitializeComponent(); // Save the parameter for later game = theGame; sortedPlayerViews.Add(sortedPlayerView1); sortedPlayerViews.Add(sortedPlayerView2); sortedPlayerViews.Add(sortedPlayerView3); sortedPlayerViews.Add(sortedPlayerView4); // Sort the players sortPlayersByScore(); // Setup the sorted player views for (int i = 0; i < Game.MAXPLAYERS; i++) { // Check if the player exists if (i < game.NumberOfPlayers) { // Set the info so the view can display the player's properties sortedPlayerViews[i].SetInfo(game.Players[i], game); } else { // If the player doesn't exist, hide its view sortedPlayerViews[i].Visible = false; } } // Handle the form closing event FormClosed += new FormClosedEventHandler(SortedPlayersView_FormClosed); // Set the height of the form to only what's needed Height = game.NumberOfPlayers * 94 + 145; // Set the background image BackgroundImage = Properties.Resources.CardTable; // Set the scoring method label scoringMethodLabel.Text = ( game.Options.ScoringSystem == GameOptions.ScoringSystems.Basic ? "Simple Scoring" : "Card Value Scoring" ); }
public AddAssessment(FormClosedEventHandler onClose, Module module, int maxweight, Assessment assessment = null) { this.module = module; this.assessment = assessment; this.maxweight = maxweight; InitializeComponent(); if (this.assessment != null) { this.AssessmentNameText.Text = assessment.getName(); this.AssessmentMarkNUD.Value = (decimal)assessment.getMark(); this.AssessmentWeightNUD.Value = (decimal)assessment.getWeight(); this.maxweight += this.assessment.getWeight(); } this.FormClosed += onClose; this.Focus(); }
public void RegisterClosed(Action handler) { if (wpf != null) { wpfClosed = (obj, args) => { handler(); Dispose(); }; wpf.Closed += wpfClosed; } else if (winform != null) { winformClosed = (obj, args) => { handler(); Dispose(); }; winform.FormClosed += winformClosed; } }
public FormMessage(string message, bool isQuestion, int autoCloseSeconds, FormClosedEventHandler closeHandler) { InitializeComponent(); this.labelControl15.Text = message; this.btnYes.Visible = isQuestion; this.btnNo.Visible = isQuestion; this.btnOK.Visible = !isQuestion; if (closeHandler != null) { this.FormClosed += closeHandler; } if (autoCloseSeconds != 0) { timer = new Timer(); timer.Interval = autoCloseSeconds * 1000; timer.Tick += (sender, e) => { this.DialogResult = System.Windows.Forms.DialogResult.Yes; this.Close(); }; timer.Start(); } }
public ModuleControlGroup(FormClosedEventHandler updateTabFCEH, EventHandler updateTabEH, Course course, Level level, int maxcredit, Module module, Panel root) { this.root = root; this.course = course; this.level = level; this.module = module; this.maxcredit = maxcredit; this.updateTabFCEH = updateTabFCEH; this.updateTabEH = updateTabEH; modCodeLabel = new Label(); modName = new Label(); modCerdits = new Label(); modAssessments = new Button(); modEdit = new Button(); modDelete = new Button(); modAvg = new Label(); modStatus = new Label(); }
public NewComponentWindow(MainWindow mainWindow, DBManager dbManager) { this.mainWindow = mainWindow; this.dbManager = dbManager; //Enables the main window on close FormClosed += new FormClosedEventHandler(NewComponentWindow_FormClosed); //Component combo box choices componentComboItems = new List<string> { "Choose component type...", "Battery", "Motor", "Propeller" }; InitializeComponent(); //Populates the Choose Component combo box with choices componentComboBox.DataSource = componentComboItems; //Set up component user controls batteryPanel = new AddBatteryPanel(this, dbManager); motorPanel = new AddMotorPanel(this, dbManager); propellerPanel = new AddPropellerPanel(this, dbManager); batteryPanel.Location = new Point(12, 124); motorPanel.Location = new Point(12, 124); propellerPanel.Location = new Point(12, 124); Controls.Add(batteryPanel); Controls.Add(motorPanel); Controls.Add(propellerPanel); motorPanel.Visible = false; motorPanel.Enabled = false; propellerPanel.Visible = false; propellerPanel.Enabled = false; }
public void Create_Dialog( string _formName, FormStartPosition _startPosition, Size _formSize, Point _formPoint, Color _formBackColor, int _formOpenMode, bool _formTop, FormClosedEventHandler _fromClosed ) { Use_HotKey = false; _formObject.Name = _formName; _formObject.FormBorderStyle = FormBorderStyle.None; _formObject.StartPosition = _startPosition; _formObject.Size = _formSize; _formObject.Location = _formPoint; _formObject.BackColor = _formBackColor; _formObject.TopMost = _formTop; _formObject.Sizeable = false; _formObject.FormClosed += _formObject_FormClosed; form_panel.Size = new Size(_formObject.Size.Width, _formObject.Size.Height - 1); form_panel.BackColor = Color.Transparent; form_panel.MouseDown += formMove; _formObject.Controls.Add(form_panel); PanelEx panel_Close = new PanelEx() { Size = new Size(18, 17), Location = new Point(_formObject.Width - 21, 3), Cursor = Cursors.Hand, BackColor = Color.FromArgb(247, 139, 94) }; panel_Close.Click += Close_Click;; form_panel.Controls.Add(panel_Close); Label label_Close = new Label() { AutoSize = true, Location = new Point(1, 1), Font = system_Font, Text = "✖", Cursor = Cursors.Hand, ForeColor = Color.White, BackColor = Color.Transparent }; label_Close.Click += Close_Click; panel_Close.Controls.Add(label_Close); _formObject.FormClosed += _fromClosed; if (_formOpenMode == 0) { _formObject.Show(); } else { _formObject.ShowDialog(); } }
private void Form1_FormClosing(object sender, FormClosedEventHandler e) { _reader.Disconnect(); }
private void InitializeComponent() { var resources = new System.Resources.ResourceManager(typeof(frmListBox)); components = new System.ComponentModel.Container(); ToolTip1 = new ToolTip(components); _Timer2 = new Timer(components); _Timer2.Tick += new EventHandler(Timer2_Tick); txtComment = new TextBox(); txtMorale2 = new TextBox(); txtMorale1 = new TextBox(); txtLevel2 = new TextBox(); txtLevel1 = new TextBox(); txtHP1 = new TextBox(); picHP1 = new PictureBox(); picEN1 = new PictureBox(); txtEN1 = new TextBox(); txtEN2 = new TextBox(); picEN2 = new PictureBox(); picHP2 = new PictureBox(); txtHP2 = new TextBox(); picUnit2 = new PictureBox(); picUnit1 = new PictureBox(); _Timer1 = new Timer(components); _Timer1.Tick += new EventHandler(Timer1_Tick); _lstItems = new ListBox(); _lstItems.DoubleClick += new EventHandler(lstItems_DoubleClick); _lstItems.MouseDown += new MouseEventHandler(lstItems_MouseDown); _lstItems.MouseMove += new MouseEventHandler(lstItems_MouseMove); picBar = new PictureBox(); _labCaption = new Label(); _labCaption.MouseDown += new MouseEventHandler(labCaption_MouseDown); labMorale2 = new Label(); labMorale1 = new Label(); labLevel2 = new Label(); imgPilot2 = new PictureBox(); labLevel1 = new Label(); imgPilot1 = new PictureBox(); labHP1 = new Label(); labEN1 = new Label(); labEN2 = new Label(); labHP2 = new Label(); SuspendLayout(); ToolTip1.Active = true; StartPosition = FormStartPosition.Manual; BackColor = Color.FromArgb(192, 192, 192); FormBorderStyle = FormBorderStyle.FixedSingle; Text = "ListBox"; ClientSize = new Size(654, 137); Location = new Point(72, 116); Icon = (Icon)resources.GetObject("frmListBox.Icon"); KeyPreview = true; MaximizeBox = false; AutoScaleMode = AutoScaleMode.Font; ControlBox = true; Enabled = true; MinimizeBox = true; Cursor = Cursors.Default; RightToLeft = RightToLeft.No; ShowInTaskbar = true; HelpButton = false; WindowState = FormWindowState.Normal; Name = "frmListBox"; _Timer2.Interval = 100; _Timer2.Enabled = true; txtComment.AutoSize = false; txtComment.Enabled = false; txtComment.Font = new Font("MS ゴシック", 12f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtComment.Size = new Size(637, 38); txtComment.Location = new Point(6, 141); txtComment.Multiline = true; txtComment.TabIndex = 24; txtComment.TabStop = false; txtComment.Visible = false; txtComment.AcceptsReturn = true; txtComment.TextAlign = HorizontalAlignment.Left; txtComment.BackColor = SystemColors.Window; txtComment.CausesValidation = true; txtComment.ForeColor = SystemColors.WindowText; txtComment.HideSelection = true; txtComment.ReadOnly = false; txtComment.MaxLength = 0; txtComment.Cursor = Cursors.IBeam; txtComment.RightToLeft = RightToLeft.No; txtComment.ScrollBars = ScrollBars.None; txtComment.BorderStyle = BorderStyle.Fixed3D; txtComment.Name = "txtComment"; txtMorale2.AutoSize = false; txtMorale2.BackColor = Color.FromArgb(192, 192, 192); txtMorale2.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtMorale2.Size = new Size(25, 13); txtMorale2.Location = new Point(385, 23); txtMorale2.TabIndex = 22; txtMorale2.Text = "100"; txtMorale2.Visible = false; txtMorale2.AcceptsReturn = true; txtMorale2.TextAlign = HorizontalAlignment.Left; txtMorale2.CausesValidation = true; txtMorale2.Enabled = true; txtMorale2.ForeColor = SystemColors.WindowText; txtMorale2.HideSelection = true; txtMorale2.ReadOnly = false; txtMorale2.MaxLength = 0; txtMorale2.Cursor = Cursors.IBeam; txtMorale2.Multiline = false; txtMorale2.RightToLeft = RightToLeft.No; txtMorale2.ScrollBars = ScrollBars.None; txtMorale2.TabStop = true; txtMorale2.BorderStyle = BorderStyle.None; txtMorale2.Name = "txtMorale2"; txtMorale1.AutoSize = false; txtMorale1.BackColor = Color.FromArgb(192, 192, 192); txtMorale1.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtMorale1.Size = new Size(25, 13); txtMorale1.Location = new Point(59, 22); txtMorale1.TabIndex = 20; txtMorale1.Text = "100"; txtMorale1.Visible = false; txtMorale1.AcceptsReturn = true; txtMorale1.TextAlign = HorizontalAlignment.Left; txtMorale1.CausesValidation = true; txtMorale1.Enabled = true; txtMorale1.ForeColor = SystemColors.WindowText; txtMorale1.HideSelection = true; txtMorale1.ReadOnly = false; txtMorale1.MaxLength = 0; txtMorale1.Cursor = Cursors.IBeam; txtMorale1.Multiline = false; txtMorale1.RightToLeft = RightToLeft.No; txtMorale1.ScrollBars = ScrollBars.None; txtMorale1.TabStop = true; txtMorale1.BorderStyle = BorderStyle.None; txtMorale1.Name = "txtMorale1"; txtLevel2.AutoSize = false; txtLevel2.BackColor = Color.FromArgb(192, 192, 192); txtLevel2.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtLevel2.Size = new Size(17, 13); txtLevel2.Location = new Point(391, 7); txtLevel2.TabIndex = 19; txtLevel2.Text = "99"; txtLevel2.Visible = false; txtLevel2.AcceptsReturn = true; txtLevel2.TextAlign = HorizontalAlignment.Left; txtLevel2.CausesValidation = true; txtLevel2.Enabled = true; txtLevel2.ForeColor = SystemColors.WindowText; txtLevel2.HideSelection = true; txtLevel2.ReadOnly = false; txtLevel2.MaxLength = 0; txtLevel2.Cursor = Cursors.IBeam; txtLevel2.Multiline = false; txtLevel2.RightToLeft = RightToLeft.No; txtLevel2.ScrollBars = ScrollBars.None; txtLevel2.TabStop = true; txtLevel2.BorderStyle = BorderStyle.None; txtLevel2.Name = "txtLevel2"; txtLevel1.AutoSize = false; txtLevel1.BackColor = Color.FromArgb(192, 192, 192); txtLevel1.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtLevel1.Size = new Size(17, 13); txtLevel1.Location = new Point(66, 6); txtLevel1.TabIndex = 17; txtLevel1.Text = "99"; txtLevel1.Visible = false; txtLevel1.AcceptsReturn = true; txtLevel1.TextAlign = HorizontalAlignment.Left; txtLevel1.CausesValidation = true; txtLevel1.Enabled = true; txtLevel1.ForeColor = SystemColors.WindowText; txtLevel1.HideSelection = true; txtLevel1.ReadOnly = false; txtLevel1.MaxLength = 0; txtLevel1.Cursor = Cursors.IBeam; txtLevel1.Multiline = false; txtLevel1.RightToLeft = RightToLeft.No; txtLevel1.ScrollBars = ScrollBars.None; txtLevel1.TabStop = true; txtLevel1.BorderStyle = BorderStyle.None; txtLevel1.Name = "txtLevel1"; txtHP1.AutoSize = false; txtHP1.BackColor = Color.FromArgb(192, 192, 192); txtHP1.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtHP1.Size = new Size(88, 13); txtHP1.Location = new Point(148, 8); txtHP1.TabIndex = 11; txtHP1.Text = "99999/99999"; txtHP1.Visible = false; txtHP1.AcceptsReturn = true; txtHP1.TextAlign = HorizontalAlignment.Left; txtHP1.CausesValidation = true; txtHP1.Enabled = true; txtHP1.ForeColor = SystemColors.WindowText; txtHP1.HideSelection = true; txtHP1.ReadOnly = false; txtHP1.MaxLength = 0; txtHP1.Cursor = Cursors.IBeam; txtHP1.Multiline = false; txtHP1.RightToLeft = RightToLeft.No; txtHP1.ScrollBars = ScrollBars.None; txtHP1.TabStop = true; txtHP1.BorderStyle = BorderStyle.None; txtHP1.Name = "txtHP1"; picHP1.BackColor = Color.FromArgb(192, 0, 0); picHP1.ForeColor = Color.FromArgb(0, 192, 0); picHP1.Size = new Size(114, 8); picHP1.Location = new Point(122, 26); picHP1.TabIndex = 10; picHP1.Visible = false; picHP1.Dock = DockStyle.None; picHP1.CausesValidation = true; picHP1.Enabled = true; picHP1.Cursor = Cursors.Default; picHP1.RightToLeft = RightToLeft.No; picHP1.TabStop = true; picHP1.SizeMode = PictureBoxSizeMode.Normal; picHP1.BorderStyle = BorderStyle.Fixed3D; picHP1.Name = "picHP1"; picEN1.BackColor = Color.FromArgb(192, 0, 0); picEN1.ForeColor = Color.FromArgb(0, 192, 0); picEN1.Size = new Size(79, 8); picEN1.Location = new Point(240, 26); picEN1.TabIndex = 9; picEN1.Visible = false; picEN1.Dock = DockStyle.None; picEN1.CausesValidation = true; picEN1.Enabled = true; picEN1.Cursor = Cursors.Default; picEN1.RightToLeft = RightToLeft.No; picEN1.TabStop = true; picEN1.SizeMode = PictureBoxSizeMode.Normal; picEN1.BorderStyle = BorderStyle.Fixed3D; picEN1.Name = "picEN1"; txtEN1.AutoSize = false; txtEN1.BackColor = Color.FromArgb(192, 192, 192); txtEN1.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtEN1.Size = new Size(57, 13); txtEN1.Location = new Point(263, 8); txtEN1.TabIndex = 8; txtEN1.Text = "999/999"; txtEN1.Visible = false; txtEN1.AcceptsReturn = true; txtEN1.TextAlign = HorizontalAlignment.Left; txtEN1.CausesValidation = true; txtEN1.Enabled = true; txtEN1.ForeColor = SystemColors.WindowText; txtEN1.HideSelection = true; txtEN1.ReadOnly = false; txtEN1.MaxLength = 0; txtEN1.Cursor = Cursors.IBeam; txtEN1.Multiline = false; txtEN1.RightToLeft = RightToLeft.No; txtEN1.ScrollBars = ScrollBars.None; txtEN1.TabStop = true; txtEN1.BorderStyle = BorderStyle.None; txtEN1.Name = "txtEN1"; txtEN2.AutoSize = false; txtEN2.BackColor = Color.FromArgb(192, 192, 192); txtEN2.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtEN2.Size = new Size(57, 13); txtEN2.Location = new Point(587, 8); txtEN2.TabIndex = 7; txtEN2.Text = "999/999"; txtEN2.Visible = false; txtEN2.AcceptsReturn = true; txtEN2.TextAlign = HorizontalAlignment.Left; txtEN2.CausesValidation = true; txtEN2.Enabled = true; txtEN2.ForeColor = SystemColors.WindowText; txtEN2.HideSelection = true; txtEN2.ReadOnly = false; txtEN2.MaxLength = 0; txtEN2.Cursor = Cursors.IBeam; txtEN2.Multiline = false; txtEN2.RightToLeft = RightToLeft.No; txtEN2.ScrollBars = ScrollBars.None; txtEN2.TabStop = true; txtEN2.BorderStyle = BorderStyle.None; txtEN2.Name = "txtEN2"; picEN2.BackColor = Color.FromArgb(192, 0, 0); picEN2.ForeColor = Color.FromArgb(0, 192, 0); picEN2.Size = new Size(78, 8); picEN2.Location = new Point(565, 27); picEN2.TabIndex = 6; picEN2.Visible = false; picEN2.Dock = DockStyle.None; picEN2.CausesValidation = true; picEN2.Enabled = true; picEN2.Cursor = Cursors.Default; picEN2.RightToLeft = RightToLeft.No; picEN2.TabStop = true; picEN2.SizeMode = PictureBoxSizeMode.Normal; picEN2.BorderStyle = BorderStyle.Fixed3D; picEN2.Name = "picEN2"; picHP2.BackColor = Color.FromArgb(192, 0, 0); picHP2.ForeColor = Color.FromArgb(0, 192, 0); picHP2.Size = new Size(112, 8); picHP2.Location = new Point(449, 27); picHP2.TabIndex = 5; picHP2.Visible = false; picHP2.Dock = DockStyle.None; picHP2.CausesValidation = true; picHP2.Enabled = true; picHP2.Cursor = Cursors.Default; picHP2.RightToLeft = RightToLeft.No; picHP2.TabStop = true; picHP2.SizeMode = PictureBoxSizeMode.Normal; picHP2.BorderStyle = BorderStyle.Fixed3D; picHP2.Name = "picHP2"; txtHP2.AutoSize = false; txtHP2.BackColor = Color.FromArgb(192, 192, 192); txtHP2.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtHP2.Size = new Size(88, 13); txtHP2.Location = new Point(473, 8); txtHP2.TabIndex = 4; txtHP2.Text = "99999/99999"; txtHP2.Visible = false; txtHP2.AcceptsReturn = true; txtHP2.TextAlign = HorizontalAlignment.Left; txtHP2.CausesValidation = true; txtHP2.Enabled = true; txtHP2.ForeColor = SystemColors.WindowText; txtHP2.HideSelection = true; txtHP2.ReadOnly = false; txtHP2.MaxLength = 0; txtHP2.Cursor = Cursors.IBeam; txtHP2.Multiline = false; txtHP2.RightToLeft = RightToLeft.No; txtHP2.ScrollBars = ScrollBars.None; txtHP2.TabStop = true; txtHP2.BorderStyle = BorderStyle.None; txtHP2.Name = "txtHP2"; picUnit2.BackColor = SystemColors.Window; picUnit2.ForeColor = SystemColors.WindowText; picUnit2.Size = new Size(32, 32); picUnit2.Location = new Point(412, 5); picUnit2.TabIndex = 3; picUnit2.Visible = false; picUnit2.Dock = DockStyle.None; picUnit2.CausesValidation = true; picUnit2.Enabled = true; picUnit2.Cursor = Cursors.Default; picUnit2.RightToLeft = RightToLeft.No; picUnit2.TabStop = true; picUnit2.SizeMode = PictureBoxSizeMode.Normal; picUnit2.BorderStyle = BorderStyle.None; picUnit2.Name = "picUnit2"; picUnit1.BackColor = SystemColors.Window; picUnit1.ForeColor = SystemColors.WindowText; picUnit1.Size = new Size(32, 32); picUnit1.Location = new Point(85, 4); picUnit1.TabIndex = 2; picUnit1.Visible = false; picUnit1.Dock = DockStyle.None; picUnit1.CausesValidation = true; picUnit1.Enabled = true; picUnit1.Cursor = Cursors.Default; picUnit1.RightToLeft = RightToLeft.No; picUnit1.TabStop = true; picUnit1.SizeMode = PictureBoxSizeMode.Normal; picUnit1.BorderStyle = BorderStyle.None; picUnit1.Name = "picUnit1"; _Timer1.Enabled = false; _Timer1.Interval = 100; _lstItems.BackColor = Color.White; _lstItems.Font = new Font("MS 明朝", 12f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); _lstItems.ForeColor = Color.Black; _lstItems.Size = new Size(643, 103); _lstItems.Location = new Point(6, 32); _lstItems.TabIndex = 0; _lstItems.BorderStyle = BorderStyle.Fixed3D; _lstItems.CausesValidation = true; _lstItems.Enabled = true; _lstItems.IntegralHeight = true; _lstItems.Cursor = Cursors.Default; _lstItems.SelectionMode = SelectionMode.One; _lstItems.RightToLeft = RightToLeft.No; _lstItems.Sorted = false; _lstItems.TabStop = true; _lstItems.Visible = true; _lstItems.MultiColumn = false; _lstItems.Name = "_lstItems"; picBar.BackColor = Color.White; picBar.ForeColor = Color.FromArgb(0, 0, 128); picBar.Size = new Size(643, 13); picBar.Location = new Point(6, 123); picBar.TabIndex = 25; picBar.Visible = false; picBar.Dock = DockStyle.None; picBar.CausesValidation = true; picBar.Enabled = true; picBar.Cursor = Cursors.Default; picBar.RightToLeft = RightToLeft.No; picBar.TabStop = true; picBar.SizeMode = PictureBoxSizeMode.Normal; picBar.BorderStyle = BorderStyle.Fixed3D; picBar.Name = "picBar"; _labCaption.BackColor = Color.White; _labCaption.Font = new Font("MS 明朝", 12f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); _labCaption.ForeColor = Color.Black; _labCaption.Size = new Size(643, 23); _labCaption.Location = new Point(6, 5); _labCaption.TabIndex = 1; _labCaption.TextAlign = ContentAlignment.TopLeft; _labCaption.Enabled = true; _labCaption.Cursor = Cursors.Default; _labCaption.RightToLeft = RightToLeft.No; _labCaption.UseMnemonic = true; _labCaption.Visible = true; _labCaption.AutoSize = false; _labCaption.BorderStyle = BorderStyle.Fixed3D; _labCaption.Name = "_labCaption"; labMorale2.BackColor = Color.FromArgb(192, 192, 192); labMorale2.Text = "M"; labMorale2.Font = new Font("MS P明朝", 11.25f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labMorale2.ForeColor = Color.Black; labMorale2.Size = new Size(12, 17); labMorale2.Location = new Point(372, 22); labMorale2.TabIndex = 23; labMorale2.Visible = false; labMorale2.TextAlign = ContentAlignment.TopLeft; labMorale2.Enabled = true; labMorale2.Cursor = Cursors.Default; labMorale2.RightToLeft = RightToLeft.No; labMorale2.UseMnemonic = true; labMorale2.AutoSize = false; labMorale2.BorderStyle = BorderStyle.None; labMorale2.Name = "labMorale2"; labMorale1.BackColor = Color.FromArgb(192, 192, 192); labMorale1.Text = "M"; labMorale1.Font = new Font("MS P明朝", 11.25f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labMorale1.ForeColor = Color.Black; labMorale1.Size = new Size(12, 17); labMorale1.Location = new Point(46, 20); labMorale1.TabIndex = 21; labMorale1.Visible = false; labMorale1.TextAlign = ContentAlignment.TopLeft; labMorale1.Enabled = true; labMorale1.Cursor = Cursors.Default; labMorale1.RightToLeft = RightToLeft.No; labMorale1.UseMnemonic = true; labMorale1.AutoSize = false; labMorale1.BorderStyle = BorderStyle.None; labMorale1.Name = "labMorale1"; labLevel2.BackColor = Color.FromArgb(192, 192, 192); labLevel2.Text = "Lv"; labLevel2.Font = new Font("MS P明朝", 12f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labLevel2.ForeColor = Color.Black; labLevel2.Size = new Size(20, 17); labLevel2.Location = new Point(370, 4); labLevel2.TabIndex = 18; labLevel2.Visible = false; labLevel2.TextAlign = ContentAlignment.TopLeft; labLevel2.Enabled = true; labLevel2.Cursor = Cursors.Default; labLevel2.RightToLeft = RightToLeft.No; labLevel2.UseMnemonic = true; labLevel2.AutoSize = false; labLevel2.BorderStyle = BorderStyle.None; labLevel2.Name = "labLevel2"; imgPilot2.Size = new Size(36, 36); imgPilot2.Location = new Point(331, 3); imgPilot2.SizeMode = PictureBoxSizeMode.StretchImage; imgPilot2.Visible = false; imgPilot2.Enabled = true; imgPilot2.Cursor = Cursors.Default; imgPilot2.BorderStyle = BorderStyle.Fixed3D; imgPilot2.Name = "imgPilot2"; labLevel1.BackColor = Color.FromArgb(192, 192, 192); labLevel1.Text = "Lv"; labLevel1.Font = new Font("MS P明朝", 12f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labLevel1.ForeColor = Color.Black; labLevel1.Size = new Size(20, 17); labLevel1.Location = new Point(45, 4); labLevel1.TabIndex = 16; labLevel1.Visible = false; labLevel1.TextAlign = ContentAlignment.TopLeft; labLevel1.Enabled = true; labLevel1.Cursor = Cursors.Default; labLevel1.RightToLeft = RightToLeft.No; labLevel1.UseMnemonic = true; labLevel1.AutoSize = false; labLevel1.BorderStyle = BorderStyle.None; labLevel1.Name = "labLevel1"; imgPilot1.Size = new Size(36, 36); imgPilot1.Location = new Point(6, 3); imgPilot1.SizeMode = PictureBoxSizeMode.StretchImage; imgPilot1.Visible = false; imgPilot1.Enabled = true; imgPilot1.Cursor = Cursors.Default; imgPilot1.BorderStyle = BorderStyle.Fixed3D; imgPilot1.Name = "imgPilot1"; labHP1.BackColor = Color.FromArgb(192, 192, 192); labHP1.Text = "HP"; labHP1.Font = new Font("MS P明朝", 12f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labHP1.ForeColor = Color.Black; labHP1.Size = new Size(23, 17); labHP1.Location = new Point(121, 6); labHP1.TabIndex = 15; labHP1.Visible = false; labHP1.TextAlign = ContentAlignment.TopLeft; labHP1.Enabled = true; labHP1.Cursor = Cursors.Default; labHP1.RightToLeft = RightToLeft.No; labHP1.UseMnemonic = true; labHP1.AutoSize = false; labHP1.BorderStyle = BorderStyle.None; labHP1.Name = "labHP1"; labEN1.BackColor = Color.FromArgb(192, 192, 192); labEN1.Text = "EN"; labEN1.Font = new Font("MS P明朝", 12f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labEN1.ForeColor = Color.Black; labEN1.Size = new Size(22, 17); labEN1.Location = new Point(238, 6); labEN1.TabIndex = 14; labEN1.Visible = false; labEN1.TextAlign = ContentAlignment.TopLeft; labEN1.Enabled = true; labEN1.Cursor = Cursors.Default; labEN1.RightToLeft = RightToLeft.No; labEN1.UseMnemonic = true; labEN1.AutoSize = false; labEN1.BorderStyle = BorderStyle.None; labEN1.Name = "labEN1"; labEN2.BackColor = Color.FromArgb(192, 192, 192); labEN2.Text = "EN"; labEN2.Font = new Font("MS P明朝", 12f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labEN2.ForeColor = Color.Black; labEN2.Size = new Size(25, 17); labEN2.Location = new Point(563, 6); labEN2.TabIndex = 13; labEN2.Visible = false; labEN2.TextAlign = ContentAlignment.TopLeft; labEN2.Enabled = true; labEN2.Cursor = Cursors.Default; labEN2.RightToLeft = RightToLeft.No; labEN2.UseMnemonic = true; labEN2.AutoSize = false; labEN2.BorderStyle = BorderStyle.None; labEN2.Name = "labEN2"; labHP2.BackColor = Color.FromArgb(192, 192, 192); labHP2.Text = "HP"; labHP2.Font = new Font("MS P明朝", 12f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); labHP2.ForeColor = Color.Black; labHP2.Size = new Size(25, 17); labHP2.Location = new Point(448, 6); labHP2.TabIndex = 12; labHP2.Visible = false; labHP2.TextAlign = ContentAlignment.TopLeft; labHP2.Enabled = true; labHP2.Cursor = Cursors.Default; labHP2.RightToLeft = RightToLeft.No; labHP2.UseMnemonic = true; labHP2.AutoSize = false; labHP2.BorderStyle = BorderStyle.None; labHP2.Name = "labHP2"; Controls.Add(txtComment); Controls.Add(txtMorale2); Controls.Add(txtMorale1); Controls.Add(txtLevel2); Controls.Add(txtLevel1); Controls.Add(txtHP1); Controls.Add(picHP1); Controls.Add(picEN1); Controls.Add(txtEN1); Controls.Add(txtEN2); Controls.Add(picEN2); Controls.Add(picHP2); Controls.Add(txtHP2); Controls.Add(picUnit2); Controls.Add(picUnit1); Controls.Add(_lstItems); Controls.Add(picBar); Controls.Add(_labCaption); Controls.Add(labMorale2); Controls.Add(labMorale1); Controls.Add(labLevel2); Controls.Add(imgPilot2); Controls.Add(labLevel1); Controls.Add(imgPilot1); Controls.Add(labHP1); Controls.Add(labEN1); Controls.Add(labEN2); Controls.Add(labHP2); KeyDown += new KeyEventHandler(frmListBox_KeyDown); Load += new EventHandler(frmListBox_Load); FormClosed += new FormClosedEventHandler(frmListBox_FormClosed); MouseDown += new MouseEventHandler(frmListBox_MouseDown); ResumeLayout(false); PerformLayout(); }
public frmServiceIssue(frmMain mf, VSP.Business.Entities.PlanRecordKeeperProduct recordKeeperProduct, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; PreloadCbos(); CurrentServiceIssue = new ServiceIssue(); CurrentServiceIssue.PlanRecordKeeperProductId = recordKeeperProduct.Id; CurrentServiceIssue.AsOfDate = DateTime.Now; txtDescription.Focus(); if (CurrentServiceIssue.PlanRecordKeeperProductId != null) { PlanRecordKeeperProduct planRecordKeeperProduct = new PlanRecordKeeperProduct((Guid)CurrentServiceIssue.PlanRecordKeeperProductId); Product product = new Product((Guid)planRecordKeeperProduct.ProductId); cboRecordKeeperProduct.Text = product.Name; } if (CurrentServiceIssue.AuditorId != null) { cboAuditor.Text = new DataIntegrationHub.Business.Entities.Auditor((Guid)CurrentServiceIssue.AuditorId).Name; } if (CurrentServiceIssue.PlanId != null) { Plan plan = new Plan((Guid)CurrentServiceIssue.PlanId); cboPlan.Text = plan.Name + " - " + plan.Description; } txtAsOfDate.Text = CurrentServiceIssue.AsOfDate.ToString("MM/dd/yyyy"); CurrentTabLabel = label46; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); ss.Close(); this.Show(); }
/// <summary> /// /// </summary> private FormNetworkControl() { InitializeComponent(); Load += new EventHandler(EventHandler_FormNetworkControl_Load); FormClosed += new FormClosedEventHandler(FormNetworkControl_FormClosed); }
public Form1() { InitializeComponent(); comboBox1.SelectedIndex = 0; FormClosed += new FormClosedEventHandler(Form1_FormClosed); }
void RetrieveVotesForm_Load(object sender, EventArgs e) { KeyDown += new KeyEventHandler(RetrieveVotesForm_KeyDown); FormClosed += new FormClosedEventHandler(RetrieveVotesForm_FormClosed); }
public frmAddExistingItem(frmMain mf, string _FormType, Guid RegardingId1, string RegardingId2, FormClosedEventHandler Close) { Presentation.Forms.frmSplashScreen ss = new Presentation.Forms.frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; Application.AddMessageFilter(this); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); controlsToMove.Add(this.panel2); controlsToMove.Add(this.panel16); controlsToMove.Add(this.pictureBox1); this.FormClosed += Close; FormType = _FormType; if (FormType == "Custodian") { FormType = "Custodian"; label23.Text = "Add a custodian"; labelRegarding1.Text = "Plan"; label31.Text = "Select a custodian"; try { Business.Entities.Plan plan = new Business.Entities.Plan(RegardingId1); PlanId = plan.PlanId; textBox7.Text = plan.PlanName; } catch (Exception ex) { frmError _frmError = new Presentation.Forms.frmError(frmMain_Parent, ex); } } else if (FormType == "Plan") { FormType = "Plan"; label23.Text = "Add a plan"; labelRegarding1.Text = "Fund"; label31.Text = "Select a plan"; try { Fund details = new Fund(RegardingId1, null); FundId = details.FundId; textBox7.Text = details.FundName; } catch (Exception ex) { frmError _frmError = new Presentation.Forms.frmError(frmMain_Parent, ex); } } else if (FormType == "Fund") { FormType = "Fund"; label23.Text = "Add a fund"; labelRegarding1.Text = "Plan"; label31.Text = "Select a fund"; try { Business.Entities.Plan plan = new Business.Entities.Plan(RegardingId1); PlanId = plan.PlanId; textBox7.Text = plan.PlanName; } catch (Exception ex) { frmError _frmError = new Presentation.Forms.frmError(frmMain_Parent, ex); } } ss.Close(); this.Show(); txtSearch.Select(); }
////////////////////////////////////////////////////////////////////////// public ActionForm() { _ActContext = new ActionContext(this); _ActContext.AttachIdleEvent(); FormClosed += new FormClosedEventHandler(OnFormClosed); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmSearchBid(frmMain mf, SearchBid searchBid, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; CurrentSearchBid = searchBid; txtRecordKeeper.Text = new DataIntegrationHub.Business.Entities.RecordKeeper(searchBid.RecordKeeperId).Name; txtFullName.Text = searchBid.FullName; txtEmail.Text = searchBid.Email; txtConfirmInvestments.Text = searchBid.ConfirmInvestments.ToString(); txtConfirmServices.Text = searchBid.ConfirmServices.ToString(); txtRequiredRevenue.Text = searchBid.RequiredRevenue.ToString("#,##.##"); txtRequiredRevenueExplanation.Text = searchBid.RequiredRevenueExplanation; txtAncillaryServices.Text = searchBid.AncillaryServices; txtNotes.Text = searchBid.Notes; if (searchBid.IsFinalist == null) { cboIsFinalist.SelectedIndex = 0; } else if (((SqlBoolean)searchBid.IsFinalist) == SqlBoolean.True) { cboIsFinalist.SelectedIndex = 1; } else { cboIsFinalist.SelectedIndex = 2; } if (searchBid.IsRecommended == null) { cboIsRecommended.SelectedIndex = 0; } else if (((SqlBoolean)searchBid.IsRecommended) == SqlBoolean.True) { cboIsRecommended.SelectedIndex = 1; } else { cboIsRecommended.SelectedIndex = 2; } cboQuestionViews.SelectedIndex = 0; CurrentTabLabel = label46; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); ss.Close(); this.Show(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(FormIandC)); ToolTip1 = new ToolTip(components); _txtMin = new TextBox(); _txtMin.TextChanged += new EventHandler(txtMin_TextChanged); _txtMin.KeyPress += new KeyPressEventHandler(txtMin_KeyPress); _txtMin.Validating += new System.ComponentModel.CancelEventHandler(txtMin_Validating); _txtMin.Enter += new EventHandler(txtMin_Enter); _txtDeg = new TextBox(); _txtDeg.TextChanged += new EventHandler(txtDeg_TextChanged); _txtDeg.KeyPress += new KeyPressEventHandler(txtDeg_KeyPress); _txtDeg.Validating += new System.ComponentModel.CancelEventHandler(txtDeg_Validating); _txtDeg.Enter += new EventHandler(txtDeg_Enter); _cmdPrint = new Button(); _cmdPrint.Click += new EventHandler(cmdPrint_Click); _txtv = new TextBox(); _txtv.TextChanged += new EventHandler(txtvd_TextChanged); _txtv.KeyPress += new KeyPressEventHandler(txtvd_KeyPress); _txtv.Validating += new System.ComponentModel.CancelEventHandler(txtvd_Validating); _txtv.Enter += new EventHandler(txtvd_Enter); _txtUTs = new TextBox(); _txtUTs.TextChanged += new EventHandler(txtUTs_TextChanged); _txtUTs.KeyPress += new KeyPressEventHandler(txtUTs_KeyPress); _txtUTs.Validating += new System.ComponentModel.CancelEventHandler(txtUTs_Validating); _txtUTs.Enter += new EventHandler(txtUTs_Enter); _txtUTm = new TextBox(); _txtUTm.TextChanged += new EventHandler(txtUTm_TextChanged); _txtUTm.KeyPress += new KeyPressEventHandler(txtUTm_KeyPress); _txtUTm.Validating += new System.ComponentModel.CancelEventHandler(txtUTm_Validating); _txtUTm.Enter += new EventHandler(txtUTm_Enter); _txtd = new TextBox(); _txtd.Enter += new EventHandler(txtd_Enter); _txtd.KeyPress += new KeyPressEventHandler(txtd_KeyPress); _txtd.TextChanged += new EventHandler(txtd_TextChanged); _txtd.Validating += new System.ComponentModel.CancelEventHandler(txtd_Validating); txtdcorr = new TextBox(); txtvcorr = new TextBox(); frameFwdBack = new GroupBox(); _optBack = new RadioButton(); _optBack.CheckedChanged += new EventHandler(optBack_CheckedChanged); _optFwd = new RadioButton(); _optFwd.CheckedChanged += new EventHandler(optFwd_CheckedChanged); frameSelect = new GroupBox(); _optMoon = new RadioButton(); _optMoon.CheckedChanged += new EventHandler(optMoon_CheckedChanged); _optAries = new RadioButton(); _optAries.CheckedChanged += new EventHandler(optAries_CheckedChanged); _optSunPlanets = new RadioButton(); _optSunPlanets.CheckedChanged += new EventHandler(optSunPlanets_CheckedChanged); Label8 = new Label(); Label7 = new Label(); Label6 = new Label(); Label4 = new Label(); Label3 = new Label(); Label2 = new Label(); _ExitBtn = new Button(); _ExitBtn.Click += new EventHandler(ExitBtn_Click); Label1 = new Label(); Label9 = new Label(); _btnCalculate = new Button(); _btnCalculate.Click += new EventHandler(btnCalculate_Click); PictureBox1 = new PictureBox(); Label10 = new Label(); Label12 = new Label(); Label5 = new Label(); Label11 = new Label(); Label13 = new Label(); Label14 = new Label(); _btnClearFields = new Button(); _btnClearFields.Click += new EventHandler(btnClearFields_Click); txtdcorrx = new TextBox(); txtvcorrx = new TextBox(); frameFwdBack.SuspendLayout(); frameSelect.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)PictureBox1).BeginInit(); SuspendLayout(); // // txtMin // _txtMin.AcceptsReturn = true; _txtMin.BackColor = SystemColors.Window; _txtMin.Cursor = Cursors.IBeam; _txtMin.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _txtMin.ForeColor = SystemColors.WindowText; _txtMin.Location = new Point(153, 155); _txtMin.MaxLength = 4; _txtMin.Name = "_txtMin"; _txtMin.RightToLeft = RightToLeft.No; _txtMin.Size = new Size(33, 20); _txtMin.TabIndex = 18; _txtMin.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(_txtMin, "Range 0 to 59.9"); // // txtDeg // _txtDeg.AcceptsReturn = true; _txtDeg.BackColor = SystemColors.Window; _txtDeg.Cursor = Cursors.IBeam; _txtDeg.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _txtDeg.ForeColor = SystemColors.WindowText; _txtDeg.Location = new Point(103, 155); _txtDeg.MaxLength = 2; _txtDeg.Name = "_txtDeg"; _txtDeg.RightToLeft = RightToLeft.No; _txtDeg.Size = new Size(33, 20); _txtDeg.TabIndex = 17; _txtDeg.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(_txtDeg, "Range 0 to 15 for Sun/Planets, Aries; 0 to 14 for Moon"); // // cmdPrint // _cmdPrint.BackColor = SystemColors.Control; _cmdPrint.Cursor = Cursors.Default; _cmdPrint.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _cmdPrint.ForeColor = SystemColors.ControlText; _cmdPrint.Image = (Image)resources.GetObject("cmdPrint.Image"); _cmdPrint.Location = new Point(348, 5); _cmdPrint.Name = "_cmdPrint"; _cmdPrint.RightToLeft = RightToLeft.No; _cmdPrint.Size = new Size(21, 21); _cmdPrint.TabIndex = 13; _cmdPrint.TextAlign = ContentAlignment.BottomCenter; ToolTip1.SetToolTip(_cmdPrint, "Print window"); _cmdPrint.UseVisualStyleBackColor = false; // // txtv // _txtv.AcceptsReturn = true; _txtv.BackColor = SystemColors.Window; _txtv.Cursor = Cursors.IBeam; _txtv.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _txtv.ForeColor = SystemColors.WindowText; _txtv.Location = new Point(303, 98); _txtv.MaxLength = 4; _txtv.Name = "_txtv"; _txtv.RightToLeft = RightToLeft.No; _txtv.Size = new Size(33, 20); _txtv.TabIndex = 8; _txtv.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(_txtv, "Range 0 to 18.0"); // // txtUTs // _txtUTs.AcceptsReturn = true; _txtUTs.BackColor = SystemColors.Window; _txtUTs.Cursor = Cursors.IBeam; _txtUTs.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _txtUTs.ForeColor = SystemColors.WindowText; _txtUTs.Location = new Point(153, 96); _txtUTs.MaxLength = 2; _txtUTs.Name = "_txtUTs"; _txtUTs.RightToLeft = RightToLeft.No; _txtUTs.Size = new Size(33, 20); _txtUTs.TabIndex = 7; _txtUTs.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(_txtUTs, "Range 0 to 60"); // // txtUTm // _txtUTm.AcceptsReturn = true; _txtUTm.BackColor = SystemColors.Window; _txtUTm.Cursor = Cursors.IBeam; _txtUTm.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _txtUTm.ForeColor = SystemColors.WindowText; _txtUTm.Location = new Point(101, 96); _txtUTm.MaxLength = 2; _txtUTm.Name = "_txtUTm"; _txtUTm.RightToLeft = RightToLeft.No; _txtUTm.Size = new Size(33, 20); _txtUTm.TabIndex = 6; _txtUTm.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(_txtUTm, "Range 0 to 59"); // // txtd // _txtd.AcceptsReturn = true; _txtd.BackColor = SystemColors.Window; _txtd.Cursor = Cursors.IBeam; _txtd.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); _txtd.ForeColor = SystemColors.WindowText; _txtd.Location = new Point(303, 124); _txtd.MaxLength = 4; _txtd.Name = "_txtd"; _txtd.RightToLeft = RightToLeft.No; _txtd.Size = new Size(33, 20); _txtd.TabIndex = 9; _txtd.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(_txtd, "Range 0 to 18.0"); // // txtdcorr // txtdcorr.AcceptsReturn = true; txtdcorr.BackColor = SystemColors.Window; txtdcorr.Cursor = Cursors.IBeam; txtdcorr.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); txtdcorr.ForeColor = SystemColors.WindowText; txtdcorr.Location = new Point(264, 180); txtdcorr.MaxLength = 4; txtdcorr.Name = "txtdcorr"; txtdcorr.RightToLeft = RightToLeft.No; txtdcorr.Size = new Size(33, 20); txtdcorr.TabIndex = 21; txtdcorr.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(txtdcorr, "Range 0 to 18.0"); // // txtvcorr // txtvcorr.AcceptsReturn = true; txtvcorr.BackColor = SystemColors.Window; txtvcorr.Cursor = Cursors.IBeam; txtvcorr.Font = new Font("Arial", 8.25f, FontStyle.Bold, GraphicsUnit.Point, Conversions.ToByte(0)); txtvcorr.ForeColor = SystemColors.WindowText; txtvcorr.Location = new Point(264, 154); txtvcorr.MaxLength = 4; txtvcorr.Name = "txtvcorr"; txtvcorr.RightToLeft = RightToLeft.No; txtvcorr.Size = new Size(33, 20); txtvcorr.TabIndex = 20; txtvcorr.TextAlign = HorizontalAlignment.Center; ToolTip1.SetToolTip(txtvcorr, "Range 0 to 18.0"); // // frameFwdBack // frameFwdBack.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); frameFwdBack.Controls.Add(_optBack); frameFwdBack.Controls.Add(_optFwd); frameFwdBack.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); frameFwdBack.ForeColor = SystemColors.ControlText; frameFwdBack.Location = new Point(30, 5); frameFwdBack.Name = "frameFwdBack"; frameFwdBack.Padding = new Padding(0); frameFwdBack.RightToLeft = RightToLeft.No; frameFwdBack.Size = new Size(306, 40); frameFwdBack.TabIndex = 14; frameFwdBack.TabStop = false; frameFwdBack.Text = "Select Table Direction"; // // optBack // _optBack.BackColor = SystemColors.Window; _optBack.Cursor = Cursors.Default; _optBack.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _optBack.ForeColor = SystemColors.ControlText; _optBack.Location = new Point(177, 16); _optBack.Name = "_optBack"; _optBack.RightToLeft = RightToLeft.No; _optBack.Size = new Size(119, 18); _optBack.TabIndex = 16; _optBack.TabStop = true; _optBack.Text = "GHA Incr to UT Incr"; _optBack.UseVisualStyleBackColor = false; // // optFwd // _optFwd.BackColor = SystemColors.Window; _optFwd.Checked = true; _optFwd.Cursor = Cursors.Default; _optFwd.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _optFwd.ForeColor = SystemColors.ControlText; _optFwd.Location = new Point(46, 16); _optFwd.Name = "_optFwd"; _optFwd.RightToLeft = RightToLeft.No; _optFwd.Size = new Size(125, 18); _optFwd.TabIndex = 15; _optFwd.TabStop = true; _optFwd.Text = "UT Incr to GHA Incr"; _optFwd.UseVisualStyleBackColor = false; // // frameSelect // frameSelect.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224)), Conversions.ToInteger(Conversions.ToByte(224))); frameSelect.Controls.Add(_optMoon); frameSelect.Controls.Add(_optAries); frameSelect.Controls.Add(_optSunPlanets); frameSelect.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); frameSelect.ForeColor = SystemColors.ControlText; frameSelect.Location = new Point(30, 52); frameSelect.Name = "frameSelect"; frameSelect.Padding = new Padding(0); frameSelect.RightToLeft = RightToLeft.No; frameSelect.Size = new Size(306, 40); frameSelect.TabIndex = 9; frameSelect.TabStop = false; frameSelect.Text = "Select object"; // // optMoon // _optMoon.BackColor = SystemColors.Window; _optMoon.Cursor = Cursors.Default; _optMoon.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _optMoon.ForeColor = SystemColors.ControlText; _optMoon.Location = new Point(229, 15); _optMoon.Name = "_optMoon"; _optMoon.RightToLeft = RightToLeft.No; _optMoon.Size = new Size(65, 17); _optMoon.TabIndex = 12; _optMoon.Text = "Moon"; _optMoon.UseVisualStyleBackColor = false; // // optAries // _optAries.BackColor = SystemColors.Window; _optAries.Cursor = Cursors.Default; _optAries.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _optAries.ForeColor = SystemColors.ControlText; _optAries.Location = new Point(149, 15); _optAries.Name = "_optAries"; _optAries.RightToLeft = RightToLeft.No; _optAries.Size = new Size(65, 17); _optAries.TabIndex = 11; _optAries.Text = "Aries"; _optAries.UseVisualStyleBackColor = false; // // optSunPlanets // _optSunPlanets.BackColor = SystemColors.Window; _optSunPlanets.Checked = true; _optSunPlanets.Cursor = Cursors.Default; _optSunPlanets.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _optSunPlanets.ForeColor = SystemColors.ControlText; _optSunPlanets.Location = new Point(47, 15); _optSunPlanets.Name = "_optSunPlanets"; _optSunPlanets.RightToLeft = RightToLeft.No; _optSunPlanets.Size = new Size(81, 17); _optSunPlanets.TabIndex = 10; _optSunPlanets.TabStop = true; _optSunPlanets.Text = "Sun/Planets"; _optSunPlanets.UseVisualStyleBackColor = false; // // Label8 // Label8.BackColor = SystemColors.Window; Label8.Cursor = Cursors.Default; Label8.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label8.ForeColor = SystemColors.ControlText; Label8.Location = new Point(187, 157); Label8.Name = "Label8"; Label8.RightToLeft = RightToLeft.No; Label8.Size = new Size(12, 17); Label8.TabIndex = 20; Label8.Text = "'"; // // Label7 // Label7.BackColor = SystemColors.Window; Label7.Cursor = Cursors.Default; Label7.Font = new Font("Symbol", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(2)); Label7.ForeColor = SystemColors.ControlText; Label7.Location = new Point(137, 156); Label7.Name = "Label7"; Label7.RightToLeft = RightToLeft.No; Label7.Size = new Size(9, 17); Label7.TabIndex = 19; Label7.Text = "°"; // // Label6 // Label6.BackColor = SystemColors.Window; Label6.Cursor = Cursors.Default; Label6.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = SystemColors.ControlText; Label6.Location = new Point(337, 98); Label6.Name = "Label6"; Label6.RightToLeft = RightToLeft.No; Label6.Size = new Size(9, 17); Label6.TabIndex = 5; Label6.Text = "'"; // // Label4 // Label4.BackColor = SystemColors.Window; Label4.Cursor = Cursors.Default; Label4.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label4.ForeColor = SystemColors.ControlText; Label4.Location = new Point(205, 97); Label4.Name = "Label4"; Label4.RightToLeft = RightToLeft.No; Label4.Size = new Size(95, 19); Label4.TabIndex = 3; Label4.Text = "v from daily page"; Label4.TextAlign = ContentAlignment.MiddleRight; // // Label3 // Label3.BackColor = SystemColors.Window; Label3.Cursor = Cursors.Default; Label3.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.ForeColor = SystemColors.ControlText; Label3.Location = new Point(187, 98); Label3.Name = "Label3"; Label3.RightToLeft = RightToLeft.No; Label3.Size = new Size(9, 17); Label3.TabIndex = 2; Label3.Text = "s"; // // Label2 // Label2.BackColor = SystemColors.Window; Label2.Cursor = Cursors.Default; Label2.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = SystemColors.ControlText; Label2.Location = new Point(134, 98); Label2.Name = "Label2"; Label2.RightToLeft = RightToLeft.No; Label2.Size = new Size(12, 17); Label2.TabIndex = 1; Label2.Text = "m"; // // ExitBtn // _ExitBtn.BackColor = Color.Crimson; _ExitBtn.ForeColor = SystemColors.ControlLightLight; _ExitBtn.Location = new Point(284, 277); _ExitBtn.Name = "_ExitBtn"; _ExitBtn.Size = new Size(62, 23); _ExitBtn.TabIndex = 24; _ExitBtn.Text = "Exit"; _ExitBtn.UseVisualStyleBackColor = false; // // Label1 // Label1.BackColor = SystemColors.Window; Label1.Cursor = Cursors.Default; Label1.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = SystemColors.ControlText; Label1.Location = new Point(24, 97); Label1.Name = "Label1"; Label1.RightToLeft = RightToLeft.No; Label1.Size = new Size(75, 19); Label1.TabIndex = 0; Label1.Text = "UT Increment"; Label1.TextAlign = ContentAlignment.MiddleCenter; // // Label9 // Label9.BackColor = SystemColors.Window; Label9.Cursor = Cursors.Default; Label9.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label9.ForeColor = SystemColors.ControlText; Label9.Location = new Point(23, 152); Label9.Name = "Label9"; Label9.RightToLeft = RightToLeft.No; Label9.Size = new Size(82, 25); Label9.TabIndex = 21; Label9.Text = "GHA Increment"; Label9.TextAlign = ContentAlignment.MiddleCenter; // // btnCalculate // _btnCalculate.BackColor = SystemColors.MenuHighlight; _btnCalculate.ForeColor = SystemColors.ControlLightLight; _btnCalculate.Location = new Point(153, 277); _btnCalculate.Name = "_btnCalculate"; _btnCalculate.Size = new Size(75, 23); _btnCalculate.TabIndex = 25; _btnCalculate.Text = "Calculate"; _btnCalculate.UseVisualStyleBackColor = false; // // PictureBox1 // PictureBox1.Image = My.Resources.Resources.ABC_white; PictureBox1.Location = new Point(26, 306); PictureBox1.Name = "PictureBox1"; PictureBox1.Size = new Size(320, 50); PictureBox1.SizeMode = PictureBoxSizeMode.Zoom; PictureBox1.TabIndex = 102; PictureBox1.TabStop = false; // // Label10 // Label10.BackColor = SystemColors.Window; Label10.Cursor = Cursors.Default; Label10.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label10.ForeColor = SystemColors.ControlText; Label10.Location = new Point(337, 124); Label10.Name = "Label10"; Label10.RightToLeft = RightToLeft.No; Label10.Size = new Size(9, 17); Label10.TabIndex = 105; Label10.Text = "'"; // // Label12 // Label12.BackColor = SystemColors.Window; Label12.Cursor = Cursors.Default; Label12.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label12.ForeColor = SystemColors.ControlText; Label12.Location = new Point(205, 124); Label12.Name = "Label12"; Label12.RightToLeft = RightToLeft.No; Label12.Size = new Size(95, 19); Label12.TabIndex = 103; Label12.Text = "d from daily page"; Label12.TextAlign = ContentAlignment.MiddleRight; // // Label5 // Label5.BackColor = SystemColors.Window; Label5.Cursor = Cursors.Default; Label5.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label5.ForeColor = SystemColors.ControlText; Label5.Location = new Point(298, 180); Label5.Name = "Label5"; Label5.RightToLeft = RightToLeft.No; Label5.Size = new Size(9, 17); Label5.TabIndex = 111; Label5.Text = "'"; // // Label11 // Label11.BackColor = SystemColors.Window; Label11.Cursor = Cursors.Default; Label11.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label11.ForeColor = SystemColors.ControlText; Label11.Location = new Point(211, 180); Label11.Name = "Label11"; Label11.RightToLeft = RightToLeft.No; Label11.Size = new Size(46, 19); Label11.TabIndex = 110; Label11.Text = "d corr"; Label11.TextAlign = ContentAlignment.MiddleLeft; // // Label13 // Label13.BackColor = SystemColors.Window; Label13.Cursor = Cursors.Default; Label13.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label13.ForeColor = SystemColors.ControlText; Label13.Location = new Point(298, 154); Label13.Name = "Label13"; Label13.RightToLeft = RightToLeft.No; Label13.Size = new Size(9, 17); Label13.TabIndex = 108; Label13.Text = "'"; // // Label14 // Label14.BackColor = SystemColors.Window; Label14.Cursor = Cursors.Default; Label14.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label14.ForeColor = SystemColors.ControlText; Label14.Location = new Point(211, 154); Label14.Name = "Label14"; Label14.RightToLeft = RightToLeft.No; Label14.Size = new Size(49, 19); Label14.TabIndex = 107; Label14.Text = "v corr"; Label14.TextAlign = ContentAlignment.MiddleLeft; // // btnClearFields // _btnClearFields.BackColor = SystemColors.MenuHighlight; _btnClearFields.ForeColor = SystemColors.ControlLightLight; _btnClearFields.Location = new Point(26, 277); _btnClearFields.Name = "_btnClearFields"; _btnClearFields.Size = new Size(83, 23); _btnClearFields.TabIndex = 113; _btnClearFields.Text = "Clear Fields"; _btnClearFields.UseVisualStyleBackColor = false; // // txtdcorrx // txtdcorrx.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); txtdcorrx.Location = new Point(77, 235); txtdcorrx.Name = "txtdcorrx"; txtdcorrx.ReadOnly = true; txtdcorrx.Size = new Size(259, 20); txtdcorrx.TabIndex = 115; txtdcorrx.TextAlign = HorizontalAlignment.Center; txtdcorrx.Visible = false; // // txtvcorrx // txtvcorrx.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); txtvcorrx.Location = new Point(77, 209); txtvcorrx.Name = "txtvcorrx"; txtvcorrx.ReadOnly = true; txtvcorrx.Size = new Size(259, 20); txtvcorrx.TabIndex = 114; txtvcorrx.TextAlign = HorizontalAlignment.Center; txtvcorrx.Visible = false; // // FormIandC // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = SystemColors.Window; ClientSize = new Size(381, 364); Controls.Add(txtdcorrx); Controls.Add(txtvcorrx); Controls.Add(_btnClearFields); Controls.Add(txtdcorr); Controls.Add(Label5); Controls.Add(Label11); Controls.Add(txtvcorr); Controls.Add(Label13); Controls.Add(Label14); Controls.Add(_txtd); Controls.Add(Label10); Controls.Add(Label12); Controls.Add(PictureBox1); Controls.Add(_btnCalculate); Controls.Add(_ExitBtn); Controls.Add(_txtMin); Controls.Add(_txtDeg); Controls.Add(frameFwdBack); Controls.Add(_cmdPrint); Controls.Add(frameSelect); Controls.Add(_txtv); Controls.Add(_txtUTs); Controls.Add(_txtUTm); Controls.Add(Label9); Controls.Add(Label8); Controls.Add(Label7); Controls.Add(Label6); Controls.Add(Label4); Controls.Add(Label3); Controls.Add(Label2); Controls.Add(Label1); Cursor = Cursors.Default; Font = new Font("Tahoma", 8.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); FormBorderStyle = FormBorderStyle.FixedSingle; Icon = (Icon)resources.GetObject("$this.Icon"); Location = new Point(3, 29); MaximizeBox = false; Name = "FormIandC"; RightToLeft = RightToLeft.No; StartPosition = FormStartPosition.CenterScreen; Text = "Increments and Corrections"; frameFwdBack.ResumeLayout(false); frameSelect.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)PictureBox1).EndInit(); Activated += new EventHandler(FormIandC_Activated); FormClosed += new FormClosedEventHandler(FormIandC_FormClosed); ResumeLayout(false); PerformLayout(); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmPlanRecordKeeperFee(frmMain mf, PlanRecordKeeperFee planRecordKeeperFee, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; Plan plan = new Plan(planRecordKeeperFee.PlanId); DataIntegrationHub.Business.Entities.RecordKeeper rk = new DataIntegrationHub.Business.Entities.RecordKeeper(planRecordKeeperFee.RecordKeeperId); CurrentPlanRecordKeeperFee = planRecordKeeperFee; txtPlan.Text = plan.Name; txtRecordKeeper.Text = rk.Name; if (CurrentPlanRecordKeeperFee.Fee != null) { txtFee.Text = ((decimal)CurrentPlanRecordKeeperFee.Fee).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.BenchmarkFee != null) { txtBenchmarkFee.Text = ((decimal)CurrentPlanRecordKeeperFee.BenchmarkFee).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.AsOfDate != null) { txtAsOfDate.Text = ((DateTime)CurrentPlanRecordKeeperFee.AsOfDate).ToString("MM/dd/yyyy"); } if (CurrentPlanRecordKeeperFee.PaymentRevenueSharing != null) { txtPaymentRevenueSharing.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentRevenueSharing).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.PaymentForfeitures != null) { txtPaymentForfeitures.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentForfeitures).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.PaymentParticipants != null) { txtPaymentParticipants.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentParticipants).ToString("#,##"); } if (CurrentPlanRecordKeeperFee.PaymentPlanSponsor != null) { txtPaymentPlanSponsor.Text = ((decimal)CurrentPlanRecordKeeperFee.PaymentPlanSponsor).ToString("#,##"); } ss.Close(); this.Show(); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmPlanParticipantsActive(frmMain mf, PlanParticipantsActive planParticipantsActive, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; Plan plan = new Plan(planParticipantsActive.PlanId); CurrentPlanParticipantsActive = planParticipantsActive; txtPlan.Text = plan.Name; if (CurrentPlanParticipantsActive.ParticipantCount != null) { txtParticipantCount.Text = ((decimal)CurrentPlanParticipantsActive.ParticipantCount).ToString("#,##"); } if (CurrentPlanParticipantsActive.AsOfDate != null) { txtAsOfDate.Text = ((DateTime)CurrentPlanParticipantsActive.AsOfDate).ToString("MM/dd/yyyy"); } ss.Close(); this.Show(); }
private void SetButtons() { switch (buttons) { case Buttons.OKCancel: MinimumSize = new Size(196, 136); button1.Visible = false; button2.Visible = false; button3.Text = Properties.Resources.ButtonOK; button4.Text = Properties.Resources.ButtonCancel; button3.DialogResult = DialogResult.OK; button4.DialogResult = DialogResult.Cancel; CancelButton = button4; FormClosed += new FormClosedEventHandler((sender, e) => { if (DialogResult == DialogResult.OK) { clickedButton = ClickedButton.Button1; } else { clickedButton = ClickedButton.Button2; } }); break; case Buttons.AbortRetryIgnore: MinimumSize = new Size(277, 136); button1.Visible = false; button2.Text = Properties.Resources.ButtonAbort; button3.Text = Properties.Resources.ButtonRetry; button4.Text = Properties.Resources.ButtonIgnore; button2.DialogResult = DialogResult.Abort; button3.DialogResult = DialogResult.Retry; button4.DialogResult = DialogResult.Ignore; DisableCloseButton(); FormClosed += new FormClosedEventHandler((sender, e) => { if (DialogResult == DialogResult.Abort) { clickedButton = ClickedButton.Button1; } else if (DialogResult == DialogResult.Retry) { clickedButton = ClickedButton.Button2; } else if (DialogResult == DialogResult.Ignore) { clickedButton = ClickedButton.Button3; } }); break; case Buttons.YesNoCancel: MinimumSize = new Size(277, 136); button1.Visible = false; button2.Text = Properties.Resources.ButtonYes; button3.Text = Properties.Resources.ButtonNo; button4.Text = Properties.Resources.ButtonCancel; button2.DialogResult = DialogResult.Yes; button3.DialogResult = DialogResult.No; button4.DialogResult = DialogResult.Cancel; CancelButton = button4; FormClosed += new FormClosedEventHandler((sender, e) => { if (DialogResult == DialogResult.Yes) { clickedButton = ClickedButton.Button1; } else if (DialogResult == DialogResult.No) { clickedButton = ClickedButton.Button2; } else { clickedButton = ClickedButton.Button3; } }); break; case Buttons.YesNo: MinimumSize = new Size(196, 136); button1.Visible = false; button2.Visible = false; button3.Text = Properties.Resources.ButtonYes; button4.Text = Properties.Resources.ButtonNo; button3.DialogResult = DialogResult.Yes; button4.DialogResult = DialogResult.No; DisableCloseButton(); FormClosed += new FormClosedEventHandler((sender, e) => { if (DialogResult == DialogResult.Yes) { clickedButton = ClickedButton.Button1; } else if (DialogResult == DialogResult.No) { clickedButton = ClickedButton.Button2; } }); break; case Buttons.RetryCancel: MinimumSize = new Size(196, 136); button1.Visible = false; button2.Visible = false; button3.Text = Properties.Resources.ButtonRetry; button4.Text = Properties.Resources.ButtonCancel; button3.DialogResult = DialogResult.Retry; button4.DialogResult = DialogResult.Cancel; CancelButton = button4; FormClosed += new FormClosedEventHandler((sender, e) => { if (DialogResult == DialogResult.Retry) { clickedButton = ClickedButton.Button1; } else { clickedButton = ClickedButton.Button2; } }); break; case Buttons.YesAllNoCancel: MinimumSize = new Size(358, 136); button1.Text = Properties.Resources.ButtonYes; button2.Text = Properties.Resources.ButtonYesAll; button3.Text = Properties.Resources.ButtonNo; button4.Text = Properties.Resources.ButtonCancel; button1.DialogResult = DialogResult.Yes; button2.DialogResult = DialogResult.Yes; button3.DialogResult = DialogResult.No; button4.DialogResult = DialogResult.Cancel; CancelButton = button4; button1.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button1; }); button2.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button2; }); FormClosed += new FormClosedEventHandler((sender, e) => { if (DialogResult == DialogResult.No) { clickedButton = ClickedButton.Button3; } else if (DialogResult == DialogResult.Cancel) { clickedButton = ClickedButton.Button4; } }); break; case Buttons.DeleteAllSkipCancel: MinimumSize = new Size(358, 136); button1.Text = Properties.Resources.ButtonDelete; button2.Text = Properties.Resources.ButtonAll; button3.Text = Properties.Resources.ButtonSkip; button4.Text = Properties.Resources.ButtonCancel; button1.DialogResult = DialogResult.Yes; button2.DialogResult = DialogResult.Yes; button3.DialogResult = DialogResult.No; button4.DialogResult = DialogResult.Cancel; CancelButton = button4; button1.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button1; }); button2.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button2; }); FormClosed += new FormClosedEventHandler((sender, e) => { if (DialogResult == DialogResult.No) { clickedButton = ClickedButton.Button3; } else if (DialogResult == DialogResult.Cancel) { clickedButton = ClickedButton.Button4; } }); break; case Buttons.YesAllNoAll: MinimumSize = new Size(358, 136); button1.Text = Properties.Resources.ButtonYes; button2.Text = Properties.Resources.ButtonYesAll; button3.Text = Properties.Resources.ButtonNo; button4.Text = Properties.Resources.ButtonNoAll; button1.DialogResult = DialogResult.Yes; button2.DialogResult = DialogResult.Yes; button3.DialogResult = DialogResult.No; button4.DialogResult = DialogResult.No; DisableCloseButton(); button1.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button1; }); button2.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button2; }); button3.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button3; }); button4.Click += new EventHandler((sender, e) => { clickedButton = ClickedButton.Button4; }); break; default: MinimumSize = new Size(146, 136); button1.Visible = false; button2.Visible = false; button3.Visible = false; button4.Text = Properties.Resources.ButtonOK; button4.DialogResult = DialogResult.OK; button4.KeyDown += new KeyEventHandler((sender, e) => { if (e.KeyCode == Keys.Escape) { Close(); } }); FormClosed += new FormClosedEventHandler((sender, e) => { DialogResult = DialogResult.OK; clickedButton = ClickedButton.Button1; }); break; } }
private void InitializeComponent() { var resources = new System.Resources.ResourceManager(typeof(frmMessage)); components = new System.ComponentModel.Container(); ToolTip1 = new ToolTip(components); _picFace = new PictureBox(); _picFace.MouseDown += new MouseEventHandler(picFace_MouseDown); picUnit1 = new PictureBox(); picUnit2 = new PictureBox(); txtHP2 = new TextBox(); picHP2 = new PictureBox(); picEN2 = new PictureBox(); txtEN2 = new TextBox(); txtEN1 = new TextBox(); picEN1 = new PictureBox(); picHP1 = new PictureBox(); txtHP1 = new TextBox(); _picMessage = new PictureBox(); _picMessage.DoubleClick += new EventHandler(picMessage_DoubleClick); _picMessage.MouseDown += new MouseEventHandler(picMessage_MouseDown); labHP2 = new Label(); labEN2 = new Label(); labEN1 = new Label(); labHP1 = new Label(); SuspendLayout(); ToolTip1.Active = true; StartPosition = FormStartPosition.Manual; BackColor = Color.FromArgb(192, 192, 192); FormBorderStyle = FormBorderStyle.FixedSingle; Text = "メッセージ"; ClientSize = new Size(508, 118); Location = new Point(93, 101); Font = new Font("MS P明朝", 12f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); ForeColor = Color.Black; Icon = (Icon)resources.GetObject("frmMessage.Icon"); KeyPreview = true; MaximizeBox = false; AutoScaleMode = AutoScaleMode.Font; ControlBox = true; Enabled = true; MinimizeBox = true; Cursor = Cursors.Default; RightToLeft = RightToLeft.No; ShowInTaskbar = true; HelpButton = false; WindowState = FormWindowState.Normal; Name = "frmMessage"; _picFace.BackColor = Color.FromArgb(192, 192, 192); _picFace.Size = new Size(68, 68); _picFace.Location = new Point(8, 43); _picFace.TabIndex = 15; _picFace.Dock = DockStyle.None; _picFace.CausesValidation = true; _picFace.Enabled = true; _picFace.ForeColor = SystemColors.ControlText; _picFace.Cursor = Cursors.Default; _picFace.RightToLeft = RightToLeft.No; _picFace.TabStop = true; _picFace.Visible = true; _picFace.SizeMode = PictureBoxSizeMode.Normal; _picFace.BorderStyle = BorderStyle.Fixed3D; _picFace.Name = "_picFace"; picUnit1.BackColor = SystemColors.Window; picUnit1.ForeColor = SystemColors.WindowText; picUnit1.Size = new Size(32, 32); picUnit1.Location = new Point(8, 4); picUnit1.TabIndex = 14; picUnit1.Visible = false; picUnit1.Dock = DockStyle.None; picUnit1.CausesValidation = true; picUnit1.Enabled = true; picUnit1.Cursor = Cursors.Default; picUnit1.RightToLeft = RightToLeft.No; picUnit1.TabStop = true; picUnit1.SizeMode = PictureBoxSizeMode.Normal; picUnit1.BorderStyle = BorderStyle.None; picUnit1.Name = "picUnit1"; picUnit2.BackColor = SystemColors.Window; picUnit2.ForeColor = SystemColors.WindowText; picUnit2.Size = new Size(32, 32); picUnit2.Location = new Point(260, 5); picUnit2.TabIndex = 13; picUnit2.Visible = false; picUnit2.Dock = DockStyle.None; picUnit2.CausesValidation = true; picUnit2.Enabled = true; picUnit2.Cursor = Cursors.Default; picUnit2.RightToLeft = RightToLeft.No; picUnit2.TabStop = true; picUnit2.SizeMode = PictureBoxSizeMode.Normal; picUnit2.BorderStyle = BorderStyle.None; picUnit2.Name = "picUnit2"; txtHP2.AutoSize = false; txtHP2.BackColor = Color.FromArgb(192, 192, 192); txtHP2.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtHP2.ForeColor = Color.Black; txtHP2.Size = new Size(88, 13); txtHP2.Location = new Point(323, 10); txtHP2.TabIndex = 10; txtHP2.Text = "99999/99999"; txtHP2.AcceptsReturn = true; txtHP2.TextAlign = HorizontalAlignment.Left; txtHP2.CausesValidation = true; txtHP2.Enabled = true; txtHP2.HideSelection = true; txtHP2.ReadOnly = false; txtHP2.MaxLength = 0; txtHP2.Cursor = Cursors.IBeam; txtHP2.Multiline = false; txtHP2.RightToLeft = RightToLeft.No; txtHP2.ScrollBars = ScrollBars.None; txtHP2.TabStop = true; txtHP2.Visible = true; txtHP2.BorderStyle = BorderStyle.None; txtHP2.Name = "txtHP2"; picHP2.BackColor = Color.FromArgb(192, 0, 0); picHP2.ForeColor = Color.FromArgb(0, 192, 0); picHP2.Size = new Size(116, 8); picHP2.Location = new Point(297, 28); picHP2.TabIndex = 9; picHP2.Dock = DockStyle.None; picHP2.CausesValidation = true; picHP2.Enabled = true; picHP2.Cursor = Cursors.Default; picHP2.RightToLeft = RightToLeft.No; picHP2.TabStop = true; picHP2.Visible = true; picHP2.SizeMode = PictureBoxSizeMode.Normal; picHP2.BorderStyle = BorderStyle.Fixed3D; picHP2.Name = "picHP2"; picEN2.BackColor = Color.FromArgb(192, 0, 0); picEN2.ForeColor = Color.FromArgb(0, 192, 0); picEN2.Size = new Size(82, 8); picEN2.Location = new Point(418, 28); picEN2.TabIndex = 8; picEN2.Dock = DockStyle.None; picEN2.CausesValidation = true; picEN2.Enabled = true; picEN2.Cursor = Cursors.Default; picEN2.RightToLeft = RightToLeft.No; picEN2.TabStop = true; picEN2.Visible = true; picEN2.SizeMode = PictureBoxSizeMode.Normal; picEN2.BorderStyle = BorderStyle.Fixed3D; picEN2.Name = "picEN2"; txtEN2.AutoSize = false; txtEN2.BackColor = Color.FromArgb(192, 192, 192); txtEN2.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtEN2.ForeColor = Color.Black; txtEN2.Size = new Size(57, 13); txtEN2.Location = new Point(443, 10); txtEN2.TabIndex = 7; txtEN2.Text = "999/999"; txtEN2.AcceptsReturn = true; txtEN2.TextAlign = HorizontalAlignment.Left; txtEN2.CausesValidation = true; txtEN2.Enabled = true; txtEN2.HideSelection = true; txtEN2.ReadOnly = false; txtEN2.MaxLength = 0; txtEN2.Cursor = Cursors.IBeam; txtEN2.Multiline = false; txtEN2.RightToLeft = RightToLeft.No; txtEN2.ScrollBars = ScrollBars.None; txtEN2.TabStop = true; txtEN2.Visible = true; txtEN2.BorderStyle = BorderStyle.None; txtEN2.Name = "txtEN2"; txtEN1.AutoSize = false; txtEN1.BackColor = Color.FromArgb(192, 192, 192); txtEN1.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtEN1.ForeColor = Color.Black; txtEN1.Size = new Size(57, 13); txtEN1.Location = new Point(192, 10); txtEN1.TabIndex = 6; txtEN1.Text = "999/999"; txtEN1.AcceptsReturn = true; txtEN1.TextAlign = HorizontalAlignment.Left; txtEN1.CausesValidation = true; txtEN1.Enabled = true; txtEN1.HideSelection = true; txtEN1.ReadOnly = false; txtEN1.MaxLength = 0; txtEN1.Cursor = Cursors.IBeam; txtEN1.Multiline = false; txtEN1.RightToLeft = RightToLeft.No; txtEN1.ScrollBars = ScrollBars.None; txtEN1.TabStop = true; txtEN1.Visible = true; txtEN1.BorderStyle = BorderStyle.None; txtEN1.Name = "txtEN1"; picEN1.BackColor = Color.FromArgb(192, 0, 0); picEN1.ForeColor = Color.FromArgb(0, 192, 0); picEN1.Size = new Size(83, 8); picEN1.Location = new Point(166, 28); picEN1.TabIndex = 5; picEN1.Dock = DockStyle.None; picEN1.CausesValidation = true; picEN1.Enabled = true; picEN1.Cursor = Cursors.Default; picEN1.RightToLeft = RightToLeft.No; picEN1.TabStop = true; picEN1.Visible = true; picEN1.SizeMode = PictureBoxSizeMode.Normal; picEN1.BorderStyle = BorderStyle.Fixed3D; picEN1.Name = "picEN1"; picHP1.BackColor = Color.FromArgb(192, 0, 0); picHP1.ForeColor = Color.FromArgb(0, 192, 0); picHP1.Size = new Size(116, 8); picHP1.Location = new Point(45, 28); picHP1.TabIndex = 3; picHP1.Dock = DockStyle.None; picHP1.CausesValidation = true; picHP1.Enabled = true; picHP1.Cursor = Cursors.Default; picHP1.RightToLeft = RightToLeft.No; picHP1.TabStop = true; picHP1.Visible = true; picHP1.SizeMode = PictureBoxSizeMode.Normal; picHP1.BorderStyle = BorderStyle.Fixed3D; picHP1.Name = "picHP1"; txtHP1.AutoSize = false; txtHP1.BackColor = Color.FromArgb(192, 192, 192); txtHP1.Font = new Font("MS 明朝", 9.75f, FontStyle.Bold | FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); txtHP1.ForeColor = Color.Black; txtHP1.Size = new Size(88, 13); txtHP1.Location = new Point(72, 10); txtHP1.TabIndex = 2; txtHP1.Text = "99999/99999"; txtHP1.AcceptsReturn = true; txtHP1.TextAlign = HorizontalAlignment.Left; txtHP1.CausesValidation = true; txtHP1.Enabled = true; txtHP1.HideSelection = true; txtHP1.ReadOnly = false; txtHP1.MaxLength = 0; txtHP1.Cursor = Cursors.IBeam; txtHP1.Multiline = false; txtHP1.RightToLeft = RightToLeft.No; txtHP1.ScrollBars = ScrollBars.None; txtHP1.TabStop = true; txtHP1.Visible = true; txtHP1.BorderStyle = BorderStyle.None; txtHP1.Name = "txtHP1"; _picMessage.BackColor = Color.White; _picMessage.Font = new Font("MS P明朝", 12f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(128)); _picMessage.ForeColor = Color.Black; _picMessage.Size = new Size(417, 70); _picMessage.Location = new Point(84, 42); _picMessage.TabIndex = 0; _picMessage.Dock = DockStyle.None; _picMessage.CausesValidation = true; _picMessage.Enabled = true; _picMessage.Cursor = Cursors.Default; _picMessage.RightToLeft = RightToLeft.No; _picMessage.TabStop = true; _picMessage.Visible = true; _picMessage.SizeMode = PictureBoxSizeMode.Normal; _picMessage.BorderStyle = BorderStyle.Fixed3D; _picMessage.Name = "_picMessage"; labHP2.BackColor = Color.FromArgb(192, 192, 192); labHP2.Text = "HP"; labHP2.ForeColor = Color.Black; labHP2.Size = new Size(22, 17); labHP2.Location = new Point(296, 8); labHP2.TabIndex = 12; labHP2.TextAlign = ContentAlignment.TopLeft; labHP2.Enabled = true; labHP2.Cursor = Cursors.Default; labHP2.RightToLeft = RightToLeft.No; labHP2.UseMnemonic = true; labHP2.Visible = true; labHP2.AutoSize = false; labHP2.BorderStyle = BorderStyle.None; labHP2.Name = "labHP2"; labEN2.BackColor = Color.FromArgb(192, 192, 192); labEN2.Text = "EN"; labEN2.ForeColor = Color.Black; labEN2.Size = new Size(22, 17); labEN2.Location = new Point(417, 8); labEN2.TabIndex = 11; labEN2.TextAlign = ContentAlignment.TopLeft; labEN2.Enabled = true; labEN2.Cursor = Cursors.Default; labEN2.RightToLeft = RightToLeft.No; labEN2.UseMnemonic = true; labEN2.Visible = true; labEN2.AutoSize = false; labEN2.BorderStyle = BorderStyle.None; labEN2.Name = "labEN2"; labEN1.BackColor = Color.FromArgb(192, 192, 192); labEN1.Text = "EN"; labEN1.ForeColor = Color.Black; labEN1.Size = new Size(22, 17); labEN1.Location = new Point(165, 8); labEN1.TabIndex = 4; labEN1.TextAlign = ContentAlignment.TopLeft; labEN1.Enabled = true; labEN1.Cursor = Cursors.Default; labEN1.RightToLeft = RightToLeft.No; labEN1.UseMnemonic = true; labEN1.Visible = true; labEN1.AutoSize = false; labEN1.BorderStyle = BorderStyle.None; labEN1.Name = "labEN1"; labHP1.BackColor = Color.FromArgb(192, 192, 192); labHP1.Text = "HP"; labHP1.ForeColor = Color.Black; labHP1.Size = new Size(22, 17); labHP1.Location = new Point(44, 8); labHP1.TabIndex = 1; labHP1.TextAlign = ContentAlignment.TopLeft; labHP1.Enabled = true; labHP1.Cursor = Cursors.Default; labHP1.RightToLeft = RightToLeft.No; labHP1.UseMnemonic = true; labHP1.Visible = true; labHP1.AutoSize = false; labHP1.BorderStyle = BorderStyle.None; labHP1.Name = "labHP1"; Controls.Add(_picFace); Controls.Add(picUnit1); Controls.Add(picUnit2); Controls.Add(txtHP2); Controls.Add(picHP2); Controls.Add(picEN2); Controls.Add(txtEN2); Controls.Add(txtEN1); Controls.Add(picEN1); Controls.Add(picHP1); Controls.Add(txtHP1); Controls.Add(_picMessage); Controls.Add(labHP2); Controls.Add(labEN2); Controls.Add(labEN1); Controls.Add(labHP1); Click += new EventHandler(frmMessage_Click); DoubleClick += new EventHandler(frmMessage_DoubleClick); KeyDown += new KeyEventHandler(frmMessage_KeyDown); MouseDown += new MouseEventHandler(frmMessage_MouseDown); FormClosed += new FormClosedEventHandler(frmMessage_FormClosed); ResumeLayout(false); PerformLayout(); }
public ChildForm () { Closed += new EventHandler (ChildForm_Closed); Closing += new CancelEventHandler (ChildForm_Closing); #if NET_2_0 FormClosed += new FormClosedEventHandler (ChildForm_FormClosed); FormClosing += new FormClosingEventHandler (ChildForm_FormClosing); #endif }
public static void ShowMessage(string message, FormClosedEventHandler closeHandler) { FormMessage formMessage = new FormMessage(message, false, 0, closeHandler); formMessage.ShowDialog(); }
public void Show(FormClosedEventHandler endReport) { window.FormClosed += endReport; Show(); }
private void JCAssertion_Load(object sender, EventArgs e) { try { InitJCAssertion (); FormClosed += new FormClosedEventHandler(Form1_FormClosing); LancerThread(); // configurer et lancer le timer monTimer.AutoReset = true; monTimer.Interval = 1000; monTimer.Elapsed += new ElapsedEventHandler(VerifieFini); monTimer.Start(); // initialiser le handler de fermeture de la fenetre } catch (Exception excep) { Console.WriteLine("Erreur : " + excep.Message ); Informer(excep.Message, true ); ExceptionRencontree = true; ExceptionGlobale = excep; CodeDeRetour = 99; if(! Interactif ) Environment.Exit(99); } // end run }
public ObjectBrowserForm(ToolStrip toolbar) { _includeWorkspace = ApplicationManager.GetInstance().ClientProfile.HaveFlag( ClientFlags.CodeAssistObjectBrowserIncludeWorkspace); InitializeComponent(); #region Initialize UI _mainForm = ApplicationManager.GetInstance().MainForm; if (toolbar == null) { _useMainToolbar = true; _toolbar = _mainForm.MainToolbar; } else { _toolbar = toolbar; _useMainToolbar = false; } _hideNonPublicMembers = true; _hideSpecialNames = true; _hideInheritedMembers = true; _hidePropertyGrid = true; // Make the readonly items nearly black (black will be ignored!) propertyGrid.ViewForeColor = Color.FromArgb(0, 0, 1); Text = Resources.OBDocumentTitle; listView.Columns[0].Width = listView.Width; PopulateToolbar(); /* * Apply theme if available. */ ThemeFlags flags = ApplicationManager.GetInstance(). ClientProfile.ThemeFlags; if (flags != null) { if (flags.ViewAltBackColor != Color.Empty) { treeView.BackColor = flags.ViewAltBackColor; listView.BackColor = flags.ViewAltBackColor; propertyGrid.ViewBackColor = flags.ViewAltBackColor; } if (flags.ViewAltForeColor != Color.Empty) { treeView.ForeColor = flags.ViewAltForeColor; listView.ForeColor = flags.ViewAltForeColor; // Don't set to black (shows up as silver). if (flags.ViewAltForeColor != Color.Black) { propertyGrid.ViewForeColor = flags.ViewAltForeColor; } } if (flags.MainBackColor != Color.Empty) { _splitter.BackColor = flags.MainBackColor; _splitContainer.BackColor = flags.MainBackColor; } if (flags.ViewShowBorder == false) { treeView.BorderStyle = BorderStyle.None; listView.BorderStyle = BorderStyle.None; } } #endregion #region ActionState Handlers RegisterActionStateHandler( Constants.UI_TOOLBAR_VIEW_MODULES, ToolbarButtonState); RegisterActionStateHandler( Constants.UI_TOOLBAR_VIEW_NAMESPACES, ToolbarButtonState); if (_includeWorkspace) { RegisterActionStateHandler( Constants.UI_TOOLBAR_SHOW_WORKSPACE_ONLY, ToolbarButtonState); } RegisterActionStateHandler( Constants.UI_TOOLBAR_SHOW_NONPUBLIC, ToolbarButtonState); RegisterActionStateHandler( Constants.UI_TOOLBAR_SHOW_HIDDEN, ToolbarButtonState); RegisterActionStateHandler( Constants.UI_TOOLBAR_SHOW_INHERITED, ToolbarButtonState); RegisterActionStateHandler( Constants.UI_TOOLBAR_REFRESH_VIEW, ToolbarButtonState); RegisterActionStateHandler( Constants.UI_TOOLBAR_SHOW_PROPERTIES, ToolbarButtonState); _mainForm.ClientWindow.ActiveDocumentChanged += new EventHandler(_mainForm_ActiveDocumentChanged); FormClosed += new FormClosedEventHandler(ObjectBrowserForm_FormClosed); #endregion _referenceManager = ReferenceManager.GetInstance(); _modules = new Dictionary <string, ModuleData>(); LoadModules(); EnableModuleView(false); UpdateTreeView(); /* * Allow client applications to modify the form. */ ObjectBrowserFormProxy.GetInstance(). UpdateFormControls(Controls); }
public addDataForm() { InitializeComponent(); FormClosed += new FormClosedEventHandler(FormCloseEvent); }
public Form1() { InitializeComponent(); FormClosed += new FormClosedEventHandler(Form1_FormClosed); clients = new List<PipeClient>(); }
private void InitializeComponent() { components = new System.ComponentModel.Container(); var resources = new System.ComponentModel.ComponentResourceManager(typeof(FormCTSSOA)); ToolTip1 = new ToolTip(components); cboWind = new ComboBox(); _txtDriftAngle = new TextBox(); _txtDriftAngle.TextChanged += new EventHandler(txtDriftAngle_TextChanged); _txtDriftAngle.KeyPress += new KeyPressEventHandler(txtDriftAngle_KeyPress); _txtDriftAngle.Validating += new System.ComponentModel.CancelEventHandler(txtDriftAngle_Validating); _txtDriftAngle.Enter += new EventHandler(txtDriftAngle_Enter); _cmdPrint = new Button(); _cmdPrint.Click += new EventHandler(cmdPrint_Click); _txtDrift = new TextBox(); _txtDrift.TextChanged += new EventHandler(txtDrift_TextChanged); _txtDrift.KeyPress += new KeyPressEventHandler(txtDrift_KeyPress); _txtDrift.Validating += new System.ComponentModel.CancelEventHandler(txtDrift_Validating); _txtDrift.Enter += new EventHandler(txtDrift_Enter); _txtSet = new TextBox(); _txtSet.TextChanged += new EventHandler(txtSet_TextChanged); _txtSet.KeyPress += new KeyPressEventHandler(txtSet_KeyPress); _txtSet.Validating += new System.ComponentModel.CancelEventHandler(txtSet_Validating); _txtSet.Enter += new EventHandler(txtSet_Enter); _txtCS = new TextBox(); _txtCS.TextChanged += new EventHandler(txtCS_TextChanged); _txtCS.KeyPress += new KeyPressEventHandler(txtCS_KeyPress); _txtCS.Validating += new System.ComponentModel.CancelEventHandler(txtCS_Validating); _txtCS.Enter += new EventHandler(txtCS_Enter); _txtDC = new TextBox(); _txtDC.TextChanged += new EventHandler(txtDC_TextChanged); _txtDC.KeyPress += new KeyPressEventHandler(txtDC_KeyPress); _txtDC.Validating += new System.ComponentModel.CancelEventHandler(txtDC_Validating); _txtDC.Enter += new EventHandler(txtDC_Enter); Frame1 = new GroupBox(); _optCMGSMG = new RadioButton(); _optCMGSMG.CheckedChanged += new EventHandler(optCMGSMG_CheckedChanged); _optCTSSOA = new RadioButton(); _optCTSSOA.CheckedChanged += new EventHandler(optCTSSOA_CheckedChanged); Label15 = new Label(); _cmdClear = new Button(); _cmdClear.Click += new EventHandler(cmdClear_Click); _cmdCalculate = new Button(); _cmdCalculate.Click += new EventHandler(cmdCalculate_Click); Label14 = new Label(); Label1 = new Label(); Label13 = new Label(); Label10 = new Label(); Label9 = new Label(); Label8 = new Label(); Label12 = new Label(); Label11 = new Label(); lblST = new Label(); lblDCT = new Label(); Label7 = new Label(); Label6 = new Label(); Label5 = new Label(); Label4 = new Label(); Label3 = new Label(); Label2 = new Label(); _btnExit = new Button(); _btnExit.Click += new EventHandler(btnExit_Click); txtWindCurrent = new TextBox(); PictureBox1 = new PictureBox(); Frame1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)PictureBox1).BeginInit(); SuspendLayout(); // // cboWind // cboWind.BackColor = SystemColors.Window; cboWind.Cursor = Cursors.Default; cboWind.DropDownStyle = ComboBoxStyle.DropDownList; cboWind.Enabled = false; cboWind.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); cboWind.ForeColor = SystemColors.WindowText; cboWind.Items.AddRange(new object[] { "Port", "Starboard", "N", "NE", "E", "SE", "S", "SW", "W", "NW" }); cboWind.Location = new Point(408, 112); cboWind.Name = "cboWind"; cboWind.RightToLeft = RightToLeft.No; cboWind.Size = new Size(73, 22); cboWind.TabIndex = 7; ToolTip1.SetToolTip(cboWind, "If wind is nearly on the bow or stern, use Port or Starboard."); // // txtDriftAngle // _txtDriftAngle.AcceptsReturn = true; _txtDriftAngle.BackColor = SystemColors.Window; _txtDriftAngle.Cursor = Cursors.IBeam; _txtDriftAngle.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _txtDriftAngle.ForeColor = SystemColors.WindowText; _txtDriftAngle.Location = new Point(408, 88); _txtDriftAngle.MaxLength = 3; _txtDriftAngle.Name = "_txtDriftAngle"; _txtDriftAngle.RightToLeft = RightToLeft.No; _txtDriftAngle.Size = new Size(25, 20); _txtDriftAngle.TabIndex = 6; ToolTip1.SetToolTip(_txtDriftAngle, "Range 0 to 90"); // // cmdPrint // _cmdPrint.BackColor = SystemColors.Control; _cmdPrint.Cursor = Cursors.Default; _cmdPrint.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _cmdPrint.ForeColor = SystemColors.ControlText; _cmdPrint.Image = (Image)resources.GetObject("cmdPrint.Image"); _cmdPrint.Location = new Point(474, 2); _cmdPrint.Name = "_cmdPrint"; _cmdPrint.RightToLeft = RightToLeft.No; _cmdPrint.Size = new Size(21, 21); _cmdPrint.TabIndex = 10; _cmdPrint.TextAlign = ContentAlignment.BottomCenter; ToolTip1.SetToolTip(_cmdPrint, "Print window"); _cmdPrint.UseVisualStyleBackColor = false; // // txtDrift // _txtDrift.AcceptsReturn = true; _txtDrift.BackColor = SystemColors.Window; _txtDrift.Cursor = Cursors.IBeam; _txtDrift.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _txtDrift.ForeColor = SystemColors.WindowText; _txtDrift.Location = new Point(248, 112); _txtDrift.MaxLength = 4; _txtDrift.Name = "_txtDrift"; _txtDrift.RightToLeft = RightToLeft.No; _txtDrift.Size = new Size(41, 20); _txtDrift.TabIndex = 5; ToolTip1.SetToolTip(_txtDrift, "Range 0 to 99.9"); // // txtSet // _txtSet.AcceptsReturn = true; _txtSet.BackColor = SystemColors.Window; _txtSet.Cursor = Cursors.IBeam; _txtSet.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _txtSet.ForeColor = SystemColors.WindowText; _txtSet.Location = new Point(248, 88); _txtSet.MaxLength = 4; _txtSet.Name = "_txtSet"; _txtSet.RightToLeft = RightToLeft.No; _txtSet.Size = new Size(41, 20); _txtSet.TabIndex = 4; ToolTip1.SetToolTip(_txtSet, "Range 0 to 359"); // // txtCS // _txtCS.AcceptsReturn = true; _txtCS.BackColor = SystemColors.Window; _txtCS.Cursor = Cursors.IBeam; _txtCS.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _txtCS.ForeColor = SystemColors.WindowText; _txtCS.Location = new Point(104, 112); _txtCS.MaxLength = 4; _txtCS.Name = "_txtCS"; _txtCS.RightToLeft = RightToLeft.No; _txtCS.Size = new Size(33, 20); _txtCS.TabIndex = 3; ToolTip1.SetToolTip(_txtCS, "Range 0.1 to 99.9"); // // txtDC // _txtDC.AcceptsReturn = true; _txtDC.BackColor = SystemColors.Window; _txtDC.Cursor = Cursors.IBeam; _txtDC.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _txtDC.ForeColor = SystemColors.WindowText; _txtDC.Location = new Point(104, 88); _txtDC.MaxLength = 3; _txtDC.Name = "_txtDC"; _txtDC.RightToLeft = RightToLeft.No; _txtDC.Size = new Size(33, 20); _txtDC.TabIndex = 2; ToolTip1.SetToolTip(_txtDC, "Range 0 to 359"); // // Frame1 // Frame1.BackColor = SystemColors.Window; Frame1.Controls.Add(_optCMGSMG); Frame1.Controls.Add(_optCTSSOA); Frame1.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Frame1.ForeColor = SystemColors.ControlText; Frame1.Location = new Point(4, 0); Frame1.Name = "Frame1"; Frame1.Padding = new Padding(0); Frame1.RightToLeft = RightToLeft.No; Frame1.Size = new Size(371, 61); Frame1.TabIndex = 25; Frame1.TabStop = false; Frame1.Text = "Determine"; // // optCMGSMG // _optCMGSMG.BackColor = SystemColors.Window; _optCMGSMG.Cursor = Cursors.Default; _optCMGSMG.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _optCMGSMG.ForeColor = SystemColors.ControlText; _optCMGSMG.Location = new Point(65, 32); _optCMGSMG.Name = "_optCMGSMG"; _optCMGSMG.RightToLeft = RightToLeft.No; _optCMGSMG.Size = new Size(303, 25); _optCMGSMG.TabIndex = 1; _optCMGSMG.TabStop = true; _optCMGSMG.Text = "Course Made Good (CMG) and Speed Made Good (SMG)"; _optCMGSMG.UseVisualStyleBackColor = false; // // optCTSSOA // _optCTSSOA.BackColor = SystemColors.Window; _optCTSSOA.Checked = true; _optCTSSOA.Cursor = Cursors.Default; _optCTSSOA.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _optCTSSOA.ForeColor = SystemColors.ControlText; _optCTSSOA.Location = new Point(65, 8); _optCTSSOA.Name = "_optCTSSOA"; _optCTSSOA.RightToLeft = RightToLeft.No; _optCTSSOA.Size = new Size(303, 25); _optCTSSOA.TabIndex = 0; _optCTSSOA.TabStop = true; _optCTSSOA.Text = "Course to Steer (CTS) and Speed of Advance (SOA)"; _optCTSSOA.UseVisualStyleBackColor = false; // // Label15 // Label15.BackColor = SystemColors.Window; Label15.Cursor = Cursors.Default; Label15.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label15.ForeColor = SystemColors.ControlText; Label15.Location = new Point(379, 7); Label15.Name = "Label15"; Label15.RightToLeft = RightToLeft.No; Label15.Size = new Size(93, 53); Label15.TabIndex = 28; Label15.Text = "Adjusting " + '\r' + '\n' + "for current " + '\r' + '\n' + "and/or leeway"; Label15.TextAlign = ContentAlignment.MiddleCenter; // // cmdClear // _cmdClear.BackColor = Color.FromArgb(Conversions.ToInteger(Conversions.ToByte(192)), Conversions.ToInteger(Conversions.ToByte(255)), Conversions.ToInteger(Conversions.ToByte(255))); _cmdClear.Cursor = Cursors.Default; _cmdClear.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _cmdClear.ForeColor = SystemColors.ControlText; _cmdClear.Location = new Point(5, 152); _cmdClear.Name = "_cmdClear"; _cmdClear.RightToLeft = RightToLeft.No; _cmdClear.Size = new Size(90, 25); _cmdClear.TabIndex = 9; _cmdClear.Text = "Clear"; _cmdClear.UseVisualStyleBackColor = false; // // cmdCalculate // _cmdCalculate.BackColor = Color.Blue; _cmdCalculate.Cursor = Cursors.Default; _cmdCalculate.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _cmdCalculate.ForeColor = Color.White; _cmdCalculate.Location = new Point(405, 152); _cmdCalculate.Name = "_cmdCalculate"; _cmdCalculate.RightToLeft = RightToLeft.No; _cmdCalculate.Size = new Size(90, 25); _cmdCalculate.TabIndex = 8; _cmdCalculate.Text = "Calculate"; _cmdCalculate.UseVisualStyleBackColor = false; // // Label14 // Label14.BackColor = SystemColors.Window; Label14.Cursor = Cursors.Default; Label14.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label14.ForeColor = SystemColors.ControlText; Label14.Location = new Point(56, 64); Label14.Name = "Label14"; Label14.RightToLeft = RightToLeft.No; Label14.Size = new Size(80, 16); Label14.TabIndex = 27; Label14.Text = "Actual Values"; Label14.Visible = false; // // Label1 // Label1.BackColor = SystemColors.Window; Label1.Cursor = Cursors.Default; Label1.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label1.ForeColor = SystemColors.ControlText; Label1.Location = new Point(16, 88); Label1.Name = "Label1"; Label1.RightToLeft = RightToLeft.No; Label1.Size = new Size(48, 20); Label1.TabIndex = 26; Label1.Text = "Heading"; Label1.Visible = false; // // Label13 // Label13.BackColor = SystemColors.Window; Label13.Cursor = Cursors.Default; Label13.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label13.ForeColor = SystemColors.ControlText; Label13.Location = new Point(344, 112); Label13.Name = "Label13"; Label13.RightToLeft = RightToLeft.No; Label13.Size = new Size(57, 17); Label13.TabIndex = 24; Label13.Text = "Wind from"; // // Label10 // Label10.BackColor = SystemColors.Window; Label10.Cursor = Cursors.Default; Label10.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label10.ForeColor = SystemColors.ControlText; Label10.Location = new Point(344, 88); Label10.Name = "Label10"; Label10.RightToLeft = RightToLeft.No; Label10.Size = new Size(57, 17); Label10.TabIndex = 23; Label10.Text = "Drift Angle"; // // Label9 // Label9.BackColor = SystemColors.Window; Label9.Cursor = Cursors.Default; Label9.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label9.ForeColor = SystemColors.ControlText; Label9.Location = new Point(440, 88); Label9.Name = "Label9"; Label9.RightToLeft = RightToLeft.No; Label9.Size = new Size(25, 17); Label9.TabIndex = 22; Label9.Text = "°"; // // Label8 // Label8.BackColor = SystemColors.Window; Label8.Cursor = Cursors.Default; Label8.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label8.ForeColor = SystemColors.ControlText; Label8.Location = new Point(392, 64); Label8.Name = "Label8"; Label8.RightToLeft = RightToLeft.No; Label8.Size = new Size(50, 16); Label8.TabIndex = 21; Label8.Text = "Leeway"; // // Label12 // Label12.BackColor = SystemColors.Window; Label12.Cursor = Cursors.Default; Label12.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label12.ForeColor = SystemColors.ControlText; Label12.Location = new Point(296, 112); Label12.Name = "Label12"; Label12.RightToLeft = RightToLeft.No; Label12.Size = new Size(33, 17); Label12.TabIndex = 20; Label12.Text = "knots"; // // Label11 // Label11.BackColor = SystemColors.Window; Label11.Cursor = Cursors.Default; Label11.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label11.ForeColor = SystemColors.ControlText; Label11.Location = new Point(144, 112); Label11.Name = "Label11"; Label11.RightToLeft = RightToLeft.No; Label11.Size = new Size(33, 17); Label11.TabIndex = 19; Label11.Text = "knots"; // // lblST // lblST.BackColor = SystemColors.Window; lblST.Cursor = Cursors.Default; lblST.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblST.ForeColor = SystemColors.ControlText; lblST.Location = new Point(296, 88); lblST.Name = "lblST"; lblST.RightToLeft = RightToLeft.No; lblST.Size = new Size(25, 17); lblST.TabIndex = 18; lblST.Text = "°"; // // lblDCT // lblDCT.BackColor = SystemColors.Window; lblDCT.Cursor = Cursors.Default; lblDCT.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); lblDCT.ForeColor = SystemColors.ControlText; lblDCT.Location = new Point(144, 88); lblDCT.Name = "lblDCT"; lblDCT.RightToLeft = RightToLeft.No; lblDCT.Size = new Size(25, 17); lblDCT.TabIndex = 17; lblDCT.Text = "°"; // // Label7 // Label7.BackColor = SystemColors.Window; Label7.Cursor = Cursors.Default; Label7.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label7.ForeColor = SystemColors.ControlText; Label7.Location = new Point(203, 112); Label7.Name = "Label7"; Label7.RightToLeft = RightToLeft.No; Label7.Size = new Size(41, 17); Label7.TabIndex = 16; Label7.Text = "Avg. Drift"; // // Label6 // Label6.BackColor = SystemColors.Window; Label6.Cursor = Cursors.Default; Label6.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label6.ForeColor = SystemColors.ControlText; Label6.Location = new Point(204, 89); Label6.Name = "Label6"; Label6.RightToLeft = RightToLeft.No; Label6.Size = new Size(41, 17); Label6.TabIndex = 15; Label6.Text = "Set"; // // Label5 // Label5.BackColor = SystemColors.Window; Label5.Cursor = Cursors.Default; Label5.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label5.ForeColor = SystemColors.ControlText; Label5.Location = new Point(16, 112); Label5.Name = "Label5"; Label5.RightToLeft = RightToLeft.No; Label5.Size = new Size(73, 17); Label5.TabIndex = 14; Label5.Text = "Cruising Speed"; // // Label4 // Label4.BackColor = SystemColors.Window; Label4.Cursor = Cursors.Default; Label4.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label4.ForeColor = SystemColors.ControlText; Label4.Location = new Point(16, 88); Label4.Name = "Label4"; Label4.RightToLeft = RightToLeft.No; Label4.Size = new Size(81, 17); Label4.TabIndex = 13; Label4.Text = "Intended Course"; // // Label3 // Label3.BackColor = SystemColors.Window; Label3.Cursor = Cursors.Default; Label3.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label3.ForeColor = SystemColors.ControlText; Label3.Location = new Point(240, 64); Label3.Name = "Label3"; Label3.RightToLeft = RightToLeft.No; Label3.Size = new Size(47, 16); Label3.TabIndex = 12; Label3.Text = "Current"; // // Label2 // Label2.BackColor = SystemColors.Window; Label2.Cursor = Cursors.Default; Label2.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); Label2.ForeColor = SystemColors.ControlText; Label2.Location = new Point(56, 64); Label2.Name = "Label2"; Label2.RightToLeft = RightToLeft.No; Label2.Size = new Size(85, 16); Label2.TabIndex = 11; Label2.Text = "Intended Values"; // // btnExit // _btnExit.BackColor = Color.Red; _btnExit.Cursor = Cursors.Default; _btnExit.Font = new Font("Arial", 8.0f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); _btnExit.ForeColor = SystemColors.ControlLightLight; _btnExit.Location = new Point(405, 302); _btnExit.Name = "_btnExit"; _btnExit.RightToLeft = RightToLeft.No; _btnExit.Size = new Size(90, 25); _btnExit.TabIndex = 29; _btnExit.Text = "Exit"; _btnExit.UseVisualStyleBackColor = false; // // txtWindCurrent // txtWindCurrent.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); txtWindCurrent.Location = new Point(3, 183); txtWindCurrent.Multiline = true; txtWindCurrent.Name = "txtWindCurrent"; txtWindCurrent.ReadOnly = true; txtWindCurrent.ScrollBars = ScrollBars.Vertical; txtWindCurrent.Size = new Size(491, 111); txtWindCurrent.TabIndex = 30; txtWindCurrent.TextAlign = HorizontalAlignment.Center; // // PictureBox1 // PictureBox1.Image = My.Resources.Resources.ABC_white; PictureBox1.Location = new Point(85, 302); PictureBox1.Name = "PictureBox1"; PictureBox1.Size = new Size(316, 50); PictureBox1.SizeMode = PictureBoxSizeMode.Zoom; PictureBox1.TabIndex = 102; PictureBox1.TabStop = false; // // FormCTSSOA // AutoScaleDimensions = new SizeF(6.0f, 13.0f); AutoScaleMode = AutoScaleMode.Font; BackColor = SystemColors.Window; ClientSize = new Size(498, 357); Controls.Add(PictureBox1); Controls.Add(txtWindCurrent); Controls.Add(_btnExit); Controls.Add(Frame1); Controls.Add(_cmdClear); Controls.Add(cboWind); Controls.Add(_txtDriftAngle); Controls.Add(_cmdPrint); Controls.Add(_cmdCalculate); Controls.Add(_txtDrift); Controls.Add(_txtSet); Controls.Add(_txtCS); Controls.Add(_txtDC); Controls.Add(Label14); Controls.Add(Label1); Controls.Add(Label13); Controls.Add(Label10); Controls.Add(Label9); Controls.Add(Label8); Controls.Add(Label12); Controls.Add(Label11); Controls.Add(lblST); Controls.Add(lblDCT); Controls.Add(Label7); Controls.Add(Label6); Controls.Add(Label5); Controls.Add(Label4); Controls.Add(Label3); Controls.Add(Label2); Controls.Add(Label15); Cursor = Cursors.Default; Font = new Font("Tahoma", 8.25f, FontStyle.Regular, GraphicsUnit.Point, Conversions.ToByte(0)); FormBorderStyle = FormBorderStyle.FixedSingle; Icon = (Icon)resources.GetObject("$this.Icon"); Location = new Point(454, 333); MaximizeBox = false; Name = "FormCTSSOA"; RightToLeft = RightToLeft.No; StartPosition = FormStartPosition.CenterScreen; Text = "Wind & Current"; Frame1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)PictureBox1).EndInit(); FormClosed += new FormClosedEventHandler(FormCTSSOA_FormClosed); ResumeLayout(false); PerformLayout(); }
public void SetSources(IVideoSource videoSource, VideoSourcePlayer.NewFrameHandler NFH, FormClosedEventHandler FCEH) { this.videoSourcePlayer.VideoSource = videoSource; this.videoSourcePlayer.NewFrame += NFH; this.FormClosed += FCEH; }
public frmAdvisor(frmMain frmMain_Parent, Guid advisorId, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); mf_parent = frmMain_Parent; LoadManagementRolesCbo(); this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; this.MouseWheel += new MouseEventHandler(pnlSummary_MouseWheel); Application.AddMessageFilter(this); controlsToMove.Add(this.pnlFormHeader); controlsToMove.Add(this.pnlHeader); controlsToMove.Add(this.lblHeader); FormClosed += Close; tabMain.SelectedIndex = 0; AdvisorId = advisorId; UserId = frmMain_Parent.CurrentUser.UserId; try { UpdateResearchTypeCbo(); LoadManagement(); foreach (DataRow dr in ISP.Business.Entities.Advisors.GetAdvisorDetails(advisorId).Rows) { decimal fixedIncome = -1; decimal equity = -1; decimal other = -1; if (String.IsNullOrEmpty(dr["AssetsFixedIncome"].ToString()) == false) { Decimal.TryParse(dr["AssetsFixedIncome"].ToString(), out fixedIncome); } if (String.IsNullOrEmpty(dr["AssetsEquity"].ToString()) == false) { Decimal.TryParse(dr["AssetsEquity"].ToString(), out equity); } if (String.IsNullOrEmpty(dr["AssetsOther"].ToString()) == false) { Decimal.TryParse(dr["AssetsOther"].ToString(), out other); } lblHeader.Text = dr["Name"].ToString(); txtName.Text = dr["Name"].ToString(); Text = dr["Name"].ToString(); label1.Text = "Investment Services Program - " + dr["Name"].ToString(); txtFounded.Text = dr["CompanyFounded"].ToString(); txtPhilosophies.Text = dr["InvestmentPhilosophy"].ToString(); txtConflicts.Text = dr["InterestConflicts"].ToString(); txtRights.Text = dr["ShareHolderRights"].ToString(); txtCompensation.Text = dr["CompensationStructure"].ToString(); cboProfessional.Text = dr["IsCultureProfessional"].ToString(); cboTransparent.Text = dr["IsCultureTransparent"].ToString(); cboMoral.Text = dr["IsCultureMoralStandardsHigh"].ToString(); cboProprietary.Text = dr["IsResearchProprietary"].ToString(); cboQuantitative.Text = dr["IsResearchQuantitative"].ToString(); cboFundamental.Text = dr["IsResearchFundamental"].ToString(); cboResearchType.Text = dr["ResearchTypeIdName"].ToString(); txtSize.Text = dr["StaffSize"].ToString(); txtCredential.Text = dr["StaffCredentials"].ToString(); txtExperience.Text = dr["StaffExperience"].ToString(); txtAnalystRatio.Text = dr["AnalystRatio"].ToString(); if (fixedIncome != -1) { txtFixed.Text = fixedIncome.ToString("C"); } if (equity != -1) { txtEquity.Text = equity.ToString("C"); } if (other != -1) { txtOther.Text = other.ToString("C"); } } } catch (Exception ex) { frmError _frmError = new Presentation.Forms.frmError(frmMain_Parent, ex); } dgvFunds.DataSource = ISP.Business.Entities.Fund.GetAssociatedFromAdvisor(advisorId); dgvFunds.Columns[0].Visible = false; dgvMgrs.DataSource = ISP.Business.Entities.Manager.GetAssociatedFromAdvisor(advisorId); dgvMgrs.Columns[0].Visible = false; this.Show(); ss.Close(); }
/** * Initialise View and start updater Thread */ public CameraView(Model model, bool test) { outputEnabled = test; testMode = test; this.model = model; model.View = this; session = PXCMSession.CreateInstance(); if (session == null) // Something went wrong, session could not be initialised { Application.Exit(); return; } iv = session.QueryVersion(); String versionString = "v" + iv.major + "." + iv.minor; Text = versionString; pb = new PictureBox(); FormClosed += new FormClosedEventHandler(Quit); if (testMode) { // Set size pb.Bounds = new Rectangle(0, 0, model.Width, model.Height); // init UI this.Bounds = new Rectangle(0, 0, model.Width, model.Height + 180); this.Controls.Add(pb); enableOutput.Bounds = new Rectangle(20, 1080, 500, 30); enableOutput.Text = "Output"; enableOutput.Click += new System.EventHandler(delegate { outputEnabled = !outputEnabled; }); AddComponent(enableOutput); enableImage.Bounds = new Rectangle(20, 1110, 500, 30); enableImage.Text = "NoImg"; enableImage.Click += new System.EventHandler(delegate { imageEnabled = !imageEnabled; }); AddComponent(enableImage); } else { windowBitmap = new Bitmap(Bitmap.FromFile("C:\\Users\\prouser\\Source\\Repos\\RealSense\\Images\\window.png")); smallWindowBitmap = new Bitmap(Bitmap.FromFile("C:\\Users\\prouser\\Source\\Repos\\RealSense\\Images\\small_window.png")); warningBitmap = new Bitmap(Bitmap.FromFile("C:\\Users\\prouser\\Source\\Repos\\RealSense\\Images\\warning.png")); this.Bounds = Screen.PrimaryScreen.Bounds; FormBorderStyle = FormBorderStyle.None; WindowState = FormWindowState.Maximized; pb.Bounds = new Rectangle(this.Bounds.Width / 2 - model.Width / 2, this.Bounds.Height / 2 - model.Height / 2, 1920, 1080); this.Controls.Add(pb); this.BackColor = Color.Black; KeyDown += OnKeyDown; } this.Show(); // Start Updater Thread updaterThread = new Thread(this.update); updaterThread.Start(); }
/// <summary> /// /// </summary> /// <param name="mf"></param> /// <param name="accountId"></param> /// <param name="Close"></param> public frmPlanAdvisor(frmMain mf, VSP.Business.Entities.PlanAdvisor planAdvisor, FormClosedEventHandler Close = null) { frmSplashScreen ss = new frmSplashScreen(); ss.Show(); Application.DoEvents(); InitializeComponent(); frmMain_Parent = mf; this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size; Application.AddMessageFilter(this); controlsToMove.Add(this.pnlSummaryTabHeader); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); FormClosed += Close; CurrentPlanAdvisor = planAdvisor; cboFeeViews.SelectedIndex = 0; PreloadCbos(); if (CurrentPlanAdvisor.PlanId != null) { Plan plan = new Plan(CurrentPlanAdvisor.PlanId); cboPlan.Text = plan.Name + " - " + plan.Description; } if (CurrentPlanAdvisor.AdvisorId != null) { DataIntegrationHub.Business.Entities.PlanAdvisor advisor = new DataIntegrationHub.Business.Entities.PlanAdvisor(CurrentPlanAdvisor.AdvisorId); cboAdvisor.Text = advisor.Name; } if (CurrentPlanAdvisor.DateAdded != null) { txtDateAdded.Text = ((DateTime)CurrentPlanAdvisor.DateAdded).ToString("MM/dd/yyyy"); } if (CurrentPlanAdvisor.DateRemoved != null) { txtDateRemoved.Text = ((DateTime)CurrentPlanAdvisor.DateRemoved).ToString("MM/dd/yyyy"); } cboFeeViews.SelectedIndex = 0; CurrentTabLabel = label46; // Summary tab label highlightSelectedTabLabel(CurrentTabLabel); ss.Close(); this.Show(); }