public BorderPromptResult(string stringResult) { this.queryStatus = PromptResultStatus.Keyword; this.stringResult = stringResult; this.firstPoint = Point3d.Origin; this.secondPoint = Point3d.Origin; }
public BorderPromptResult(PromptResultStatus queryStatus) { this.queryStatus = queryStatus; this.firstPoint = Point3d.Origin; this.secondPoint = Point3d.Origin; this.stringResult = ""; }
public BorderPromptResult(Point3d firstPoint, Point3d secondPoint) { this.queryStatus = PromptResultStatus.OK; this.firstPoint = firstPoint; this.secondPoint = secondPoint; this.stringResult = ""; }
public BorderPromptResult(PromptResultStatus queryStatus) { this.queryStatus = queryStatus; this.firstPoint = Point3d.Origin; this.secondPoint = Point3d.Origin; this.stringResult = ""; }
public BorderPromptResult(string stringResult) { this.queryStatus = PromptResultStatus.Keyword; this.stringResult = stringResult; this.firstPoint = Point3d.Origin; this.secondPoint = Point3d.Origin; }
public BorderPromptResult(Point3d firstPoint, Point3d secondPoint) { this.queryStatus = PromptResultStatus.OK; this.firstPoint = firstPoint; this.secondPoint = secondPoint; this.stringResult = ""; }
/// <summary> /// Метод служит для первоначального опроса пользователя /// </summary> public void GetInitialData() { PromptIntegerResult piRes = null; // Номер первого Layout bool exitLoop = false; // Условие продолжения команды do { // Получаем начальный номер для Layout PromptIntegerOptions pio = new PromptIntegerOptions("\n" + CP.FirstLayoutNumber); pio.Keywords.Add(CO.Configuration); if (!this.useTemplate) { pio.Keywords.Add(CO.UseTemplate); pio.Keywords.Add(CO.TemplateSelect); } pio.AllowNegative = false; pio.AllowNone = false; pio.DefaultValue = this.Index; piRes = ed.GetInteger(pio); // TODO Обрабатывать выход по escape switch (piRes.Status) { // Введён номер - продолжаем case PromptStatus.OK: this.Index = piRes.Value; exitLoop = true; break; // Отрабатываем ключевые слова case PromptStatus.Keyword: if (piRes.StringResult.Equals(CO.Configuration, StringComparison.InvariantCulture)) { Configuration.AppConfig.Instance.ShowDialog(); } else { TemplateProcessing(piRes.StringResult); } break; default: this.InitialDataStatus = PromptResultStatus.Cancelled; return; } } while (!exitLoop); this.InitialDataStatus = PromptResultStatus.OK; }
/// <summary> /// Метод служит для первоначального опроса пользователя /// </summary> public void GetInitialData() { PromptIntegerResult piRes = null; // Номер первого Layout bool exitLoop = false; // Условие продолжения команды do { // Получаем начальный номер для Layout PromptIntegerOptions pio = new PromptIntegerOptions("\n"+CP.FirstLayoutNumber); pio.Keywords.Add(CO.Configuration); if (!this.useTemplate) { pio.Keywords.Add(CO.UseTemplate); pio.Keywords.Add(CO.TemplateSelect); } pio.AllowNegative = false; pio.AllowNone = false; pio.DefaultValue = this.Index; piRes = ed.GetInteger(pio); // TODO Обрабатывать выход по escape switch (piRes.Status) { // Введён номер - продолжаем case PromptStatus.OK: this.Index = piRes.Value; exitLoop = true; break; // Отрабатываем ключевые слова case PromptStatus.Keyword: if (piRes.StringResult.Equals(CO.Configuration, StringComparison.InvariantCulture)) Configuration.AppConfig.Instance.ShowDialog(); else TemplateProcessing(piRes.StringResult); break; default: this.InitialDataStatus = PromptResultStatus.Cancelled; return; } } while (!exitLoop); this.InitialDataStatus = PromptResultStatus.OK; }