public void setDROIDVersion(String value) { if (!value.Equals(AnalysisController.getFFITVersion())) { MessageDisplay.GeneralWarning("This file was generated with DROID version " + value + ". Current version is " + AnalysisController.getFFITVersion()); } }
AnalysisController GetAnalysisController() { AnalysisController ac = new AnalysisController(mockLogger.Object, mockStateAssignment.Object, mockState.Object, mockAnalysis.Object, mockMessages.Object, mockResults.Object); ac.ControllerContext = new ControllerContext(mockContext.Object, new RouteData(), ac); return(ac); }
public void Step3_Submit_Returns_View() { // Arrange AnalysisController analysis = GetAnalysisController(); // Act RedirectToRouteResult action = (RedirectToRouteResult)analysis.Step3("View Results", analysis.ControllerContext.HttpContext.User, 1); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "Step4"); Assert.AreEqual(action.RouteValues["controller"], "Analysis"); action = (RedirectToRouteResult)analysis.Step3("View Results", analysis.ControllerContext.HttpContext.User, 2); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "PermissionDenied"); Assert.AreEqual(action.RouteValues["controller"], "Error"); action = (RedirectToRouteResult)analysis.Step3("Back", analysis.ControllerContext.HttpContext.User, 2); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "Step2b"); Assert.AreEqual(action.RouteValues["controller"], "Analysis"); }
private AnalysisController GetController(ApplicationDbContext context, bool isAdmin = true, string userId = mockUserId) { var claims = new List <Claim> () { new Claim(ClaimTypes.NameIdentifier, userId) }; if (isAdmin) { claims.Add(new Claim(ClaimTypes.Role, "Admin")); } var user = new ClaimsPrincipal(new ClaimsIdentity(claims.ToArray())); var controller = new AnalysisController(context) { ControllerContext = new Microsoft.AspNetCore.Mvc.ControllerContext() { HttpContext = new DefaultHttpContext() { User = user } } }; return(controller); }
/** Set the date of the last signature file download * @param theDate the date to use entered as a string */ public void setDateLastDownload(string theDate) { //java.text.DateFormat df; try { this.myLastDownloadDate = AnalysisController.parseXMLDate(theDate); } catch (InvalidCastException) //ParseException pe) { try { //df = java.text.DateFormat.getDateTimeInstance(java.text.DateFormat.MEDIUM, java.text.DateFormat.MEDIUM); //this.myLastDownloadDate = df.parse(theDate); this.myLastDownloadDate = Convert.ToDateTime(theDate); } catch (InvalidCastException) // ParseException e1) { try { //df = java.text.DateFormat.getDateTimeInstance(java.text.DateFormat.FULL, java.text.DateFormat.FULL); this.myLastDownloadDate = Convert.ToDateTime(theDate); //df.parse(theDate); } catch (InvalidCastException) //ParseException e2) { this.myLastDownloadDate = DateTime.MinValue; } } } }
public void Step2_Submit_Returns_View() { // Arrange AnalysisController analysis = GetAnalysisController(); Step2Model model = new Step2Model { StudyName = "Name", StudyDescription = "Desc" }; // Act RedirectToRouteResult action = (RedirectToRouteResult)analysis.Step2("Submit", model, analysis.ControllerContext.HttpContext.User, 1); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "Step2b"); Assert.AreEqual(action.RouteValues["controller"], "Analysis"); action = (RedirectToRouteResult)analysis.Step2("Submit", model, analysis.ControllerContext.HttpContext.User, 2); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "PermissionDenied"); Assert.AreEqual(action.RouteValues["controller"], "Error"); action = (RedirectToRouteResult)analysis.Step2("Back", model, analysis.ControllerContext.HttpContext.User, 2); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "Step1b"); Assert.AreEqual(action.RouteValues["controller"], "Analysis"); }
public AnalysisForm(Sample currentSample, int sampleRate) { InitializeComponent(); this.currentSample = currentSample; this.sampleRate = sampleRate; acontroller = new AnalysisController(currentSample, sampleRate); }
public void Step1_Returns_View() { // Arrange AnalysisController analysis = GetAnalysisController(); // Act ActionResult view = analysis.Step1(analysis.ControllerContext.HttpContext.User); // Assert Assert.IsInstanceOf(typeof(ViewResult), view); }
public static void EndGame() { endTime = DateTime.Now.Minute * 60 + DateTime.Now.Second; var i = endTime - startTime; Dictionary <string, string> dic = new Dictionary <string, string>(); dic.Add("playtime", i.ToString()); AnalysisController.TraceEvent(EventName.gameEnd, dic); }
public void Step1B_Submit_Returns_View() { // Arrange AnalysisController analysis = GetAnalysisController(); var st1 = new State { FullName = "New Mexico", Id = 1, StateAbbrev = "NM", StateId = 1 }; var list = new System.Collections.Generic.List <State>() { st1 }; var uploadFile = GetMockUploadFile("UploadTestFile"); Step1BModel model = new Step1BModel { ParticipantFile = "C:\fakedir\fake\fakefile.csv", ParticipantText = null }; // Act var action = (RedirectToRouteResult)analysis.Step1b("Submit", model, uploadFile, analysis.ControllerContext.HttpContext.User, 1); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "Step2"); Assert.AreEqual(action.RouteValues["controller"], "Analysis"); action = (RedirectToRouteResult)analysis.Step1b("Submit", model, uploadFile, analysis.ControllerContext.HttpContext.User, 2); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "PermissionDenied"); Assert.AreEqual(action.RouteValues["controller"], "Error"); var result = (RedirectToRouteResult)analysis.Step1b("Back", model, uploadFile, analysis.ControllerContext.HttpContext.User, 1); // Assert Assert.AreEqual(result.RouteValues["action"], "Step1"); Assert.AreEqual(result.RouteValues["controller"], "Analysis"); Assert.AreEqual(result.RouteValues["id"], 1); model.ParticipantFile = null; result = (RedirectToRouteResult)analysis.Step1b("Submit", model, null, analysis.ControllerContext.HttpContext.User, 1); // Assert Assert.AreEqual(result.RouteValues["action"], "Step1b"); Assert.AreEqual(result.RouteValues["controller"], "Analysis"); Assert.AreEqual(result.RouteValues["id"], 1); }
public void ValidateTreatmentGroupFile_returns_true() { // Arrange AnalysisController analysis = GetAnalysisController(); var userAnalysis = new Analysis(); // Act // Assert Assert.IsFalse(analysis.ValidateTreatmentGroupFile(userAnalysis)); userAnalysis.IdentifierFile = "C:\fakedir\fakefile.xlsx"; Assert.IsTrue(analysis.ValidateTreatmentGroupFile(userAnalysis)); }
public void Start(AnalysisConfig config) { // Set the messages Messages.Clear(); GalleryImages.Clear(); IsAnalysisRunning = true; Reporter.Config = config; m_configuration = config; Controller = new AnalysisController(); Controller.AnalysisComplete += Controller_AnalysisComplete; Controller.AnalysisError += Controller_AnalysisError; Controller.AnalysisCancelled += Controller_AnalysisCancelled; Controller.AnalysisStarted += ControllerOnAnalysisStarted; // Start the analysis. Controller.StartMultiAlignGui(config, this); }
/// <summary> /// /// </summary> /// <param name="args"></param> static int Main(string[] args) { var handle = System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle; SetConsoleMode(handle, ENABLE_EXTENDED_FLAGS); try { CommandLineProcessor.ProcessCommandLineArguments(args, m_config); var controller = new AnalysisController(); var result = controller.StartMultiAlign(m_config, m_reportCreator); if (result != 0) { Logger.PrintMessage(""); Logger.PrintMessage("ANALYSIS FAILED"); } else { Logger.PrintMessage(""); Logger.PrintMessage("ANALYSIS SUCCESS"); } return(result); } catch (Exception ex) { Logger.PrintMessage("Unhandled Error: " + ex.Message); var innerEx = ex.InnerException; while (innerEx != null) { Logger.PrintMessage("Inner Exception: " + innerEx.Message); innerEx = innerEx.InnerException; } Logger.PrintMessage("Stack: " + ex.StackTrace); Logger.PrintMessage(""); Logger.PrintMessage("ANALYSIS FAILED"); return(1); } }
public PatientsTable( Size tableSize, Point tableLocation, List <Models.Patient> patients, AnalysisController controller ) { // Init size; location; data source this.tableLocation = tableLocation; this.tableSize = tableSize; this.patients = patients; this.controller = controller; // Init table Table = new DataTable(); // Init datagrid DataGrid = new DataGridView(); DataGrid.ReadOnly = true; DataGrid.AllowUserToAddRows = false; DataGrid.Size = this.tableSize; DataGrid.Location = this.tableLocation; DataGrid.RowTemplate.Height = 40; DataGrid.ColumnHeadersHeight = 40; DataGrid.BackgroundColor = Colors.ALTO; DataGrid.ColumnCount = 5; DataGrid.Columns[0].Name = "ID"; DataGrid.Columns[1].Name = "Emri"; DataGrid.Columns[2].Name = "Mbiemri"; DataGrid.Columns[3].Name = "Datëlindja"; DataGrid.Columns[4].Name = "Gjinia"; DataGrid.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; DataGrid.Columns[2].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; DataGrid.ColumnHeadersDefaultCellStyle.Font = new Font(Fonts.primary, 12, FontStyle.Bold); DataGrid.Font = new Font(Fonts.primary, 12, FontStyle.Regular); DataGrid.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders; DataGrid.MultiSelect = false; DataGrid.SelectionChanged += new EventHandler(onSelectionChanged); }
public void ColorSmells() { addIn.bbTransformations.clearTransformationsRibbon(addIn); SpreadsheetInfo.SetLicense("E7OS-D3IG-PM8L-A03O"); if (!addIn.Application.ActiveWorkbook.Saved) { addIn.Application.Dialogs[Microsoft.Office.Interop.Excel.XlBuiltInDialog.xlDialogSaveAs].Show(); } if (!addIn.Application.ActiveWorkbook.Saved) { MessageBox.Show("The workbook must be saved before analysis. Aborting."); return; } controller = new AnalysisController { Worker = new BackgroundWorker { WorkerReportsProgress = true }, // Seems like option has been removed by fecf71ad4d72daf5ad7f843a95ee00e07de6a25b and doesn't seem to have a replacement, maybe Preprocessors? //AnalysisMaxRows = 10000, Filename = addIn.Application.ActiveWorkbook.FullName }; // Createriskmaps option was removed by 025a29a1b845d41850a0e4fd3ae2271d62933e55 and no direct replacement in same commmit controller.RunAnalysis(); if (!controller.Spreadsheet.AnalysisSucceeded) { throw new Exception(controller.Spreadsheet.ErrorMessage); } ColorSmellsOfType(""); LoadSmellTypesSelect(); }
public void Step1_Submit_Returns_View() { AnalysisController analysis = GetAnalysisController(); var st1 = new State { FullName = "New Mexico", Id = 1, StateAbbrev = "NM", StateId = 1 }; var list = new System.Collections.Generic.List <State>() { st1 }; Step1Model model = new Step1Model { HasSchoolID = false, HasDistrictID = false, HasStateID = true, RadioStates = list.ConvertAll( i => new CheckboxItem { Label = "New Mexico", Value = "NM", Checked = false }), State = "New Mexico" }; // Act var action = (RedirectToRouteResult)analysis.Step1("Submit", model, analysis.ControllerContext.HttpContext.User, 1); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); //Assert.AreEqual(action.RouteValues["action"], "Step1b"); //Assert.AreEqual(action.RouteValues["controller"], "Analysis"); var result = (RedirectToRouteResult)analysis.Step1("Back", model, analysis.ControllerContext.HttpContext.User, 1); // Assert //Assert.AreEqual(result.RouteValues["action"], "Index"); //Assert.AreEqual(result.RouteValues["controller"], "Home"); }
/// <inheritdoc /> /// <summary> /// </summary> /// <param name="form"></param> public AnalysisForm(Form form) { InitializeComponent(); _form = form; Controller = new AnalysisController(); }
public void Step2b_Submit_Returns_View() { // Arrange AnalysisController analysis = GetAnalysisController(); Step2BModel model = new Step2BModel { AnalysisDescription = "Desc", AnalysisName = "Name", GradeLevels = new System.Collections.Generic.List <CheckboxItem>() { new CheckboxItem { Label = "k", Value = "k", Checked = false }, new CheckboxItem { Label = "1", Value = "1", Checked = false }, new CheckboxItem { Label = "2", Value = "2", Checked = false }, new CheckboxItem { Label = "3", Value = "3", Checked = false }, new CheckboxItem { Label = "4", Value = "4", Checked = false }, new CheckboxItem { Label = "5", Value = "5", Checked = false }, new CheckboxItem { Label = "6", Value = "6", Checked = false }, new CheckboxItem { Label = "7", Value = "7", Checked = false }, new CheckboxItem { Label = "8", Value = "8", Checked = false }, new CheckboxItem { Label = "9", Value = "9", Checked = true }, new CheckboxItem { Label = "10", Value = "10", Checked = true }, new CheckboxItem { Label = "11", Value = "11", Checked = true }, new CheckboxItem { Label = "12", Value = "12", Checked = true } }, //InterventionAreas = new System.Collections.Generic.List<CheckboxItem> { new CheckboxItem { Label = "english", Value = "english", Checked = true }, new CheckboxItem { Label = "math", Value = "math", Checked = false }, new CheckboxItem { Label = "grad", Value = "grad", Checked = false }, new CheckboxItem { Label = "hs", Value = "hs", Checked = false }, new CheckboxItem { Label = "college", Value = "college", Checked = false }, new CheckboxItem { Label = "other", Value = "other", Checked = false } }, InterventionStartDate = (DateTime)SqlDateTime.MinValue, InterventionEndDate = (DateTime)SqlDateTime.MinValue, OutcomeMeasures = new System.Collections.Generic.List <CheckboxItem> { new CheckboxItem { Label = "english", Value = "english", Checked = true }, new CheckboxItem { Label = "math", Value = "math", Checked = false }, new CheckboxItem { Label = "grad", Value = "grad", Checked = false }, new CheckboxItem { Label = "hs", Value = "hs", Checked = false }, new CheckboxItem { Label = "college", Value = "college", Checked = false }, new CheckboxItem { Label = "other", Value = "other", Checked = false } }, SubgroupAnalyses = new System.Collections.Generic.List <CheckboxItem> { new CheckboxItem { Label = "gender", Value = "gender", Checked = true }, new CheckboxItem { Label = "race", Value = "race", Checked = false }, new CheckboxItem { Label = "ELL", Value = "ELL", Checked = false }, new CheckboxItem { Label = "ED", Value = "ED", Checked = false }, new CheckboxItem { Label = "disabilities", Value = "disabilities", Checked = false } } }; // Act RedirectToRouteResult action = (RedirectToRouteResult)analysis.Step2b("Submit", model, analysis.ControllerContext.HttpContext.User, 1); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "Step3"); Assert.AreEqual(action.RouteValues["controller"], "Analysis"); action = (RedirectToRouteResult)analysis.Step2b("Submit", model, analysis.ControllerContext.HttpContext.User, 2); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "PermissionDenied"); Assert.AreEqual(action.RouteValues["controller"], "Error"); action = (RedirectToRouteResult)analysis.Step2b("Back", model, analysis.ControllerContext.HttpContext.User, 2); // Assert Assert.IsInstanceOf(typeof(ActionResult), action); Assert.AreEqual(action.RouteValues["action"], "Step2"); Assert.AreEqual(action.RouteValues["controller"], "Analysis"); }
IEnumerator Delay() { yield return(new WaitForSeconds(4f)); #if ADV2 AnalysisController.AfStatus = CrossAndroid.GetAF(); #else //AdController.ShowGameStartInterstitial(PlayerData.CashCount >= 0.01f); CrossIos.Instance.GetAF(0); #endif if (isNotCallAF.Value) { if (GoldData.giftNum.Value <= 0f) { if (AnalysisController.IsNonOrganic) { AnalysisController.TraceEvent(EventName.luck_ready + "_4"); isNotCallAF.Value = false; yield break; } } yield return(new WaitForSeconds(6f)); //6+4 if (GoldData.giftNum.Value <= 0f) { if (AnalysisController.IsNonOrganic) { AnalysisController.TraceEvent(EventName.luck_ready + "_10"); isNotCallAF.Value = false; yield break; } } yield return(new WaitForSeconds(10f)); //10+6+4 if (GoldData.giftNum.Value <= 0f) { if (AnalysisController.IsNonOrganic) { AnalysisController.TraceEvent(EventName.luck_ready + "_20"); isNotCallAF.Value = false; yield break; } } yield return(new WaitForSeconds(10f)); //10+10+6+4 if (GoldData.giftNum.Value <= 0f) { if (AnalysisController.IsNonOrganic) { AnalysisController.TraceEvent(EventName.luck_ready + "_30"); isNotCallAF.Value = false; yield break; } } yield return(new WaitForSeconds(30f)); //30+10+10+6+4 if (GoldData.giftNum.Value <= 0f) { if (AnalysisController.IsNonOrganic) { AnalysisController.TraceEvent(EventName.luck_ready + "_60"); isNotCallAF.Value = false; yield break; } } yield return(new WaitForSeconds(60f)); //60+30+10+10+6+4 if (GoldData.giftNum.Value <= 0f) { if (AnalysisController.IsNonOrganic) { AnalysisController.TraceEvent(EventName.luck_ready + "_120"); isNotCallAF.Value = false; yield break; } } } else { if (GoldData.giftNum.Value >= 0.1f) { if (!AnalysisController.IsNonOrganic) { AnalysisController.TraceEvent(EventName.luck_miss); } } } yield break; }
public AddAnalysisForm(AnalysisController controller) { InitializeComponent(); this.controller = controller; }
public AnalysisNurse(Panel previousPanel) { // Dimensions tableWidth = (int)(Dimensions.PANEL_WIDTH * 0.4); tableHeight = Dimensions.PANEL_HEIGHT - (Dimensions.NAV_BAR_HEIGHT + 40); rightPanelWidth = (int)(Dimensions.PANEL_WIDTH * 0.5); formComponentKeyWidth = (int)(0.4 * this.rightPanelWidth); formComponentValueWidth = (int)(0.5 * this.rightPanelWidth); formComponentHorizontalMargin = (int)(0.1 * this.rightPanelWidth - 2 * Dimensions.PANEL_CARD_PADDING_HORIZONTAL); // Init previous panel this.PreviousPanel = previousPanel; // Init controller this.controller = new AnalysisController(this); // Init panel this.Panel = new Panel(); this.Panel.AutoSize = true; this.Panel.Location = new Point(0, 0); this.Panel.Name = "analysisMainPanel"; this.Panel.Size = new Size(Dimensions.PANEL_WIDTH, Dimensions.PANEL_HEIGHT); this.Panel.TabIndex = 0; this.Panel.BackColor = Colors.WHITE; this.Panel.Visible = false; // Init header this.header = new NavigationBar( Colors.IMPERIAL_RED, "Analizat", this.Panel, this.PreviousPanel, "../../Resources/nurse.png" ); this.Panel.Controls.Add(this.header.Panel); // Patients table Point patientsTableLocation = new Point(Dimensions.PANEL_PADDING_HORIZONTAL, 80); Size patientsTableSize = new Size( this.tableWidth, this.tableHeight ); this.PatientsTable = new PatientsTable( patientsTableSize, patientsTableLocation, this.PatientsList, this.controller ); this.Panel.Controls.Add(this.PatientsTable.DataGrid); // Init right container right = new GroupBox(); right.Text = "Analiza mjekësore"; right.Location = new Point( Dimensions.PANEL_WIDTH - (Dimensions.PANEL_PADDING_HORIZONTAL + this.rightPanelWidth), 80 ); right.Size = new Size(this.rightPanelWidth, this.tableHeight); right.FlatStyle = FlatStyle.Flat; right.Font = new Font(Fonts.primary, 12, FontStyle.Regular); this.Panel.Controls.Add(this.right); // Selected patient label this.patientLabel = new Label(); this.patientLabel.Location = new Point( Dimensions.PANEL_CARD_PADDING_HORIZONTAL, Dimensions.PANEL_CARD_PADDING_VERTICAL * 2 ); this.patientLabel.Width = this.formComponentKeyWidth; this.patientLabel.Height = this.formComponentHeight; this.patientLabel.Text = "Pacienti"; this.patientLabel.Font = new Font(Fonts.primary, 12, FontStyle.Bold); this.patientLabel.ForeColor = Colors.BLACK; this.right.Controls.Add(this.patientLabel); this.PatientLabelValue = new Label(); this.PatientLabelValue.Location = new Point( Dimensions.PANEL_CARD_PADDING_HORIZONTAL + this.formComponentKeyWidth + this.formComponentHorizontalMargin, Dimensions.PANEL_CARD_PADDING_VERTICAL * 2 ); this.PatientLabelValue.Width = this.formComponentValueWidth; this.PatientLabelValue.Height = this.formComponentHeight; this.PatientLabelValue.Text = "-"; this.PatientLabelValue.Font = new Font(Fonts.primary, 12, FontStyle.Regular); this.PatientLabelValue.ForeColor = Colors.BLACK; this.right.Controls.Add(this.PatientLabelValue); // Docs section header this.analysisLabel = new Label(); this.analysisLabel.Location = new Point( Dimensions.PANEL_CARD_PADDING_HORIZONTAL, (this.formComponentVerticalMargin) + (Dimensions.PANEL_CARD_PADDING_VERTICAL * 2) ); this.analysisLabel.Width = this.rightPanelWidth - (2 * Dimensions.PANEL_CARD_PADDING_HORIZONTAL); this.analysisLabel.Height = this.formComponentHeight; this.analysisLabel.Text = "Analizat"; this.analysisLabel.Font = new Font(Fonts.primary, 12, FontStyle.Bold); this.analysisLabel.ForeColor = Colors.BLACK; this.analysisLabel.BackColor = Colors.WHITE_LILAC; this.analysisLabel.TextAlign = ContentAlignment.MiddleLeft; this.right.Controls.Add(this.analysisLabel); this.addAnalysisBtn = new Button(); this.addAnalysisBtn.Size = new Size(this.formComponentHeight, this.formComponentHeight); this.addAnalysisBtn.Location = new Point( this.rightPanelWidth - Dimensions.PANEL_CARD_PADDING_HORIZONTAL - this.formComponentHeight, (this.formComponentVerticalMargin) + (Dimensions.PANEL_CARD_PADDING_VERTICAL * 2) ); this.addAnalysisBtn.Text = ""; this.addAnalysisBtn.UseVisualStyleBackColor = true; this.addAnalysisBtn.Font = new Font(Fonts.primary, 12, FontStyle.Bold); this.addAnalysisBtn.ForeColor = Colors.WHITE; this.addAnalysisBtn.BackColor = Colors.WHITE_LILAC; this.addAnalysisBtn.ImageAlign = ContentAlignment.MiddleCenter; this.addAnalysisBtn.FlatAppearance.BorderColor = Colors.WHITE_LILAC; this.addAnalysisBtn.FlatAppearance.CheckedBackColor = Colors.WHITE_LILAC; this.addAnalysisBtn.FlatAppearance.MouseDownBackColor = Colors.WHITE_LILAC; this.addAnalysisBtn.FlatAppearance.MouseOverBackColor = Colors.WHITE_LILAC; this.addAnalysisBtn.Image = Image.FromFile("../../Resources/add.png"); this.addAnalysisBtn.FlatStyle = FlatStyle.Flat; this.addAnalysisBtn.Click += new EventHandler(onAddAnalysisClicked); this.right.Controls.Add(this.addAnalysisBtn); this.right.Controls.SetChildIndex(this.addAnalysisBtn, 0); ToolTip addDocTooltip = new ToolTip(); addDocTooltip.SetToolTip(this.addAnalysisBtn, "Shto analizë"); // Docs table Point analysisTableLocation = new Point( Dimensions.PANEL_CARD_PADDING_HORIZONTAL, (2 * this.formComponentVerticalMargin) + (Dimensions.PANEL_CARD_PADDING_VERTICAL * 2) ); Size analysisTableSize = new Size( this.rightPanelWidth - (2 * Dimensions.PANEL_CARD_PADDING_HORIZONTAL), this.tableHeight - 150 ); this.AnalysisTable = new AnalysisTable( analysisTableSize, analysisTableLocation, this.AnalysisList, this.controller ); this.right.Controls.Add(this.AnalysisTable.DataGrid); }
/** Creates a new instance of AnalysisThread */ public AnalysisThread(FileCollection theFileCollection, FFSignatureFile theSigFile, AnalysisController theAnalysisController) { myFileCollection = theFileCollection; mySigFile = theSigFile; myAnalysisController = theAnalysisController; }