public BuildNSIS(Base.CommandHub parent) : base(parent, "Build - NSIS installer", new List<string> { "build.nsis", "b.nsis" }, "-b.nsis [nsis_filepath]", new List<string> { @"-b.nsis src\Installer\chesscup.nsi" }) { }
public FileDestory(Base.CommandHub parent) : base(parent, "File - Destroy", new List<string> { "file.destroy", "f.d" }, "-f.d [filepattern]", new List<string> { "-f.d \"*.vmdk\"" }) { }
public WindowsLogin(Base.CommandHub parent) : base(parent, "Windows - Login", new List<string> { "windows.login", "win.login", "net.login", "n.login" }, "-windows.login [ip] [domain/username] [password] [p|persistent] [ping]", new List<string>() { @"-windows.login \\192.168.0.244\temp test testpw p", @"-n.login 192.168.0.244 test testpw ping" }) { }
/// <summary> /// Initializes a new instance of the <see cref="TableRow"/> class. /// </summary> /// <param name="parent">Parent control.</param> public TableRow(Base parent) : base(parent) { m_Columns = new Label[MaxColumns]; m_ColumnCount = 0; KeyboardInputEnabled = true; }
public static void Main(string[] args) { var br = new BaseResult(); var dr = new DerivedResult(); var bas = new Base(); var derived = new Derived(); bas.Method(); bas.MethodWithParameter1(br); bas.MethodWithParameter1(dr); bas.MethodWithParameter2(dr); bas = derived; bas.Method(); bas.MethodWithParameter1(br); bas.MethodWithParameter1(dr); bas.MethodWithParameter2(dr); derived.Method(); derived.MethodWithParameter1(br); derived.MethodWithParameter1(dr); derived.MethodWithParameter2(br); derived.MethodWithParameter2(dr); }
public Bower(Base.CommandHub parent) : base(parent, "Bower Update", new List<string> { "bower" }, "-bower", new List<string> { @"-bower" }) { }
public LabviewVersion(Base.CommandHub parent) : base(parent, "Set LabVIEW project version number", new List<string> { "lv_ver" }, "-lv_ver [lvproj_file] [version]", new List<string> { "-lv_ver \"*.lvproj_file\" \"1.0.2.1\"" }) { }
public void Handle(XI XI, Base.VW.IWISV WI) { if (CheckHit) { System.Func<Player, bool> hit = (p) => p.DEXi > 0 || (p.DEXi == 0 && p.DEX >= XI.Board.Battler.AGL); XI.Board.HinderSucc = hit(XI.Board.Hinder); XI.Board.SupportSucc = hit(XI.Board.Supporter); XI.Board.RDrums.Keys.ToList().ForEach(p => XI.Board.RDrums[p] = hit(p)); XI.Board.ODrums.Keys.ToList().ForEach(p => XI.Board.ODrums[p] = hit(p)); IDictionary<ushort, bool> drums = new Dictionary<ushort, bool>(); XI.Board.RDrums.Keys.ToList().ForEach(p => drums[p.Uid] = XI.Board.RDrums[p]); XI.Board.ODrums.Keys.ToList().ForEach(p => drums[p.Uid] = XI.Board.ODrums[p]); new HitRefreshSemaphore() { Supporter = XI.Board.Supporter.Uid, SHit = XI.Board.SupportSucc, Hinder = XI.Board.Hinder.Uid, HHit = XI.Board.HinderSucc, Drums = drums }.Telegraph(WI.BCast); } new PondRefreshSemaphore() { RTeam = XI.Board.Rounder.Team, RPool = XI.Board.CalculateRPool(), OTeam = XI.Board.Rounder.OppTeam, OPool = XI.Board.CalculateOPool() }.Telegraph(WI.BCast); }
public FileFind(Base.CommandHub parent) : base(parent, "File - Find", new List<string> { "file.find", "f.f" }, "-file.find [filepattern]", new List<string> { "-file.find \"*.vmdk\"" }) { }
public FanucFixLineNumbers(Base.CommandHub parent) : base(parent, "Fanuc Fix LineNumbers", new List<string> { "fanuc.fixlines" }, @"-fanuc.fixlines <path>", new List<string> { @"-fanuc.fixlines C:\Temp" }) { }
static void Main() { Base B = new Base(); Derived D = new Derived(); B.Message(); D.Message(); }
public FileBsdHeader(Base.CommandHub commandHub) : base(commandHub, "File - BSD Stamp C# Files", new List<string> { "file.bsd", "f.bsd" }, "-file.bsd [file_search_pattern]", new List<string> { "-file.bsd *.cs" }) { }
public CodeReIndent(Base.CommandHub parent) : base(parent, "Code - ReIndent", new List<string> { "code.reindent", "c.reindent", "c.r" }, @"-code.reindent [filepath/pattern]", new List<string> { "-code.reindent *.vb" }) { }
public FanucFTP(Base.CommandHub parent) : base(parent, "FanucBackup", new List<string> { "fanuc.bk" }, @"-fanuc.bk <ip:port> <path>", new List<string> { @"-fanuc.bk 192.168.0.2:21 C:\Temp" }) { }
public BuildSLN(Base.CommandHub parent) : base(parent, "Build - .NET soultion", new List<string> { "build.net", "b.net" }, "-b.net [.net version] [solution_path] [msbuild arguments]", new List<string> { "-b.net 3.5 sar.sln /p:Configuration=Release /p:Platform=\"x86\"" }) { }
private static void AdvanceManufactureProject(Base @base, ManufactureProject project) { var previousUnitsProduced = project.UnitsProduced; project.HoursCompleted += project.EngineersAllocated; var totalUnitsProduced = Math.Min(project.UnitsToProduce, project.HoursCompleted / project.ManufactureType.Metadata().HoursToProduce); var newUnitsProduced = totalUnitsProduced - previousUnitsProduced; foreach (var unit in Enumerable.Range(0, newUnitsProduced)) { project.CompleteUnit(@base); ++project.UnitsProduced; if (project.UnitsProduced == project.UnitsToProduce) break; var status = project.BeginUnitProduction(@base); if (status == ManufactureStatus.UnitStarted) continue; @base.ManufactureProjects.Remove(project); NotifyProductionStopped(@base, project, status); return; } if (project.UnitsProduced != project.UnitsToProduce) return; @base.ManufactureProjects.Remove(project); NotifyProductionCompleted(@base, project); }
void run() { if (director_primitives.PrintDebug) Console.WriteLine("------------ Start ------------ "); Caller myCaller = new Caller(); // test C++ base class using (Base myBase = new Base(100.0)) { makeCalls(myCaller, myBase); } if (director_primitives.PrintDebug) Console.WriteLine("--------------------------------"); // test vanilla C++ wrapped derived class using (Base myBase = new Derived(200.0)) { makeCalls(myCaller, myBase); } if (director_primitives.PrintDebug) Console.WriteLine("--------------------------------"); // test director / C# derived class using (Base myBase = new CSharpDerived(300.0)) { makeCalls(myCaller, myBase); } if (director_primitives.PrintDebug) Console.WriteLine("------------ Finish ------------ "); }
public CodeClean(Base.CommandHub parent) : base(parent, "Code - Clean", new List<string> { "code.clean", "c.clean", "c.c" }, @"-code.reindent [filepath/pattern]", new List<string> { "-code.clean *.vb" }) { }
public NetListAdapters(Base.CommandHub parent) : base(parent, "Network - List Adapters", new List<string> { "ip.config" }, @"-ip.config", new List<string> { "-ip.config" }) { }
public void LoadClients(Base.Controls.CustomListView objCustomListView,string strSearch) { DataSet objDataSet = new DataSet(); string strInfosClient = ""; Cursor.Current = Cursors.WaitCursor; objCustomListView.Template = (int)Classes.clsProperties.TemplateListView.Clients; objCustomListView.BeginUpdate(); if (strSearch == string.Empty) objDataSet = clsData.GetAllClients(); else objDataSet = clsData.GetAllClientsBySearch(strSearch); if (clsData.IsEnregInDataSet(objDataSet)) { foreach (DataRow objRow in objDataSet.Tables["Table"].Rows) { strInfosClient = this.GetInfosClient(objRow["STR_RAISON_SOCIALE_CLIENT"].ToString(),objRow["STR_NOM_CLIENT"].ToString(),objRow["STR_PRENOM_CLIENT"].ToString()); objCustomListView.InsertNewLine(this.InitItemClient(int.Parse(objRow["INT_ID_CLIENT"].ToString()), strInfosClient, objRow["STR_TELEPHONE_CLIENT"].ToString(), objRow["STR_CODE_POSTAL_CLIENT"].ToString(), objRow["STR_VILLE_CLIENT"].ToString())); } } objCustomListView.EndUpdate(); Cursor.Current = Cursors.Default; objDataSet = null; }
public WindowsRearm(Base.CommandHub parent) : base(parent, "Windows - Activation Trial Rearm", new List<string> { "windows.rearm", "win.rearm", "w.rarm" }, @"-windows.rearm", new List<string> { "-windows.rearm" }) { }
static void Main() { Base bs = new Base(); SecondBase sb = new SecondBase(); bs.ShowInfo(); sb.ShowInfo(); }
public FileEncode(Base.CommandHub parent) : base(parent, "File - Encode", new List<string> { "file.encode", "f.e" }, "-file.encode [filepattern] [UTF7 | UTF8 | UTF32 | Unicode | BigEndianUnicode | ASCII]", new List<string> { "-file.encode \"*.nsis\" utf8" }) { }
public static GameBOCollection GetGameCollectionRestfulConsume() { GameBOCollection tempCollection = new GameBOCollection(); Base myBase = new Base(); using (WebClient webClient = new WebClient()) { //Call REST service and get JSON response string json = webClient.DownloadString("http://localhost:60706/LotteryService/Game/Collection/"); List<LotteryWindowsFormsApp.BO.GameDTO> gameCollectionList = myBase.GetGameList<LotteryWindowsFormsApp.BO.GameDTO>(json); foreach (LotteryWindowsFormsApp.BO.GameDTO item in gameCollectionList) { if (!string.IsNullOrEmpty(item.GameName)) { tempCollection.Add(new GameBO { GameId = item.GameId, GameName = item.GameName }); } else { tempCollection.Add(new GameBO { GameId = item.GameId }); } } } return tempCollection; }
public void Run() { // Array Covariance // http://msdn.microsoft.com/en-us/library/aa664572(v=vs.71).aspx /* * For any two reference-types A and B, if an implicit reference conversion (Section 6.1.4) or explicit reference conversion (Section 6.2.3) * exists from A to B, then the same reference conversion also exists from the array type A[R] to the array type B[R], * where R is any given rank-specifier (but the same for both array types). * This relationship is known as array covariance. * Array covariance in particular means that a value of an array type A[R] may actually be a reference to an instance of an array type B[R], * provided an implicit reference conversion exists from B to A. * * Because of array covariance, assignments to elements of reference type arrays include a run-time check that ensures that the value * being assigned to the array element is actually of a permitted type (Section 7.13.1). * */ Base[] baseArray = new Base[1]; Derived[] derivedArray = new Derived[] { new Derived() }; // array element assignment is covariant baseArray[0] = new Derived(); baseArray[0] = new OtherDerived(); // This assignment is not type safe but it is allowed baseArray = derivedArray; baseArray[0] = new Derived(); // ArrayTypeMismatchException at RUNTIME baseArray[0] = new OtherDerived(); populate(derivedArray); }
async Task<bool> AssignCompound_1 () { dynamic d = new Base (); d.Value = 3; d.Value += await Task.Factory.StartNew (() => 2); return d.Value == 5; }
public Join(Base.IValidatePassphrase validatePassphrase, REPO.Game.Base.IJoin joinGame, AS.GameRound.Base.IStart _startRound) { this._validatePassphrase = validatePassphrase; this._joinGame = joinGame; this._startRound = _startRound; }
public FileTimestamp(Base.CommandHub parent) : base(parent, "File - Timestamp Name", new List<string> { "file.timestamp", "f.t", "timestamp", "t" }, @"-timestamp <FilePath> [date/time format]", new List<string> { "-timestamp backup.zip \"yyyy.MM.dd-HH.mm\"" }) { }
public FanucPositionsToCSV(Base.CommandHub parent) : base(parent, "Fanuc Export Positions", new List<string> { "fanuc.ExportPositions", "fanuc.ExportPR" }, @"-fanuc.ExportPR <path to posreg.va>", new List<string> { @"-fanuc.ExportPositions C:\Temp" }) { }
public void AddProviderToTypeAndInstance() { var instance = new Base(); // Before adding TDPs var props = TypeDescriptor.GetProperties(instance).Cast<PropertyDescriptor>(). Select(p => p.Name).ToArray(); CollectionAssert.AreEquivalent(new[] { "A", "B" }, props); TypeDescriptionProvider typeProvider = null; TypeDescriptionProvider instanceProvider = null; try { typeProvider = new AssociatedMetadataTypeTypeDescriptionProvider(typeof(Base)); TypeDescriptor.AddProvider(typeProvider, typeof(Base)); instanceProvider = new TestTypeDescriptionProvider(instance); TypeDescriptor.AddProvider(instanceProvider, instance); // After adding TDPs props = TypeDescriptor.GetProperties(instance).Cast<PropertyDescriptor>(). Select(p => p.Name).ToArray(); CollectionAssert.AreEquivalent(new[] { "A", "B", "CustomProperty1", "CustomProperty2" }, props); } finally { // Ensure we remove the providers we attached. TypeDescriptor.RemoveProvider(typeProvider, typeof(Base)); TypeDescriptor.RemoveProvider(instanceProvider, instance); } }
private void Textbox_Clicked(Base sender, ClickedEventArgs arguments) { Globals.InputManager.OpenKeyboard(GameInput.KeyboardType.Normal, mInputTextbox.Text, false, false, false); }
public TestClass(Base @base) { InvocationType = typeof(Base); }
private void onButtonSettingsClick(Base control, EventArgs args) { Program.screenManager.LoadScreen("settings"); }
public GroupBox(Base parent) : base(parent) { { Control.GroupBox gb = new Control.GroupBox(this) { Text = "Group Box (centered)" }; gb.SetBounds(10, 10, 200, 100); //Align.Center(gb); } { Control.GroupBox gb = new Control.GroupBox(this) { AutoSizeToContents = true, Text = "With Label (autosized)" }; gb.SetPosition(250, 10); Control.Label label = new Control.Label(gb) { Text = "I'm a label" }; } { Control.GroupBox gb = new Control.GroupBox(this) { AutoSizeToContents = true, Text = "With Label (autosized)" }; gb.SetPosition(250, 50); Control.Label label = new Control.Label(gb) { Text = "I'm a label. I'm a really long label!" }; } { Control.GroupBox gb = new Control.GroupBox(this) { AutoSizeToContents = true, Text = "Two docked Labels (autosized)" }; gb.SetPosition(250, 100); Control.Label label1 = new Control.Label(gb) { Text = "I'm a label", Dock = Pos.Top }; Control.Label label2 = new Control.Label(gb) { Text = "I'm a label. I'm a really long label!", Dock = Pos.Top }; } { Control.GroupBox gb = new Control.GroupBox(this) { AutoSizeToContents = true, Text = "Empty (autosized)" }; gb.SetPosition(10, 150); } { Control.GroupBox gb1 = new Control.GroupBox(this) { //Control.Label gb1 = new Control.Label(this); Padding = Padding.Five, Text = "Yo dawg," }; gb1.SetPosition(10, 200); gb1.SetSize(350, 200); //gb1.AutoSizeToContents = true; Control.GroupBox gb2 = new Control.GroupBox(gb1) { Text = "I herd", Dock = Pos.Left, Margin = Margin.Three, Padding = Padding.Five }; //gb2.AutoSizeToContents = true; Control.GroupBox gb3 = new Control.GroupBox(gb1) { Text = "You like", Dock = Pos.Fill }; Control.GroupBox gb4 = new Control.GroupBox(gb3) { Text = "Group Boxes,", Dock = Pos.Top, AutoSizeToContents = true }; Control.GroupBox gb5 = new Control.GroupBox(gb3) { Text = "So I put Group", Dock = Pos.Fill }; //gb5.AutoSizeToContents = true; Control.GroupBox gb6 = new Control.GroupBox(gb5) { Text = "Boxes in yo", Dock = Pos.Left, AutoSizeToContents = true }; Control.GroupBox gb7 = new Control.GroupBox(gb5) { Text = "Boxes so you can", Dock = Pos.Top }; gb7.SetSize(100, 100); Control.GroupBox gb8 = new Control.GroupBox(gb7) { Text = "Group Box while", Dock = Pos.Top, Margin = Gwen.Margin.Five, AutoSizeToContents = true }; Control.GroupBox gb9 = new Control.GroupBox(gb7) { Text = "u Group Box", Dock = Pos.Bottom, Padding = Gwen.Padding.Five, AutoSizeToContents = true }; } // at the end to apply to all children DrawDebugOutlines = true; }
public string MyMethod(Base @base) { return(@base.Foo()); }
public override void SpawnPostProcess(Base latestBase, Int3 latestCell, GameObject finishedPiece) { // No-Op! }
public void Method() { var @base = new Base(); Console.WriteLine(@base.UsedPropertyOnBase); }
public Type InstanceMethod(Base @base) { return(typeof(Base)); }
void Textbox_SubmitPressed(Base sender, EventArgs arguments) { TrySendCode(); }
public static Type StaticMethod(Base @base) { return(typeof(Base)); }
private void OnFieldSubmit(Base sender, EventArgs e) { Login(); }
void SubmitBtn_Clicked(Base sender, ClickedEventArgs arguments) { TrySendCode(); }
public static void Main() { Base b = HelperToMarkFooAndRequireBase(); b.Method(); }
void BackBtn_Clicked(Base sender, ClickedEventArgs arguments) { Hide(); Interface.MenuUi.MainMenu.NotifyOpenLogin(); }
private void _myWindow_BeforeDraw(Base sender, EventArgs arguments) { if (!mInitialized) { mMyWindow.LoadJsonUi(_uiStage, Graphics.Renderer.GetResolutionString(), true); var text = Interface.WrapText(mPrompt, mPromptLabel.Width, mPromptLabel.Font); var y = mPromptLabel.Y; foreach (var s in text) { var label = new Label(mMyWindow) { Text = s, TextColorOverride = mPromptLabel.TextColor, Font = mPromptLabel.Font }; label.SetPosition(mPromptLabel.X, y); y += label.Height; Align.CenterHorizontally(label); } switch (mInputType) { case InputType.YesNo: mYesButton.Text = Strings.InputBox.yes; mNoButton.Text = Strings.InputBox.no; mOkayButton.Hide(); mYesButton.Show(); mNoButton.Show(); mNumericTextboxBg.Hide(); mTextboxBg.Hide(); break; case InputType.OkayOnly: mOkayButton.Show(); mYesButton.Hide(); mNoButton.Hide(); mNumericTextboxBg.Hide(); mTextboxBg.Hide(); break; case InputType.NumericInput: mOkayButton.Hide(); mYesButton.Show(); mNoButton.Show(); mNumericTextboxBg.Show(); mTextboxBg.Hide(); break; case InputType.TextInput: mOkayButton.Hide(); mYesButton.Show(); mNoButton.Show(); mNumericTextboxBg.Hide(); mTextboxBg.Show(); break; } mMyWindow.Show(); mMyWindow.Focus(); mInitialized = true; } }
private void LoginButtonClickedHandler(Base sender, ClickedEventArgs e) { Login(); }
/// <summary> /// Initializes a new instance of the <see cref="HSVColorPicker"/> class. /// </summary> /// <param name="parent">Parent control.</param> public HSVColorPicker(Base parent) : base(parent) { MouseInputEnabled = true; SetSize(256, 128); //ShouldCacheToTexture = true; m_LerpBox = new ColorLerpBox(this); m_LerpBox.ColorChanged += ColorBoxChanged; m_LerpBox.Dock = Pos.Left; m_ColorSlider = new ColorSlider(this); m_ColorSlider.SetPosition(m_LerpBox.Width + 15, 5); m_ColorSlider.ColorChanged += ColorSliderChanged; m_ColorSlider.Dock = Pos.Left; m_After = new ColorDisplay(this); m_After.SetSize(48, 24); m_After.SetPosition(m_ColorSlider.X + m_ColorSlider.Width + 15, 5); m_Before = new ColorDisplay(this); m_Before.SetSize(48, 24); m_Before.SetPosition(m_After.X, 28); int x = m_Before.X; int y = m_Before.Y + 30; { Label label = new Label(this); label.SetText("R:"); label.SizeToContents(); label.SetPosition(x, y); TextBoxNumeric numeric = new TextBoxNumeric(this); numeric.Name = "RedBox"; numeric.SetPosition(x + 15, y - 1); numeric.SetSize(26, 16); numeric.SelectAllOnFocus = true; numeric.TextChanged += NumericTyped; } y += 20; { Label label = new Label(this); label.SetText("G:"); label.SizeToContents(); label.SetPosition(x, y); TextBoxNumeric numeric = new TextBoxNumeric(this); numeric.Name = "GreenBox"; numeric.SetPosition(x + 15, y - 1); numeric.SetSize(26, 16); numeric.SelectAllOnFocus = true; numeric.TextChanged += NumericTyped; } y += 20; { Label label = new Label(this); label.SetText("B:"); label.SizeToContents(); label.SetPosition(x, y); TextBoxNumeric numeric = new TextBoxNumeric(this); numeric.Name = "BlueBox"; numeric.SetPosition(x + 15, y - 1); numeric.SetSize(26, 16); numeric.SelectAllOnFocus = true; numeric.TextChanged += NumericTyped; } SetColor(DefaultColor); }
public InputBox( string title, string prompt, bool modal, InputType inputtype, EventHandler okayYesSubmitClicked, EventHandler cancelClicked, object userData, Base parent = null, GameContentManager.UI stage = GameContentManager.UI.InGame ) { if (parent == null) { parent = Interface.GameUi.GameCanvas; } OkayEventHandler = okayYesSubmitClicked; CancelEventHandler = cancelClicked; this.UserData = userData; mInputType = inputtype; _uiStage = stage; mPrompt = prompt; mMyWindow = new WindowControl(parent, title, modal, "InputBox"); mMyWindow.BeforeDraw += _myWindow_BeforeDraw; mMyWindow.DisableResizing(); Interface.InputBlockingElements.Add(mMyWindow); mNumericTextboxBg = new ImagePanel(mMyWindow, "Textbox"); mNumericTextbox = new TextBoxNumeric(mNumericTextboxBg, "TextboxText"); if (inputtype == InputType.NumericInput) { mNumericTextbox.Focus(); } mTextboxBg = new ImagePanel(mMyWindow, "Textbox"); mTextbox = new TextBox(mTextboxBg, "TextboxText"); if (inputtype == InputType.TextInput) { mTextbox.Focus(); } if (inputtype != InputType.NumericInput) { mNumericTextboxBg.IsHidden = true; } if (inputtype != InputType.TextInput) { mTextboxBg.IsHidden = true; } mYesButton = new Button(mMyWindow, "YesButton"); mYesButton.SetText(Strings.InputBox.okay); mYesButton.Clicked += okayBtn_Clicked; mNoButton = new Button(mMyWindow, "NoButton"); mNoButton.SetText(Strings.InputBox.cancel); mNoButton.Clicked += cancelBtn_Clicked; mOkayButton = new Button(mMyWindow, "OkayButton"); mOkayButton.SetText(Strings.InputBox.okay); mOkayButton.Clicked += okayBtn_Clicked; mPromptLabel = new Label(mMyWindow, "PromptLabel"); }
public Base WallToSpeckle(DB.Wall revitWall) { var baseGeometry = LocationToSpeckle(revitWall); if (baseGeometry is Geometry.Point) { return(RevitElementToSpeckle(revitWall)); } RevitWall speckleWall = new RevitWall(); speckleWall.family = revitWall.WallType.FamilyName.ToString(); speckleWall.type = revitWall.WallType.Name; speckleWall.baseLine = (ICurve)baseGeometry; speckleWall.level = ConvertAndCacheLevel(revitWall, BuiltInParameter.WALL_BASE_CONSTRAINT); speckleWall.topLevel = ConvertAndCacheLevel(revitWall, BuiltInParameter.WALL_HEIGHT_TYPE); speckleWall.height = GetParamValue <double>(revitWall, BuiltInParameter.WALL_USER_HEIGHT_PARAM); speckleWall.baseOffset = GetParamValue <double>(revitWall, BuiltInParameter.WALL_BASE_OFFSET); speckleWall.topOffset = GetParamValue <double>(revitWall, BuiltInParameter.WALL_TOP_OFFSET); speckleWall.structural = GetParamValue <bool>(revitWall, BuiltInParameter.WALL_STRUCTURAL_SIGNIFICANT); speckleWall.flipped = revitWall.Flipped; if (revitWall.CurtainGrid == null) { if (revitWall.IsStackedWall) { var wallMembers = revitWall.GetStackedWallMemberIds().Select(id => (Wall)Doc.GetElement(id)); speckleWall.elements = new List <Base>(); foreach (var wall in wallMembers) { speckleWall.elements.Add(WallToSpeckle(wall)); } } speckleWall.displayMesh = GetElementDisplayMesh(revitWall, new Options() { DetailLevel = ViewDetailLevel.Fine, ComputeReferences = false }); } else { // curtain walls have two meshes, one for panels and one for mullions // adding mullions as sub-elements so they can be correctly displayed in viewers etc (var panelsMesh, var mullionsMesh) = GetCurtainWallDisplayMesh(revitWall); speckleWall["renderMaterial"] = new Other.RenderMaterial() { opacity = 0.2, diffuse = System.Drawing.Color.AliceBlue.ToArgb() }; speckleWall.displayMesh = panelsMesh; var mullions = new Base { ["@displayMesh"] = mullionsMesh, ["renderMaterial"] = new Other.RenderMaterial() { diffuse = System.Drawing.Color.DarkGray.ToArgb() } }; speckleWall.elements = new List <Base> { mullions }; } GetAllRevitParamsAndIds(speckleWall, revitWall, new List <string> { "WALL_USER_HEIGHT_PARAM", "WALL_BASE_OFFSET", "WALL_TOP_OFFSET", "WALL_BASE_CONSTRAINT", "WALL_HEIGHT_TYPE", "WALL_STRUCTURAL_SIGNIFICANT" }); GetHostedElements(speckleWall, revitWall); //Report.Log($"Converted Wall {revitWall.Id}"); return(speckleWall); }
public override int GetHashCode() { return(Name.GetSafeHashCode() ^ Iid.GetHashCode() ^ ProxyClsid.GetHashCode() ^ NumMethods.GetHashCode() ^ Base.GetSafeHashCode() ^ TypeLib.GetHashCode() ^ TypeLibVersion.GetSafeHashCode() ^ RuntimeInterface.GetHashCode() ^ Source.GetHashCode()); }
public Example_Booklet(Base parent) : base(parent, "Example_Booklet") { }
private void ColorBoxChanged(Base control) { UpdateControls(SelectedColor); Invalidate(); }
public static string GetUserStatic() { Base class1 = new Base(); return(class1.GetUser()); }
// GET: Bases/Create public ActionResult Create() { Base @base = new Base(); return(View(@base)); }
/// <inheritdoc/> public override void Assign(Base source) { BaseAssign(source); }
void makeCalls(Caller myCaller, Base myBase) { string NAMESPACE = "director_classesNamespace."; myCaller.set(myBase); DoubleHolder dh = new DoubleHolder(444.555); // Class pointer, reference and pass by value tests if (myCaller.ValCall(dh).val != dh.val) { throw new Exception("failed"); } if (myCaller.RefCall(dh).val != dh.val) { throw new Exception("failed"); } if (myCaller.PtrCall(dh).val != dh.val) { throw new Exception("failed"); } // Fully overloaded method test (all methods in base class are overloaded) if (NAMESPACE + myCaller.FullyOverloadedCall(10) != myBase.GetType() + "::FullyOverloaded(int)") { throw new Exception("failed"); } if (NAMESPACE + myCaller.FullyOverloadedCall(true) != myBase.GetType() + "::FullyOverloaded(bool)") { throw new Exception("failed"); } // Semi overloaded method test (some methods in base class are overloaded) if (NAMESPACE + myCaller.SemiOverloadedCall(-678) != myBase.GetType() + "::SemiOverloaded(int)") { throw new Exception("failed"); } if (myCaller.SemiOverloadedCall(true) != "Base" + "::SemiOverloaded(bool)") { throw new Exception("failed"); } // Default parameters methods test if (NAMESPACE + myCaller.DefaultParmsCall(10, 2.2) != myBase.GetType() + "::DefaultParms(int, double)") { throw new Exception("failed"); } if (myBase.GetType() == typeof(CSharpDerived)) // special handling for C# derived classes, there is no way to do this any other way { if (NAMESPACE + myCaller.DefaultParmsCall(10) != myBase.GetType() + "::DefaultParms(int, double)") { throw new Exception("failed"); } } else { if (NAMESPACE + myCaller.DefaultParmsCall(10) != myBase.GetType() + "::DefaultParms(int)") { throw new Exception("failed"); } } myCaller.reset(); }
private void onButtonNewGameClick(Base control, EventArgs args) { Program.screenManager.LoadScreen("newgame"); }
/// <summary> /// Handles the splitter moved event. /// </summary> /// <param name="control">Event source.</param> protected virtual void OnSplitterMoved(Base control, EventArgs args) { InvalidateChildren(); }
private void onButtonQuitClick(Base control, EventArgs args) { Program.quitFlag = true; }
public RegisterLoginBLL() { this.Base = new Base(); }