private static void Main(string[] args) { Configuration configs = LoadData <Configuration>("config", Directory.GetCurrentDirectory()); Game.Initialize(configs, OptionHandler.ParseOptions(args)); Game.Run(); }
/// <summary> /// Read in the module values from a saved <see cref="OptionHandler"/> instance. /// </summary> /// <param name="backupValues">OptionHandler that stores the saved values</param> public virtual void RestoreValues(OptionHandler backupValues) { if (Handler != null) { Handler.ReadState(backupValues); } }
private void BindData() { RequestFR req = new RequestFR(); //reqid = Convert.ToInt32(Session["reqID"]); RequestHandler rq = new RequestHandler(); req = rq.GetRequestDetails(reqid); lblRequestID.Text = req.ID.ToString(); Category ct = new CategoryHandler().GetCategoryDetails(req.CatID); lblCategory.Text = ct.Name; // lblCourseName.Text = req.CourseName; lblLocation.Text = req.Location; lblDescription.Text = req.Note; OptionHandler opt1 = new OptionHandler(); List <Option> optlist1 = opt1.GetOptionListByReqID(req.ID); foreach (var item in optlist1) { chblOptions.Items.Add(item.Name); chblOptions.Items.FindByText(item.Name).Selected = true; } //lblSessionStart.Text = req.Sessionstart_time.ToString(); //lblSessionEnd.Text = req.Sessionend_time.ToString(); //pcal1.Text = req.Sessiondate; ResourceHandler rs = new ResourceHandler(); List <Resource> reslist = rs.GetResourceListByReqID(req.ID); grdResourceList.DataSource = reslist; grdResourceList.DataBind(); ViewState.Add("req", req); }
/// <summary> /// Configure option handler related stuff /// </summary> private void SetupNodePlacerOptions() { // create the EditorControl var editorFactory = new DefaultEditorFactory(); nodePlacerOptionHandler = new OptionHandler("Placer Options"); editorControl = editorFactory.CreateControl(nodePlacerOptionHandler, true, true); editorControl.Dock = DockStyle.Fill; //order is important here... placerOptionsBox.Controls.Add(editorControl); placerOptionsBox.PerformLayout(); descriptorCollection = new List <INodePlacerConfiguration>(); selectionProvider = new DefaultSelectionProvider <INodePlacerConfiguration>(descriptorCollection, delegate { return(true); }) { ContextLookup = Lookups.CreateContextLookupChainLink( (subject, type) => ((type == typeof(IPropertyMapBuilder) && (subject is INodePlacerConfiguration)) ? new AttributeBasedPropertyMapBuilderAttribute().CreateBuilder(subject.GetType()) : null)) }; //when the selection content changes, trigger this action (usually rebuild associated option handlers) selectionProvider.SelectedItemsChanged += SelectionProviderSelectionChanged; selectionProvider.PropertyItemsChanged += delegate { UpdatePreview(); SelectionProviderSelectionChanged(this, null); }; }
public Option(string name, string description, OptionHandler handler, params string[] alias) { Name = name; Description = description; Alias = alias; Handler = handler; }
/// <summary> /// Initializes the option handler for the export /// </summary> private void SetupHandler() { handler = new OptionHandler(LayoutOptions); OptionItem componentItem = handler.AddList(ComponentAssignment, new[] { ComponentAssignmentStrategy.Single, ComponentAssignmentStrategy.Connected }, ComponentAssignmentStrategy.Single); OptionItem subgraphItem = handler.AddList(SubgraphLayout, SubGraphLayouts.Keys, LayoutIncremental); handler.AddGeneric(SubgraphPositioning, SubgraphPlacement.Barycenter).SetAttribute( OptionItem.SUPPORT_NULL_VALUE_ATTRIBUTE, false); handler.AddGeneric(EdgeRouting, EdgeRoutingStrategy.Automatic).SetAttribute( OptionItem.SUPPORT_NULL_VALUE_ATTRIBUTE, false); handler.AddGeneric(LayoutOrientationStrategy, LayoutOrientation.TopToBottom).SetAttribute( OptionItem.SUPPORT_NULL_VALUE_ATTRIBUTE, false); handler.AddInt(MinimumNodeDistance, 5, 0, int.MaxValue); handler.AddBool(AllowMirroring, true); handler.AddBool(NodeSnapping, true); var cm = new ConstraintManager(Handler); cm.SetEnabledOnValueEquals(componentItem, ComponentAssignmentStrategy.Connected, subgraphItem); }
private void BindData() { List <Category> allcats = new List <Category>(); CategoryHandler cth = new CategoryHandler(); allcats = cth.GetCategoryList(); LoadListControl <Category>(drpChooseCategory, allcats, "name", "ID"); List <Option> options = new List <Option>(); OptionHandler opt = new OptionHandler(); options = opt.GetOptionList(); LoadListControl <Option>(chkblSelecetOptions, options, "name", "ID"); LocationHandler locH = new LocationHandler(); List <Location> loclist = locH.GetAllLocation(); drpNewResLocation.DataSource = loclist; drpNewResLocation.DataTextField = "name"; drpNewResLocation.DataValueField = "id"; drpNewResLocation.DataBind(); List <Resource> reslist = new List <Resource>(); ResourceHandler rs = new ResourceHandler(); reslist = rs.GetResourceList(); grdResourceList.DataSource = reslist; grdResourceList.DataBind(); }
private void LoadRowsContents(GridViewRowEventArgs e) { int resID = Convert.ToInt32(grdResourceList.DataKeys[e.Row.RowIndex].Value); BulletedList bltoptions = (BulletedList)e.Row.FindControl("bltResOptions"); OptionHandler opt = new OptionHandler(); List <Option> optlist = opt.GetOptionListByResID(resID); bltoptions.DataSource = optlist; bltoptions.DataTextField = "name"; bltoptions.DataBind(); RequestHandler reqH = new RequestHandler(); GridView grdRequestsPerResource = (GridView)e.Row.FindControl("grdRequestsPerResource"); //DataTable reqList = reqH.GetRequestListBySessionDateResID(pcal1.Text, resID); DataTable reqList1 = reqH.GetRequestListBySessionDateResID1(pcal1.Text, resID); if (cbNotShowEmpty.Checked == true) { if (reqList1 != null) { grdRequestsPerResource.DataSource = reqList1; grdRequestsPerResource.DataBind(); } else { e.Row.Visible = false; } } else { grdRequestsPerResource.DataSource = reqList1; grdRequestsPerResource.DataBind(); } }
/// <summary> /// Initializes the option handler for the export /// </summary> private void SetupHandler() { handler = new OptionHandler(PRINTING); OptionGroup currentGroup = handler.AddGroup(OUTPUT); currentGroup.AddBool(HIDE_DECORATIONS, true); currentGroup.AddBool(EXPORT_RECTANGLE, true); currentGroup = handler.AddGroup(DOCUMENT_SETTINGS); var item = currentGroup.AddDouble(SCALE, 1.0); currentGroup.AddBool(CENTER_CONTENT, false); currentGroup.AddBool(PAGE_MARK_PRINTING, false); currentGroup.AddBool(SCALE_DOWN_TO_FIT_PAGE, false); currentGroup.AddBool(SCALE_UP_TO_FIT_PAGE, false); // localization var rm = new ResourceManager("Demo.yFiles.Printing.Printing", Assembly.GetExecutingAssembly()); var rmf = new ResourceManagerI18NFactory(); rmf.AddResourceManager(Handler.Name, rm); Handler.I18nFactory = rmf; }
/// <summary> /// Create a complete editor that allows to edit values in an OptionHandler, together with buttons /// for applying and adopting values and canceling the editor. /// </summary> /// <remarks>The actual buttons present depend on the state of the <paramref name="autoAdopt"/> /// and <paramref name="autoCommit"/> parameters, i.e. the Apply and Adopt buttons are /// only shown if the respective parameter is <see langword="false"/>.</remarks> /// <param name="oh">The OptionHandler for which to create an editor.</param> /// <param name="autoAdopt">Whether the Editor should be in autoAdopt state. If <see langword="false"/>, /// an Adopt button is shown on the form, and values that are changed externally must be explicitly /// adopted from the underlying OptionHandler <paramref name="oh"/>.</param> /// <param name="autoCommit">Whether the Editor should be in autoCommit state. If <see langword="false"/>, /// an Apply button is shown on the form, and values that are changed in the editor must be explicitly /// commited to the underlying OptionHandler <paramref name="oh"/>.</param> /// <returns>A new EditorForm</returns> public virtual EditorForm CreateEditor(OptionHandler oh, bool autoAdopt, bool autoCommit) { EditorForm form = new EditorForm(CreateControl(oh, autoAdopt, autoCommit)); ConfigureForm(form); return(form); }
private OptionHandler CreateOptionHandler() { var handler = new OptionHandler(PreferredPlacement); IOptionItem item; handler.AddString(LabelText, "Label").PropertyChanged += OptionHandlerPropertyChanged; handler.AddDouble(PlacementDistance, 5.0).PropertyChanged += OptionHandlerPropertyChanged; item = handler.AddList(PlacementAlongEdge, PlacementsAlongEdge, PlacementsAlongEdge[0]); item.PropertyChanged += OptionHandlerPropertyChanged; item = handler.AddList(PlacementSideOfEdge, PlacementsSideOfEdge, PlacementsSideOfEdge[0]); item.PropertyChanged += OptionHandlerPropertyChanged; item = handler.AddList(PlacementSideReference, SideReferences, SideReferences[0]); item.PropertyChanged += OptionHandlerPropertyChanged; handler.AddDouble(Angle, 0.0).PropertyChanged += OptionHandlerPropertyChanged; item = handler.AddList(AngleReference, AngleReferences, AngleReferences[0]); item.PropertyChanged += OptionHandlerPropertyChanged; item = handler.AddList(AngleRotation, AngleRotations, AngleRotations[0]); item.PropertyChanged += OptionHandlerPropertyChanged; handler.AddBool(AngleAdd180Degree, false).PropertyChanged += OptionHandlerPropertyChanged; var rm = new ResourceManager("Demo.yFiles.Layout.PreferredLabelPlacement.PreferredLabelPlacement", Assembly.GetExecutingAssembly()); var rmf = new ResourceManagerI18NFactory(); rmf.AddResourceManager(handler.Name, rm); handler.I18nFactory = rmf; return(handler); }
public Option(string name, string usage, string description, OptionHandler handler) { Name = name; Usage = usage; Description = description; Handler = handler; }
public OptionTableEntry(String option, OptionHandler handler, String sameAs, bool display) { this.option = option; this.handler = handler; this.sameAs = sameAs; this.display = display; }
protected void grdResourceList_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { RequestFR req = (RequestFR)ViewState["req"]; int resID = Convert.ToInt32(grdResourceList.DataKeys[e.Row.RowIndex].Value); BulletedList bltoptions = (BulletedList)e.Row.FindControl("bltResOptions"); OptionHandler opt = new OptionHandler(); List <Option> optlist = opt.GetOptionListByResID(resID); bltoptions.DataSource = optlist; bltoptions.DataTextField = "name"; bltoptions.DataBind(); GridView grdApprovedRequestList = (GridView)e.Row.FindControl("grdApprovedRequestList"); approvedreqlist = RequestBussiness.GetRequestListBySessionDate_resID_status(pcal1.Text, resID, 2); grdApprovedRequestList.DataSource = approvedreqlist; grdApprovedRequestList.DataBind(); GridView grdPendingRequestList = (GridView)e.Row.FindControl("grdRequestPendingList"); List <RequestFR> perl = RequestBussiness.GetRequestListBySessionDate_resID_status(pcal1.Text, resID, 1); IEnumerable <RequestFR> perl1 = null; //if (perl != null) //{ // perl1 = perl.Where(item => (item.Sessionstart_time >= req.Sessionstart_time) // && (item.Sessionstart_time < req.Sessionend_time)); //} grdPendingRequestList.DataSource = perl1; grdPendingRequestList.DataBind(); ViewState.Add("req", req); } }
protected void drpCategory_SelectedIndexChanged1(object sender, EventArgs e) { if ((drpCategory.SelectedIndex == 1) || (drpCategory.SelectedIndex == 2) || (drpCategory.SelectedIndex == 3)) { trOptions.Visible = true; chblOptions.Enabled = true; drpLocation.Enabled = true; LocationHandler locH = new LocationHandler(); drpLocation.DataSource = locH.GetLocationListByCatID(Convert.ToInt32(drpCategory.SelectedValue)); drpLocation.DataTextField = "name"; drpLocation.DataValueField = "name"; drpLocation.DataBind(); drpLocation.Items.Insert(0, "انتخاب کنید"); OptionHandler opt = new OptionHandler(); optlist = opt.GetOptionListByCatID(Convert.ToInt32(drpCategory.SelectedValue)); chblOptions.DataSource = optlist; chblOptions.DataTextField = "name"; chblOptions.DataValueField = "ID"; chblOptions.DataBind(); } else { trOptions.Visible = false; chblOptions.Enabled = false; drpLocation.Enabled = false; } }
/// <summary> /// Helper method that creates a view for a specifice <see cref="Handler.OptionHandler"/>. /// </summary> /// <param name="forHandler">The handler to create a view for.</param> /// <param name="autoAdopt">if set to <see langword="true"/> value changes in /// the handler will automatically be adopted by the view.</param> /// <param name="autoCommit">if set to <see langword="true"/> value changes in /// the view will automatically be committed to the handler.</param> /// <returns>A new view.</returns> public static IModelView CreateView(OptionHandler forHandler, bool autoAdopt, bool autoCommit) { CopiedOptionHandler view2 = new CopiedOptionHandler(forHandler); view2.IsAutoAdopt = autoAdopt; view2.IsAutoCommit = autoCommit; return(view2); }
public CopiedOptionHandler(OptionHandler handler) : base(handler) { this.handler = handler; mapping = new Dictionary <IOptionItem, CopiedOptionItem>(); base.Init(handler); mapping[handler] = this; handler.AddView(this); }
/// <summary> /// Callback that is triggered once the <see cref="OptionHandler"/> property changes. /// </summary> /// <param name="oldValue">The old value.</param> /// <param name="newValue">The new value.</param> protected virtual void OnOptionHandlerChanged(OptionHandler oldValue, OptionHandler newValue) { if (oldValue != null) { IModelView view = View; if (view is CopiedOptionHandler && view.Handler == oldValue) { CopiedOptionHandler oldView = (CopiedOptionHandler)view; if (newValue != null) { View = CreateView(newValue); } else { View = null; } oldView.Dispose(); } else { if (newValue != null) { View = CreateView(newValue); } else { View = null; } } } else { if (newValue != null) { View = CreateView(newValue); } else { View = null; } } if (newValue != null) { if (I18NFactory != null) { Title = I18NFactory.GetString(newValue.Name, newValue.Name); } else { Title = newValue.Name; } } else { Title = string.Empty; } }
private void InitializeOptions() { Handler = CreateOptionHandler(); // populate the control to visualize them editorControl.OptionHandler = Handler; editorControl.IsAutoAdopt = true; editorControl.IsAutoCommit = true; }
/// <summary> /// Create a new ConstraintManager that is automatically bound to <paramref name="_handler"/> /// view change events. /// </summary> /// <param name="_handler"></param> public ConstraintManager(OptionHandler _handler) { this._handler = _handler; _handler.ViewChanged += handler_ViewChanged; foreach (IModelView view in _handler.ActiveViews) { viewConstraints[view] = new List <IConstraint>(); } }
private void BindData() { OptionHandler opt = new OptionHandler(); optlist = opt.GetOptionList(); grdOptionList.DataSource = optlist; grdOptionList.DataBind(); ViewState.Add("optlist", optlist); }
/// <inheritdoc/> public override EditorControl CreateControl(OptionHandler oh, bool autoAdopt, bool autoCommit) { PropertyModelView view = new PropertyModelView(oh, this, true); view.IsAutoAdopt = autoAdopt; view.IsAutoCommit = autoCommit; EditorControl clientControl = new DialogEditorControl(view, MultiLine); return(clientControl); }
public override void Dispose() { if (handler != null) { handler.RemoveView(this); mapping.Clear(); handler = null; base.Dispose(); } }
/// <summary> /// Initializes the option handler for the export /// </summary> private void SetupHandler() { handler = new OptionHandler(IMAGE_EXPORT); handler.PropertyChanged += handler_PropertyChanged; OptionGroup currentGroup = handler.AddGroup(OUTPUT); OptionItem formatItem = currentGroup.AddList(FORMAT, Formats.Keys, FORMAT_JPG); currentGroup.AddBool(HIDE_DECORATIONS, true); currentGroup.AddBool(EXPORT_RECTANGLE, true); currentGroup = handler.AddGroup(BOUNDS); OptionItem sizeItem = currentGroup.AddList(SIZE, SizeModes, USE_ORIGINAL_SIZE); IOptionItem widthItem = currentGroup.AddInt(WIDTH, DefaultWidth, 1, int.MaxValue); IOptionItem heightItem = currentGroup.AddInt(HEIGHT, DefaultHeight, 1, Int32.MaxValue); currentGroup.AddDouble(SCALE, DefaultScale); currentGroup = handler.AddGroup(MARGINS); currentGroup.AddInt(LEFT_MARGIN, DefaultMargins); currentGroup.AddInt(RIGHT_MARGIN, DefaultMargins); currentGroup.AddInt(TOP_MARGIN, DefaultMargins); currentGroup.AddInt(BOTTOM_MARGIN, DefaultMargins); currentGroup = handler.AddGroup(JPG); IOptionItem qualityItem = currentGroup.AddDouble(QUALITY, DefaultQuality); currentGroup = handler.AddGroup(TIFF); OptionItem compressionItem = currentGroup.AddList(COMPRESSION, Compressions.Keys, DefaultCompression); currentGroup = handler.AddGroup(PNG); var transparentItem = currentGroup.AddBool(TRANSPARENT, false); var cm = new ConstraintManager(Handler); cm.SetEnabledOnValueEquals(sizeItem, SPECIFY_WIDTH, widthItem); cm.SetEnabledOnValueEquals(sizeItem, SPECIFY_HEIGHT, heightItem); cm.SetEnabledOnValueEquals(formatItem, FORMAT_PNG, transparentItem); cm.SetEnabledOnValueEquals(formatItem, FORMAT_JPG, qualityItem); cm.SetEnabledOnValueEquals(formatItem, FORMAT_TIFF, compressionItem); // localization var rm = new ResourceManager("Demo.yFiles.ImageExport.ImageExport", Assembly.GetExecutingAssembly()); var rmf = new ResourceManagerI18NFactory(); rmf.AddResourceManager(Handler.Name, rm); Handler.I18nFactory = rmf; }
/// <inheritdoc/> public override EditorControl CreateControl(OptionHandler oh, bool autoAdopt, bool autoCommit) { PropertyModelView view = new PropertyModelView(oh, this); view.IsAutoAdopt = autoAdopt; view.IsAutoCommit = autoCommit; PropertyGridEditorControl clientControl = new PropertyGridEditorControl(view); clientControl.ToolbarVisible = ToolbarVisible; return(clientControl); }
public static void EditDefaults(GraphEditorWindow form) { OptionHandler handler = CreateHandler(form); handler.I18nFactory = i18NFactory; if (new EditorForm { OptionHandler = handler, IsAutoAdopt = true, IsAutoCommit = true, ShowResetButton = true, Owner = form, Title = i18NFactory.GetString(NAME, NAME) }.ShowDialog() == true) { CommitValuesToForm(handler, form); } }
private void BindData() { OptionHandler opt = new OptionHandler(); optlist = opt.GetOptionList(); LoadListControl <Option>(chkblResourceNewOptions, optlist, "name", "ID"); LocationHandler locH = new LocationHandler(); loclist = locH.GetAllLocation(); LoadListControl <Location>(drpResourceNewLocation, loclist, "name", "ID"); }
private void BindData() { List <string> v = new List <string>(); OptionHandler opt = new OptionHandler(); optlist = opt.GetOptionList(); drpChooseOption.DataSource = optlist; drpChooseOption.DataTextField = "name"; drpChooseOption.DataValueField = "ID"; drpChooseOption.DataBind(); }
static OptionHandler CreateHandler(GraphEditorForm form) { GraphControl gc = form.GraphControl; IGraph g = form.Graph; GraphEditorInputMode geim = form.GraphEditorInputMode; OptionHandler handler = new OptionHandler(NAME); OptionGroup controlGroup = handler.AddGroup(UI_DEFAULTS); controlGroup.AddDouble(HitTestRadius, gc.HitTestRadius); controlGroup.AddBool(AutoRemoveEmptyLabels, geim.AutoRemoveEmptyLabels); // var gridEnabledItem = controlGroup.AddBool(GridEnabled, form.Grid.Enabled); var gridVisibleItem = controlGroup.AddBool(GridVisible, form.GridVisible); var gridWidthItem = controlGroup.AddInt(GridWidth, form.GridWidth); var gridSnapTypeItem = controlGroup.AddList <GridSnapTypes>(GridSnapeType, new List <GridSnapTypes> { GridSnapTypes.All, GridSnapTypes.GridPoints, GridSnapTypes.HorizontalLines, GridSnapTypes.Lines, GridSnapTypes.None, GridSnapTypes.VerticalLines }, form.GridSnapType); ConstraintManager cm = new ConstraintManager(handler); cm.SetEnabledOnCondition( ConstraintManager.LogicalCondition.Or(cm.CreateValueEqualsCondition(gridVisibleItem, true), cm.CreateValueEqualsCondition(gridVisibleItem, true)), gridWidthItem); cm.SetEnabledOnValueEquals(gridVisibleItem, true, gridSnapTypeItem); if (g != null) { OptionGroup graphGroup = handler.AddGroup(GRAPH_SETTINGS); graphGroup.AddBool(AutoAdjustPreferredLabelSize, g.NodeDefaults.Labels.AutoAdjustPreferredSize); graphGroup.AddBool(AutoCleanupPorts, g.NodeDefaults.Ports.AutoCleanUp); OptionGroup sharingGroup = graphGroup.AddGroup(SHARING_SETTINGS); sharingGroup.AddBool(ShareDefaultNodeStyleInstance, g.NodeDefaults.ShareStyleInstance); sharingGroup.AddBool(ShareDefaultEdgeStyleInstance, g.EdgeDefaults.ShareStyleInstance); sharingGroup.AddBool(ShareDefaultNodeLabelStyleInstance, g.NodeDefaults.Labels.ShareStyleInstance); sharingGroup.AddBool(ShareDefaultEdgeLabelStyleInstance, g.EdgeDefaults.Labels.ShareStyleInstance); sharingGroup.AddBool(ShareDefaultPortStyleInstance, g.NodeDefaults.Ports.ShareStyleInstance); sharingGroup.AddBool(ShareDefaultNodeLabelModelParameter, g.NodeDefaults.Labels.ShareLayoutParameterInstance); sharingGroup.AddBool(ShareDefaultEdgeLabelModelParameter, g.EdgeDefaults.Labels.ShareLayoutParameterInstance); } OptionGroup miscGroup = handler.AddGroup(MISC_SETTINGS); UndoEngine undoEngine = form.Graph.GetUndoEngine(); if (undoEngine != null) { miscGroup.AddInt(UndoEngine_Size, undoEngine.Size); } return(handler); }
protected void drpCategory_SelectedIndexChanged1(object sender, EventArgs e) { if ((drpCategory.SelectedIndex == 1) || (drpCategory.SelectedIndex == 2) || (drpCategory.SelectedIndex == 3)) { if (drpCategory.SelectedIndex == 1) { txtCapacity.Text = 1.ToString(); txtCapacity.ReadOnly = true; } else { txtCapacity.ReadOnly = false; } LocationHandler locH = new LocationHandler(); List <Location> loclist = locH.GetLocationListByCatID(Convert.ToInt32(drpCategory.SelectedValue)); if (loclist != null) { drpLocation.Enabled = true; drpLocation.DataSource = loclist; drpLocation.DataTextField = "name"; drpLocation.DataValueField = "ID"; drpLocation.DataBind(); drpLocation.Items.Insert(0, "انتخاب کنید"); } else { drpLocation.ClearSelection(); drpLocation.Enabled = false; } OptionHandler opt = new OptionHandler(); optlist = opt.GetOptionListByCatID(Convert.ToInt32(drpCategory.SelectedValue)); if (optlist != null) { trOptions.Visible = true; chblOptions.Enabled = true; chblOptions.DataSource = optlist; chblOptions.DataTextField = "name"; chblOptions.DataValueField = "ID"; chblOptions.DataBind(); } else { trOptions.Visible = false; chblOptions.Enabled = false; } } else { trOptions.Visible = false; chblOptions.Enabled = false; drpLocation.Enabled = false; } }
public OptionTableEntry( String option, OptionHandler handler, String sameAs, bool list, bool displayMShip ) { this.option = option; this.handler = handler; this.sameAs = sameAs; this.list = list; this.displayMShip = displayMShip; }
private ArgumentOption(string key, OptionHandler handler, ActivateHandler activator) { this.key = key; this.handler = handler; this.activator = activator; }
public ArgumentOption(string key, OptionHandler handler) : this(key, handler, null) { }
public TableEntry( String option, OptionHandler handler ) { this.option = option; this.handler = handler; }