/// <summary>Attaches this presenter to a view.</summary> /// <param name="model"></param> /// <param name="viewBase"></param> /// <param name="parentPresenter"></param> public void Attach(object model, object viewBase, ExplorerPresenter parentPresenter) { presenter = parentPresenter; view = (ViewBase)viewBase; modelToRun = (IModel)model; nameOfJobEdit = view.GetControl <EditView>("nameOfJobEdit"); numberCPUCombobox = view.GetControl <DropDownView>("numberCPUCombobox"); apsimTypeToRunCombobox = view.GetControl <DropDownView>("apsimTypeToRunCombobox"); directoryLabel = view.GetControl <LabelView>("directoryLabel"); directoryEdit = view.GetControl <EditView>("directoryEdit"); browseButton = view.GetControl <ButtonView>("browseButton"); versionLabel = view.GetControl <LabelView>("versionLabel"); versionCombobox = view.GetControl <DropDownView>("versionCombobox"); submitButton = view.GetControl <ButtonView>("submitButton"); statusLabel = view.GetControl <LabelView>("statusLabel"); lowPriorityCheckBox = view.GetControl <CheckBoxView>("lowPriorityCheckBox"); nameOfJobEdit.Text = modelToRun.Name + DateTime.Now.ToString("yyyy-MM-dd HH.mm"); numberCPUCombobox.Values = new string[] { "16", "32", "48", "64", "80", "96", "112", "128", "256" }; numberCPUCombobox.SelectedValue = ApsimNG.Cloud.Azure.AzureSettings.Default.NumCPUCores; apsimTypeToRunCombobox.Values = new string[] { "A released version", "A directory", "A zip file" }; if (!string.IsNullOrEmpty(ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMVersion)) { apsimTypeToRunCombobox.SelectedValue = "A released version"; } else if (!string.IsNullOrEmpty(ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMDirectory)) { apsimTypeToRunCombobox.SelectedValue = "A directory"; } else if (!string.IsNullOrEmpty(ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMZipFile)) { apsimTypeToRunCombobox.SelectedValue = "A zip file"; } else { apsimTypeToRunCombobox.SelectedValue = "A released version"; } SetupWidgets(); if (!string.IsNullOrEmpty(ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMVersion)) { versionCombobox.SelectedValue = ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMVersion; } else if (!string.IsNullOrEmpty(ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMDirectory)) { directoryEdit.Text = ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMDirectory; } else if (!string.IsNullOrEmpty(ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMZipFile)) { directoryEdit.Text = ApsimNG.Cloud.Azure.AzureSettings.Default.APSIMZipFile; } lowPriorityCheckBox.Checked = ApsimNG.Cloud.Azure.AzureSettings.Default.LowPriority; apsimTypeToRunCombobox.Changed += OnVersionComboboxChanged; browseButton.Clicked += OnBrowseButtonClicked; submitButton.Clicked += OnSubmitJobClicked; }
void OnToggleShadow(object sender, EventArgs ev) { _isShadowOn = !_isShadowOn; ExampleBoxView.ToggleShadow(_isShadowOn); ButtonView.ToggleShadow(_isShadowOn); LabelView.ToggleShadow(_isShadowOn); ExampleImageview.ToggleShadow(_isShadowOn); }
public UIInstalledPackageListPage(PackageListConfig localConfig) { ScrollView scrollView = new ScrollView(); scrollView.Width = 800; scrollView.Height = 600f; VerticalView verticalView = new VerticalView(); verticalView.AddChild(new SpaceView()); HorizontalView gitHorizontalView = new HorizontalView(); LabelView labelView = new LabelView("Git Url:", 50, 30); labelView.FontColor = Color.white; gitHorizontalView.AddChild(labelView); TextField gitUrl = new TextField(PackageListConfig.GitUrl); gitUrl.OnTextChanged += text => { PackageListConfig.GitUrl = text; }; gitHorizontalView.AddChild(gitUrl); verticalView.AddChild(gitHorizontalView); HorizontalView horizontalView = new HorizontalView(); horizontalView.AddChild(UIFactory.CreateTitleLabel("package name")); horizontalView.AddChild(UIFactory.CreateTitleLabel("version")); horizontalView.AddChild(UIFactory.CreateTitleLabel("release notes")); horizontalView.AddChild(UIFactory.CreateTitleLabel("folder")); verticalView.AddChild(horizontalView); scrollView.AddChild(verticalView); foreach (var localConfigPluginInfo in localConfig.InstalledPackageList) { var scrollItem = new HorizontalView(); scrollItem.AddChild(UIFactory.CreateInstalledLabel(localConfigPluginInfo.Name)); scrollItem.AddChild(UIFactory.CreateInstalledLabel(string.Format("v{0}", localConfigPluginInfo.Version))); scrollItem.AddChild(UIFactory.CreateInstalledLabel(localConfigPluginInfo.ReleaseNote)); scrollItem.AddChild(new ButtonView("Download", 65, 25, () => UniPMWindow.DownloadZip(localConfigPluginInfo))); scrollView.AddChild(scrollItem); } scrollView.AddChild(new FlexibaleSpaceView()); AddChild(scrollView); }
public ToDoListNoteView(AbsViewController ctrl) : base(ctrl, "box") { titleLabelView = new LabelView("欢迎来到笔记界面") .TextMiddleCenter() .FontBold() .FontSize(40).AddTo(this); createButtonView = new ButtonView("创建笔记", () => CreateNewEditor(), true).FontSize(25).Height(30).AddTo(this); //closeButtonView = new ButtonView("关闭", () => CreateNewEditor(), true).AddTo(this); editorView = new ToDoListNoteEditorView(SaveAction, CloseAction).AddTo(this); noteListScrollLayout = new ScrollLayout().AddTo(this); editorView.Hide(); }
private void Awake() { todoVersion = new ToDoVersion(0, 0, 0); var verticalLayout = new VerticalLayout("box").AddTo(this); var addHor = new HorizontalLayout().AddTo(verticalLayout); new SpaceView(98).AddTo(addHor); new ButtonView("+", () => UpdateMajor(true)).Height(20).Width(20).FontSize(10).AddTo(addHor); new SpaceView(15).AddTo(addHor); new ButtonView("+", () => UpdateMiddle(true)).Height(20).Width(20).FontSize(10).AddTo(addHor); new SpaceView(15).AddTo(addHor); new ButtonView("+", () => UpdateSmall(true)).Height(20).Width(20).FontSize(10).AddTo(addHor); var versionHor = new HorizontalLayout().AddTo(verticalLayout); new LabelView("版本号:").Width(80).FontBold().FontSize(20).AddTo(versionHor); new LabelView("V").FontSize(10).Height(20).Width(11).FontBold().AddTo(versionHor); majorView = new LabelView("0").FontSize(20).Height(20).Width(20).FontBold() .AddTo(versionHor); new LabelView(".").FontSize(20).Height(20).Width(11).FontBold().AddTo(versionHor); middleView = new LabelView("0").FontSize(20).Height(20).Width(20).FontBold() .AddTo(versionHor); new LabelView(".").FontSize(20).Height(20).Width(11).FontBold().AddTo(versionHor); smallView = new LabelView("0").FontSize(20).Height(20).Width(20).FontBold() .AddTo(versionHor); var reduceHor = new HorizontalLayout().AddTo(verticalLayout); new SpaceView(98).AddTo(reduceHor); new ButtonView("-", () => UpdateMajor(false)).TextMiddleCenter().Height(20).Width(20).FontSize(10) .AddTo(reduceHor); new SpaceView(15).AddTo(reduceHor); new ButtonView("-", () => UpdateMiddle(false)).TextMiddleCenter().Height(20).Width(20).FontSize(10) .AddTo(reduceHor); new SpaceView(15).AddTo(reduceHor); new ButtonView("-", () => UpdateSmall(false)).TextMiddleCenter().Height(20).Width(20).FontSize(10) .AddTo(reduceHor); new SpaceView().AddTo(verticalLayout); var nameHor = new HorizontalLayout().AddTo(verticalLayout); new LabelView("版本名:").FontBold().Width(80).FontSize(20).AddTo(nameHor); versionNameView = new TextFieldView(productName, str => productName = str).FontSize(20).AddTo(nameHor); new SpaceView().AddTo(verticalLayout); new ButtonView("保存", SaveProduct, true).AddTo(verticalLayout); }
protected override void FillCanvas(ref int i) { LabelView label; label = new LabelView { Height = labelHeight, OffsetY = i * labelHeight, BackgroundColor = VUtils.ColorForRow(i), Name = Catalog.GetString("Periods"), }; AddLabel(label, null); i++; base.FillCanvas(ref i); }
public QuestionView(Action nextAct = null) { titleLabel = new LabelView(string.Empty).FontSize(25).TextMiddleCenter().AddTo(this); new SpaceView(10f).AddTo(this); contextLabel = new LabelView(string.Empty).FontSize(20).TextMiddleCenter().AddTo(this); contextAreaView = new TextAreaView(string.Empty).ExpandHeight(true).FontSize(15).AddTo(this); spaceView = new FlexibleSpaceView().AddTo(this); //new SpaceView(15f).AddTo(this); btnViews = new List <ButtonView>(); choiceViews = new List <ButtonView>(); AddNextAction(nextAct); contextLabel.Hide(); contextAreaView.Hide(); }
private void AddLabel(LabelViewModel newLVM) { if (!CheckLicense()) { return; } if (newLVM != null) { var newView = new LabelView(); newView.DataContext = newLVM; LabelViewList.Add(newView); SelectedLabelView = newView; } }
void OnClickedSelectionButton(object sender, EventArgs ev) { var index = Array.IndexOf(new Button[] { NoneButton, CircleButton, TriangleButton, SquareButton }, sender); var type = (ViewMaskerType)index; if (_applyToLayout) { Stack.ApplyMask(type); } else { ExampleBoxView.ApplyMask(type); ButtonView.ApplyMask(type); LabelView.ApplyMask(type); ExampleImageview.ApplyMask(type); } }
private void timeKValueToolStripMenuItem_Click(object sender, EventArgs e) { this.Text = "Time K value"; this.Invalidate(); ShowLayer(0); timeGraph.BringToFront(); if (first_layer_LabelView_mode) { LabelView.BringToFront(); } else { LabelViewCC.BringToFront(); } timeGraph.Reset(); timeGraph.NotifyRedraw(); }
public void Test() { var windowsView = new WindowsView(); var button = new Button() { Label = "Add" }; var textBoxTerm1 = new TextBox(); var textBoxTerm2 = new TextBox(); var solutionLabel = new LabelView(); var panel = new StackPanel() { Children = { textBoxTerm1, textBoxTerm2, button, solutionLabel }, StackOrientation = Orientation.Vertical }; windowsView.AddWindow(panel); button.OnButtonClick.Subscribe(_ => { if (!int.TryParse(textBoxTerm1.Text, out int term1) || !int.TryParse(textBoxTerm2.Text, out int term2)) { solutionLabel.Text = "Invalid input"; } else { solutionLabel.Text = (term1 + term2).ToString(); } }); textBoxTerm1.Text = 5.ToString(); textBoxTerm2.Text = 6.ToString(); UIElement.HandleMouseEvent(windowsView, new MouseEventData(MouseEvent.MOUSE_RELEASED, button.TranslatePointTo(windowsView, button.Position), 1)); Assert.AreEqual("11", solutionLabel.Text); textBoxTerm1.Text = "term 1"; textBoxTerm2.Text = "term 2"; UIElement.HandleMouseEvent(windowsView, new MouseEventData(MouseEvent.MOUSE_RELEASED, button.TranslatePointTo(windowsView, button.Position), 1)); Assert.AreEqual("Invalid input", solutionLabel.Text); //var main = new MainWindow(windowsView); }
/// <summary>Attach the model and view to this presenter and populate the view.</summary> /// <param name="model">The data store model to work with.</param> /// <param name="v">Data store view to work with.</param> /// <param name="explorerPresenter">Parent explorer presenter.</param> public void Attach(object model, object v, ExplorerPresenter explorerPresenter) { dataStore = model as IDataStore; var view = v as ViewBase; this.explorerPresenter = explorerPresenter; intellisense = new IntellisensePresenter(view as ViewBase); intellisense.ItemSelected += OnIntellisenseItemSelected; checkpointDropDown = view.GetControl <DropDownView>("checkpointDropDown"); tableDropDown = view.GetControl <DropDownView>("tableDropDown"); columnFilterEditBox = view.GetControl <EditView>("columnFilterEditBox"); rowFilterEditBox = view.GetControl <EditView>("rowFilterEditBox"); sheetContainer = view.GetControl <ContainerView>("grid"); statusLabel = view.GetControl <LabelView>("statusLabel"); tableDropDown.IsEditable = false; if (dataStore != null) { tableDropDown.Values = dataStore.Reader.TableAndViewNames.ToArray(); if (tablesFilter != null && tablesFilter.Length > 0) { tableDropDown.Values = tableDropDown.Values.Intersect(tablesFilter).ToArray(); } checkpointDropDown.Values = dataStore.Reader.CheckpointNames.ToArray(); if (checkpointDropDown.Values.Length > 0) { checkpointDropDown.SelectedValue = checkpointDropDown.Values[0]; } if (Utility.Configuration.Settings.MaximumRowsOnReportGrid > 0) { statusLabel.Text = Utility.Configuration.Settings.MaximumRowsOnReportGrid.ToString(); } tableDropDown.SelectedIndex = 0; } tableDropDown.Changed += this.OnTableSelected; columnFilterEditBox.Leave += OnColumnFilterChanged; columnFilterEditBox.IntellisenseItemsNeeded += OnIntellisenseNeeded; rowFilterEditBox.Leave += OnColumnFilterChanged; checkpointDropDown.Changed += OnCheckpointDropDownChanged; PopulateGrid(); }
protected virtual void UpdateLabelOffsets() { int i = eventTypesStartIndex; foreach (EventTypeTimelineVM eventTypeVM in ViewModel.Project.Timeline.EventTypesTimeline.ViewModels) { if (eventTypeToLabel.ContainsKey(eventTypeVM)) { LabelView label = eventTypeToLabel [eventTypeVM]; if (label.Visible) { label.OffsetY = i * label.Height; label.BackgroundColor = Utils.ColorForRow(i); i++; } } } widget?.ReDraw(); }
private void graphToolStripMenuItem_Click(object sender, EventArgs e) { this.Text = "Graph"; this.Invalidate(); ShowLayer(0); graph_table.BringToFront(); if (first_layer_LabelView_mode) { LabelView.BringToFront(); } else { LabelViewCC.BringToFront(); } graph_table.ReInit(); first_layer_LabelView_mode = true; if (timeGraph.flag) { UpdateGraphTable(); } }
public void initThirdLayer() { timeGraph.Size = new Size((int)(this.Width * 0.8), (int)(this.Size.Height * 0.425)); timeGraph.Location = new Point(0, (int)(this.Height * 0.09)); graph_table.Size = new Size((int)(this.Width * 0.55), (int)(this.Height * 0.425)); graph_table.Location = new Point((int)(this.Width * 0.25), (int)(this.Height * 0.5125)); scatterPlot.Size = new Size((int)(this.Width * 0.25), (int)(this.Height * 0.425)); scatterPlot.Location = new Point(0, (int)(this.Height * 0.5125)); LabelView.BringToFront(); LabelViewCC.Size = new Size((int)(this.Width * 0.2), (int)(this.Height * 0.85)); LabelViewCC.Location = new Point((int)(this.Width * 0.8), (int)(this.Height * 0.09)); LabelView.Size = new Size((int)(this.Width * 0.2), (int)(this.Height * 0.85)); LabelView.Location = new Point((int)(this.Width * 0.8), (int)(this.Height * 0.09)); LabelViewCC.BringToFront(); graph_table.Init(); alphaBar.Location = new Point((int)(this.Width - alphaBar.Width * 1.1), (int)(this.Height * 0.05)); alphaBar.Value = 100; mode.Location = new Point((int)(this.Width - alphaBar.Width * 1.1 - mode.Width * 1.3), (int)(this.Height * 0.045)); List <Control> lc = new List <Control>(); lc.Add(timeGraph); lc.Add(graph_table); lc.Add(LabelView); lc.Add(LabelViewCC); lc.Add(scatterPlot); lc.Add(alphaBar); lc.Add(mode); Panel_Layer.Add(lc); }
/// <summary> /// Create label object from label view. /// </summary> /// <param name="labelView">Source label view object</param> /// <returns>Label representation of view</returns> public static Label Create(LabelView labelView) { #region validation if (labelView == null) { throw new ArgumentNullException(nameof(labelView)); } #endregion return(new Label() { Id = labelView.Id, ObjectClassName = labelView.ObjectClassName, ObjectClassId = labelView.ObjectClassId, Left = labelView.Left, Top = labelView.Top, Right = labelView.Right, Bottom = labelView.Bottom, Confidence = labelView.Confidence }); }
protected override void FillCanvas(ref int i) { LabelView label; label = new LabelView { Height = labelHeight, OffsetY = i * labelHeight, BackgroundColor = VUtils.ColorForRow(i), Name = Catalog.GetString("Periods"), }; AddLabel(label, null); i++; base.FillCanvas(ref i); double width = Objects.OfType <LabelView> ().Max(la => la.RequiredWidth); foreach (LabelView lo in Objects.OfType <LabelView> ()) { lo.Width = width; } WidthRequest = (int)width; }
void FillCanvas() { int row = 0, w, h, height = 0; w = StyleConf.TimelineLabelsWidth * 2; h = StyleConf.TimelineCameraHeight; // Main camera AddCamera(fileSetVM.ViewModels [0], w, h, ref row); // Periods var l = new LabelView(); l.Width = w; l.Height = h; l.OffsetY = row * h; l.BackgroundColor = App.Current.Style.PaletteBackgroundLight; l.Name = Catalog.GetString("Periods"); AddLabel(l); row++; // Secondary cams for (int j = 1; j < fileSetVM.ViewModels.Count; j++) { AddCamera(fileSetVM.ViewModels [j], w, h, ref row); } double width = Objects.Max(la => (la as LabelView).RequiredWidth); foreach (LabelView label in Objects) { label.Width = width; height += h; } WidthRequest = (int)width; HeightRequest = (int)height; }
public void BuildItem() { container.Clear(); if (data.state == ToDoData.ToDoState.NoStart) { var startBtn = new ImageButtonView(ImageButtonIcon.playIcon, () => { data.startTime = DateTime.Now; data.state.Val = ToDoData.ToDoState.Started; //改变了state会自动储存 UpdateItem(); }).Height(20).Width(40).BackgroundColor(Color.green); container.Add(startBtn); } else if (data.state == ToDoData.ToDoState.Started) { var finishedBtn = new ImageButtonView(ImageButtonIcon.finishIcon, () => { data.finishTime = DateTime.Now; data.state.Val = ToDoData.ToDoState.Done; UpdateItem(); }).Height(20).Width(40).BackgroundColor(Color.green); container.Add(finishedBtn); } else if (data.state == ToDoData.ToDoState.Done) { var resetBtn = new ImageButtonView(ImageButtonIcon.resetIcon, () => { data.createTime = DateTime.Now; data.state.Val = ToDoData.ToDoState.NoStart; UpdateItem(); }).Height(20).Width(40).BackgroundColor(Color.grey); container.Add(resetBtn); } var boxView = new BoxView("无").AddTo(container) .TextMiddleCenter().Width(20).FontSize(12) .FontColor(Color.white).FontBold(); new CategoryComponent(data.category).AddTo(container); var contentLabel = new LabelView(data.content).Height(20).FontSize(15).TextMiddleCenter(); container.Add(contentLabel); if (showTime) { new LabelView(data.finishTime.ToString("完成于 HH:mm:ss")) .Height(20).Width(80).TextMiddleLeft().FontBold(); new LabelView(data.UsedTimeText) .Height(20).Width(100).TextMiddleLeft().AddTo(container); } var priorityVal = data.priority.Val; Color priorityColor = Color.clear; switch (priorityVal) { case ToDoData.ToDoPriority.A: boxView.Context = "A"; priorityColor = Color.red; boxView.BackgroundColor(Color.red); break; case ToDoData.ToDoPriority.B: boxView.Context = "B"; priorityColor = Color.yellow; boxView.BackgroundColor(Color.yellow); break; case ToDoData.ToDoPriority.C: boxView.Context = "C"; priorityColor = Color.cyan; boxView.BackgroundColor(Color.cyan); break; case ToDoData.ToDoPriority.D: boxView.Context = "D"; priorityColor = Color.blue; boxView.BackgroundColor(Color.blue); break; case ToDoData.ToDoPriority.None: boxView.Context = "无"; priorityColor = Color.gray; boxView.BackgroundColor(Color.gray); break; } var priority = new EnumPopupView <ToDoData.ToDoPriority>(priorityVal) .Width(30).Height(20).BackgroundColor(priorityColor).AddTo(container); priority.ValueProperty.RegisterValueChanged((val) => { data.priority.Val = val; switch (val) { case ToDoData.ToDoPriority.A: boxView.Context = "A"; priority.BackgroundColor(Color.red); boxView.BackgroundColor(Color.red); break; case ToDoData.ToDoPriority.B: boxView.Context = "B"; priority.BackgroundColor(Color.yellow); boxView.BackgroundColor(Color.yellow); break; case ToDoData.ToDoPriority.C: boxView.Context = "C"; priority.BackgroundColor(Color.cyan); boxView.BackgroundColor(Color.cyan); break; case ToDoData.ToDoPriority.D: boxView.Context = "D"; priority.BackgroundColor(Color.blue); boxView.BackgroundColor(Color.blue); break; case ToDoData.ToDoPriority.None: boxView.Context = "无"; priority.BackgroundColor(Color.gray); boxView.BackgroundColor(Color.gray); break; } UpdateItem(); }); new ImageButtonView(ImageButtonIcon.editorIcon, () => { OpenSubWindow(); }) .Width(25).Height(25).BackgroundColor(Color.black).AddTo(container); var deleteBtn = new ImageButtonView(ImageButtonIcon.deleteIcon, () => { data.finished.ClearValueChanged(); ToDoDataManager.RemoveToDoItem(data); deleteAct?.Invoke(data); UpdateItem(); }).Height(25).Width(25).BackgroundColor(Color.red); container.Add(deleteBtn); }
protected virtual void AddLabel(LabelView label, object obj) { AddObject(label); }
void AddLabel(LabelView label) { Objects.Add(label); }
public void initFirstLayer() { //this.BackColor = Color.Black; graph_table.Size = new Size(this.Size.Width, (int)(this.Size.Height * 0.48)); graph_table.Location = new Point(0, (int)(this.Height * 0.09)); graph_table.rce = graph_table_MouseDown; timeGraph.Size = new Size(this.Size.Width, (int)(this.Size.Height * 0.48)); timeGraph.Location = new Point(0, (int)(this.Height * 0.09)); timeGraph.rce = timeGraph_MouseDown; timeGraph.cb = SetDateByString; timeGraph.SendToBack(); /* * LabelList.Location = new Point((int)(this.Width * 0.005), LabelList.Location.Y); * LabelList.Size = new Size((int)(this.Width * 0.99), LabelList.Height ); * * foreach (string s in dp.label) * LabelList.Items.Add(s); */ LabelView.BringToFront(); LabelViewCC.Location = new Point((int)(this.Width * 0.005), (int)(this.Height * 0.6)); LabelViewCC.Size = new Size((int)(this.Width * 0.99), (int)(this.Height * 0.3)); LabelViewCC.Visible = false; LabelView.Location = new Point((int)(this.Width * 0.005), (int)(this.Height * 0.6)); LabelView.Size = new Size((int)(this.Width * 0.99), (int)(this.Height * 0.3)); LabelView.Items.Add(new ListViewItem(firstLabel)); foreach (string s in dp.label) { LabelView.Items.Add(new ListViewItem(s)); } first_layer_LabelView_mode = true; LabelList.Visible = false; graph_table.Init(); preTime.Location = new Point(preTime.Location.X, this.Height - preTime.Height * 2); curTime.Location = new Point(curTime.Location.X, this.Height - curTime.Height * 2); updateBtn.Location = new Point(this.Width - (int)(updateBtn.Width * 1.5), (int)(this.Height * 0.94)); alphaBar.Location = new Point((int)(this.Width - alphaBar.Width * 1.1), (int)(this.Height * 0.05)); alphaBar.Value = 100; mode.Location = new Point((int)(this.Width - alphaBar.Width * 1.1 - mode.Width * 1.3), (int)(this.Height * 0.045)); List <Control> lc = new List <Control>(); lc.Add(graph_table); lc.Add(preTime); lc.Add(curTime); lc.Add(updateBtn); lc.Add(alphaBar); lc.Add(mode); lc.Add(LabelView); lc.Add(dataNumLabel); lc.Add(LabelViewCC); lc.Add(timeGraph); Panel_Layer.Add(lc); }
public void BeforeEach() { _labelView = new LabelView(); _labelView.Focus(); _scheduler = new TestScheduler(); }