Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     var designer = new Designer();
     designer.RootComponent.Text = "My Test Root";
     designer.RootComponent.BackColor = Color.Magenta;
     designer.DesignerView.Text = "My Test View";
     designer.DesignerView.Dock = DockStyle.Fill;
     designer.DesignerView.Parent = this;
 }
Exemplo n.º 2
0
        public static DesignerApi ToDesignerApi(this Designer designer)
        {
            var comicsApi = designer.Comics.Select(c => c.Comic.ToComicApi());

            return(new DesignerApi()
            {
                Id = designer.Id,
                Name = designer.Name,
                Comics = comicsApi
            });
        }
Exemplo n.º 3
0
        private void UpdateStatusBar()
        {
            RectangleF selectedRect           = GetSelectedRect();
            bool       IsPageOrReportSelected = Designer.SelectedObjects.IsPageSelected || Designer.SelectedObjects.IsReportSelected;
            string     location = IsPageOrReportSelected ? "" :
                                  selectedRect.Left.ToString() + "; " + selectedRect.Top.ToString();
            string size = IsPageOrReportSelected ? "" :
                          selectedRect.Width.ToString() + "; " + selectedRect.Height.ToString();

            Designer.ShowStatus(location, size, "");
        }
Exemplo n.º 4
0
 private static Procedure ReloadProc(DB3 nodeID, ColumnSelector selector)
 {
     return(Designer.GetNewDesigner(Text.Method.ReloadGo, true, true)
            .ParamNodeColumns(nodeID, selector)
            .Param("@Table", Designer.Inliner.Table)
            .Param("@Where", Designer.Inliner.Expression)
            .From("@Table")
            .Where("@Where")
            .Select()
            .EndProc());
 }
Exemplo n.º 5
0
        public IActionResult Update(string Inv_Id, string Inv_Title, string Inv_Price)
        {
            var invitation = context.InvitationCards.Find(int.Parse(Inv_Id));

            invitation.Inv_Title = Inv_Title;
            invitation.Inv_Price = float.Parse(Inv_Price);
            Designer des = context.Designers.Where(d => d.Invitations.Where(i => i.Inv_Id == int.Parse(Inv_Id)).FirstOrDefault().Inv_Id == invitation.Inv_Id).FirstOrDefault();

            context.SaveChanges();
            return(RedirectToAction("TestDesiEdit", new { id = des.ID }));
        }
 public void CleanUp()
 {
     if (Designer != null)
     {
         Designer.CleanUp();
     }
     ImageSelectionList.RemoveAt(0);
     StoragePath.Save(ImageSelectionList);
     StoragePath.Save(Settings);
     Logger.Log("ViewModel clean up done");
 }
Exemplo n.º 7
0
        static void Main(string[] args)
        {
            var factory  = new ShapeFactory();
            var client   = new Client();
            var designer = new Designer(factory);
            var painter  = new Painter.Painter();
            var canvas   = new Canvas();

            client.CreatePictureDraft(designer, Console.In);
            client.DrawPicture(painter, canvas);
        }
Exemplo n.º 8
0
        public ActionResult Create([Bind(Include = "LocalDesignerID,DesignerID,DesignerName")] Designer designer)
        {
            if (ModelState.IsValid)
            {
                db.Designers.Add(designer);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(designer));
        }
Exemplo n.º 9
0
 public Stetic.ComponentType[] GetComponentTypes()
 {
     if (Designer != null)
     {
         return(Designer.GetComponentTypes());
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 10
0
 public override void OnMouseMove(Designer designer, System.Windows.Forms.MouseEventArgs e)
 {
     designer.Cursor = ToolCursor;
     if (e.Button == MouseButtons.Left)
     {
         Point point = new Point(e.X, e.Y);
         designer.Items[0].MoveHandleTo(point, 8);
         designer.Refresh();
         //designer.SelectedItem(designer.Items[0]);
     }
 }
Exemplo n.º 11
0
 public ActionResult Edit([Bind(Include = "DesignerId,Name,Mobile,Email,EmployeeId")] Designer designer)
 {
     if (ModelState.IsValid)
     {
         db.Entry(designer).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EmployeeId = new SelectList(db.Employees, "EmployeeId", "Code", designer.EmployeeId);
     return(View(designer));
 }
Exemplo n.º 12
0
        public async Task <IActionResult> PutDesigner([FromBody] Designer designer)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest("Error verifique os campos e tente novamente mais tarde."));
            }

            await _designersRepository.UpdateAsync(designer);

            return(Ok("Desnhista adicionado com sucesso."));
        }
Exemplo n.º 13
0
        public void AddGoal()
        {
            int       width    = 10;
            int       height   = 12;
            IDesigner theLevel = new Designer();

            theLevel.LevelBuilder(width, height);

            theLevel.AddGoal(2, 5);
            Assert.AreEqual(theLevel.GetPartAtIndex(2, 5), Parts.Goal);
        }
Exemplo n.º 14
0
 public DashboardDesignerForm()
 {
     InitializeComponent();
     _dashboardDesigner = new DashboardDesigner();
     KeyUp += OnKeyUp;
     Controls.Add(_dashboardDesigner);
     _dashboardDesigner.Dock = DockStyle.Fill;
     _dashboardDesigner.CreateRibbon();
     _dashboardDesigner.ActionOnClose = DashboardActionOnClose.Discard;
     _editHistory = (History)Designer.GetPropertyValue("History");
 }
Exemplo n.º 15
0
        public async Task <IActionResult> OnGetAsync(string userId, string code)
        {
            if (userId == null || code == null)
            {
                return(RedirectToPage("/Index"));
            }

            var user = await _userManager.FindByIdAsync(userId);

            if (user == null)
            {
                return(NotFound($"Unable to load user with ID '{userId}'."));
            }

            code = Encoding.UTF8.GetString(WebEncoders.Base64UrlDecode(code));
            var result = await _userManager.ConfirmEmailAsync(user, code);

            if (!result.Succeeded)
            {
                ShowInvalid = true;
            }
            else
            {
                IList <string> role = await _userManager.GetRolesAsync(user);

                if (role.Contains("Photographer"))
                {
                    Photographer ph = _context.Photographers.Where(p => p.Users.Id == user.Id).FirstOrDefault();
                    Path = "~/Photographers/TestPhoEdit/" + ph.Ph_Id;
                }
                else if (role.Contains("User"))
                {
                    Member m = _context.Members.Where(me => me.Users.Id == user.Id).FirstOrDefault();
                    Path = "Home/TestView" + m.ID;
                }
                else if (role.Contains("Designer"))
                {
                    Designer D = _context.Designers.Where(me => me.Users.Id == user.Id).FirstOrDefault();
                    Path = "~/Designers/TestDesiEdit/" + D.ID;
                }
                else if (role.Contains("WeddingHall"))
                {
                    Designer D = _context.Designers.Where(me => me.Users.Id == user.Id).FirstOrDefault();
                    Path = "~/WeddingHalls/TestWeddEdit";
                }
                //throw new InvalidOperationException($"Error confirming email for user with ID '{userId}':");
                foreach (var error in result.Errors)
                {
                    ModelState.AddModelError(string.Empty, error.Description);
                }
            }
            StatusMessage = result.Succeeded ? "Thank you for confirming your email." : "Error confirming your email.";
            return(Page());
        }
Exemplo n.º 16
0
        public IHttpActionResult GetDesigner(int id)
        {
            Designer designer = db.Designers.Find(id);

            if (designer == null)
            {
                return(NotFound());
            }

            return(Ok(designer));
        }
Exemplo n.º 17
0
        internal Mapper(Designer root)
            : base(root, ObjectType.Mapper)
        {
            compiled = true;
            Sql      = root.Name;

            Build = (buildContext, buildArgs) =>
            {
                return(Sql);
            };
        }
Exemplo n.º 18
0
        public void AddEmpty()
        {
            int       width    = 10;
            int       height   = 12;
            IDesigner theLevel = new Designer();

            theLevel.LevelBuilder(width, height);

            theLevel.AddEmpty(1, 1);
            Assert.AreEqual(theLevel.GetPartAtIndex(1, 1), Parts.Empty);
        }
Exemplo n.º 19
0
        public void Redraw()
        {
            Path.ClearPoints();
            var startPoint = Point1.GetOffset(Point1.Item.Margin);
            var endPoint   = Point2.GetOffset(Point2.Item.Margin);
            var path       = Designer.GetPath(startPoint, endPoint);

            Path.AddPoint(Point2.GetOffset(Point2.ConnectionPointSize));
            Path.AddPoints(path);
            Path.AddPoint(Point1.GetOffset(Point2.ConnectionPointSize));
        }
Exemplo n.º 20
0
        public ActionResult Create([Bind(Include = "DesignerId,Name,Company,Established")] Designer designer)
        {
            if (ModelState.IsValid)
            {
                db.Designers.Add(designer);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(designer));
        }
Exemplo n.º 21
0
        public StyleToolbar(Designer designer) : base(designer)
        {
            Name = "StyleToolbar";

            cbxStyle                = new StyleComboBoxItem();
            cbxStyle.Name           = "cbxStyleStyle";
            cbxStyle.StyleSelected += cbxStyle_StyleSelected;
            btnStyles               = CreateButton("btnStyleStyles", Res.GetImage(87), Designer.cmdReportStyles.Invoke);

            Items.AddRange(new BaseItem[] { cbxStyle, btnStyles, CustomizeItem });
            Localize();
        }
Exemplo n.º 22
0
    void WriteFile(string path, string filename)
    {
        string f;

        f = FileBrowserHelpers.CreateFileInDirectory(path, filename + ".waterline");
        Designer.SaveToString();
        FileBrowserHelpers.WriteTextToFile(f, Designer.PGdata);

        f = FileBrowserHelpers.CreateFileInDirectory(path, filename + ".png");
        byte[] bt = Designer.MakeThumbBytes(512);
        FileBrowserHelpers.WriteBytesToFile(f, bt);
    }
Exemplo n.º 23
0
    IEnumerator GetInstance()
    {
        designer       = stageController.GetComponent <Designer>();
        stageMake      = stageController.GetComponent <StageMake>();
        mapData        = designer.mapData;
        stageRail      = stageMake.stageRail;
        roadController = stageController.GetComponent <RoadController>();

        startComplete.startSubject.OnNext(5);

        yield return(null);
    }
Exemplo n.º 24
0
        public IHttpActionResult PostDesigner(Designer designer)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            db.Designers.Add(designer);
            db.SaveChanges();

            return(CreatedAtRoute("DefaultApi", new { id = designer.DesignerId }, designer));
        }
        public void setNameTest()
        {
            DateTime registrationDate = DateTime.Now;

            Designer designer = new Designer(name, surname, userName, password, registrationDate);

            string newName = "Ron";

            designer.Name = newName;

            Assert.AreEqual(newName, designer.Name);
        }
Exemplo n.º 26
0
 /// <inheritdoc/>
 public override bool Run(Designer designer)
 {
     using (DataWizardForm form = new DataWizardForm(designer.ActiveReport))
     {
         bool result = form.ShowDialog() == DialogResult.OK;
         if (result)
         {
             designer.SetModified(this, "EditData");
         }
         return(result);
     }
 }
Exemplo n.º 27
0
        static void Main(string [] args)
        {
            Designer designer = new Designer();
            Painter  painter  = new Painter(Console.Out);
            Client   client   = new Client();

            using (Canvas canvas = new Canvas(Console.Out))
            {
                client.CreatePictureDraft(designer, Console.In, Console.Out);
                client.CreatePicture(painter, canvas);
            }
        }
Exemplo n.º 28
0
        public override void Do()
        {
            SelectionModel sm = (Designer.CurrentSheet as Sheet <Gdk.Event, Cairo.Context, SolidV.MVC.Model>).Model.GetSubModel <SelectionModel>();

            for (int i = 0; i < sm.Selected.Count - 1; i++)
            {
                BinaryRelationShape binaryRelation = (BinaryRelationShape)NewShape.DeepCopy();
                binaryRelation.From = sm.Selected[i];
                binaryRelation.To   = sm.Selected[i + 1];
                Designer.AddShapes(binaryRelation);
            }
        }
 /// <summary>
 /// When stylesVariationListSelectedItem is changed,
 /// this method will be called to update the corresponding style options of designer
 /// </summary>
 public void UpdateStyleVariationStyleOptionsWhenSelectedItemChange()
 {
     try
     {
         Designer.SetStyleOptions(_styleOptions[StylesVariationListSelectedId.Number]);
     }
     catch (Exception e)
     {
         View.ShowErrorMessageBox("Failed when retrieving information from the selected preview image.", e);
         Logger.LogException(e, "UpdateStyleVariationStyleOptionsWhenSelectedItemChange");
     }
 }
Exemplo n.º 30
0
        private static int GetModelPosition(Designer firstDesigner, CommonArtistEntity model)
        {
            for (int i = 0; i < firstDesigner.FavoriteArtists.Count; i++)
            {
                if (firstDesigner.FavoriteArtists[i].ArtistId == model.ArtistId)
                {
                    return(i);
                }
            }

            return(-1);
        }
Exemplo n.º 31
0
    private IEnumerator ShareDataLevel()
    {
        yield return(new WaitForEndOfFrame());

        Designer.SaveToString();
        string str      = Designer.PGdata;
        string filePath = Path.Combine(Application.temporaryCachePath, "custom-level.waterline");

        File.WriteAllText(filePath, str);

        new NativeShare().AddFile(filePath).SetSubject("Waterline Custom Level").SetText("Custom level").Share();
    }
Exemplo n.º 32
0
        private void pageLayoutDesign_DoingSomething(Designer.PageLayoutDesign sender, Designer.PageLayoutDesign.Doing what)
		{
			((MDI) this.ParentForm).DoingSomething(sender, what);
		}
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (components != null)
                    components.Dispose();

                if(this.arDesigner != null)
                {
                    this.arDesigner.Dispose();
                    this.arDesigner = null;
                }
            }

            base.Dispose(disposing);
        }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.arToolbox = new DataDynamics.ActiveReports.Design.Toolbox.Toolbox();
     this.pnlToolbox = new System.Windows.Forms.Panel();
     this.splitterToolboxDesigner = new System.Windows.Forms.Splitter();
     this.arDesigner = new DataDynamics.ActiveReports.Design.Designer();
     this.arPropertyGrid = new System.Windows.Forms.PropertyGrid();
     this.splitterDesignerProperties = new System.Windows.Forms.Splitter();
     this.pnlProperties = new System.Windows.Forms.Panel();
     this.splitterReportExplorerPropertyGrid = new System.Windows.Forms.Splitter();
     this.arStatus = new System.Windows.Forms.StatusBar();
     this.commandBarManager = new DataDynamics.ActiveReports.Design.CommandBarManager();
     ((System.ComponentModel.ISupportInitialize)(this.arToolbox)).BeginInit();
     this.pnlToolbox.SuspendLayout();
     this.pnlProperties.SuspendLayout();
     this.SuspendLayout();
     //
     // arToolbox
     //
     this.arToolbox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.arToolbox.LargeImages = null;
     this.arToolbox.Location = new System.Drawing.Point(0, 0);
     this.arToolbox.Name = "arToolbox";
     this.arToolbox.Selected = null;
     this.arToolbox.Size = new System.Drawing.Size(200, 578);
     this.arToolbox.SmallImages = null;
     this.arToolbox.TabIndex = 0;
     //
     // pnlToolbox
     //
     this.pnlToolbox.Controls.Add(this.arToolbox);
     this.pnlToolbox.Dock = System.Windows.Forms.DockStyle.Left;
     this.pnlToolbox.Location = new System.Drawing.Point(0, 0);
     this.pnlToolbox.Name = "pnlToolbox";
     this.pnlToolbox.Size = new System.Drawing.Size(200, 578);
     this.pnlToolbox.TabIndex = 0;
     //
     // splitterToolboxDesigner
     //
     this.splitterToolboxDesigner.BackColor = System.Drawing.SystemColors.Control;
     this.splitterToolboxDesigner.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.splitterToolboxDesigner.Location = new System.Drawing.Point(200, 0);
     this.splitterToolboxDesigner.Name = "splitterToolboxDesigner";
     this.splitterToolboxDesigner.Size = new System.Drawing.Size(3, 578);
     this.splitterToolboxDesigner.TabIndex = 1;
     this.splitterToolboxDesigner.TabStop = false;
     //
     // arDesigner
     //
     this.arDesigner.Dock = System.Windows.Forms.DockStyle.Fill;
     this.arDesigner.IsDirty = false;
     this.arDesigner.Location = new System.Drawing.Point(203, 0);
     this.arDesigner.LockControls = false;
     this.arDesigner.Name = "arDesigner";
     this.arDesigner.PropertyGrid = this.arPropertyGrid;
     this.arDesigner.ReportTabsVisible = true;
     this.arDesigner.ShowDataSourceIcon = true;
     this.arDesigner.Size = new System.Drawing.Size(397, 578);
     this.arDesigner.TabIndex = 2;
     this.arDesigner.Toolbox = null;
     this.arDesigner.ToolBoxItem = null;
     this.arDesigner.SelectionChanged += new DataDynamics.ActiveReports.Design.SelectionChangedEventHandler(this.arDesigner_SelectionChanged);
     //
     // arPropertyGrid
     //
     this.arPropertyGrid.CommandsVisibleIfAvailable = true;
     this.arPropertyGrid.Dock = System.Windows.Forms.DockStyle.Fill;
     this.arPropertyGrid.LargeButtons = false;
     this.arPropertyGrid.LineColor = System.Drawing.SystemColors.ScrollBar;
     this.arPropertyGrid.Location = new System.Drawing.Point(0, 231);
     this.arPropertyGrid.Name = "arPropertyGrid";
     this.arPropertyGrid.Size = new System.Drawing.Size(200, 347);
     this.arPropertyGrid.TabIndex = 2;
     this.arPropertyGrid.Text = "propertyGrid1";
     this.arPropertyGrid.ViewBackColor = System.Drawing.SystemColors.Window;
     this.arPropertyGrid.ViewForeColor = System.Drawing.SystemColors.WindowText;
     //
     // splitterDesignerProperties
     //
     this.splitterDesignerProperties.BackColor = System.Drawing.SystemColors.Control;
     this.splitterDesignerProperties.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.splitterDesignerProperties.Dock = System.Windows.Forms.DockStyle.Right;
     this.splitterDesignerProperties.Location = new System.Drawing.Point(597, 0);
     this.splitterDesignerProperties.Name = "splitterDesignerProperties";
     this.splitterDesignerProperties.Size = new System.Drawing.Size(3, 578);
     this.splitterDesignerProperties.TabIndex = 3;
     this.splitterDesignerProperties.TabStop = false;
     //
     // pnlProperties
     //
     this.pnlProperties.Controls.Add(this.arPropertyGrid);
     this.pnlProperties.Controls.Add(this.splitterReportExplorerPropertyGrid);
     this.pnlProperties.Dock = System.Windows.Forms.DockStyle.Right;
     this.pnlProperties.Location = new System.Drawing.Point(600, 0);
     this.pnlProperties.Name = "pnlProperties";
     this.pnlProperties.Size = new System.Drawing.Size(200, 578);
     this.pnlProperties.TabIndex = 4;
     //
     // splitterReportExplorerPropertyGrid
     //
     this.splitterReportExplorerPropertyGrid.Dock = System.Windows.Forms.DockStyle.Top;
     this.splitterReportExplorerPropertyGrid.Location = new System.Drawing.Point(0, 228);
     this.splitterReportExplorerPropertyGrid.Name = "splitterReportExplorerPropertyGrid";
     this.splitterReportExplorerPropertyGrid.Size = new System.Drawing.Size(200, 3);
     this.splitterReportExplorerPropertyGrid.TabIndex = 1;
     this.splitterReportExplorerPropertyGrid.TabStop = false;
     //
     // arStatus
     //
     this.arStatus.Location = new System.Drawing.Point(0, 578);
     this.arStatus.Name = "arStatus";
     this.arStatus.Size = new System.Drawing.Size(800, 22);
     this.arStatus.TabIndex = 5;
     //
     // commandBarManager
     //
     this.commandBarManager.Dock = System.Windows.Forms.DockStyle.Top;
     this.commandBarManager.Location = new System.Drawing.Point(0, 0);
     this.commandBarManager.Name = "commandBarManager";
     this.commandBarManager.Size = new System.Drawing.Size(800, 0);
     this.commandBarManager.TabIndex = 6;
     this.commandBarManager.TabStop = false;
     //
     // EndUserDesignerMainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(800, 600);
     this.Controls.Add(this.splitterDesignerProperties);
     this.Controls.Add(this.arDesigner);
     this.Controls.Add(this.splitterToolboxDesigner);
     this.Controls.Add(this.pnlToolbox);
     this.Controls.Add(this.pnlProperties);
     this.Controls.Add(this.arStatus);
     this.Controls.Add(this.commandBarManager);
     this.Name = "EndUserDesignerMainForm";
     this.Text = (string)App.Current.FindResource("ActiveReportsTitle");
     ((System.ComponentModel.ISupportInitialize)(this.arToolbox)).EndInit();
     this.pnlToolbox.ResumeLayout(false);
     this.pnlProperties.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 35
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(AutoExtractor.AssemblyResolve);
     System.Windows.Forms.Application.EnableVisualStyles();
     LoadPlugins();
     LoadAssembliesGeneric();
     var args = e.Args;
     if (args.Length > 0)
     {
         if (File.Exists(args[0]))
             new Run(File.ReadAllText(args[0])).Show();
         else if (args.Length > 1 && (args[0] == "-o" ||args[0] == "-open") && File.Exists(args[1]))
         {
             var dsn = new Designer();
             dsn.PreLoadFile(args[1]);
             dsn.Show();
         }
         else
         {
             switch (args[0])
             {
                 case "-extract":
                     Utils.InstallUtils.ExtractAll();
                     this.Shutdown();
                     break;
                 case "-install":
                     Utils.InstallUtils.NGen().WaitForExit();
                     this.Shutdown();
                     break;
                 case "-extract-install":
                     Utils.InstallUtils.Install(false);
                     this.Shutdown();
                     break;
                 case "-build":
                     if (args.Length == 3 && File.Exists(args[1]))
                     {
                         ZomBBuilder.BuildZomBString(File.ReadAllText(args[1]), Path.GetFullPath(args[2]));
                         this.Shutdown();
                         break;
                     }
                     else
                     {
                         System.Windows.Forms.MessageBox.Show("Invalid CLI arguments. Valid arguments:\r\n -extract  Extract all embedded dll's\r\n -build infile outfile   Build the infile into an exe at outfile\r\n [fileName]  Run this Zaml file");
                         break;
                     }
                 case "-buildfull":
                     if (args.Length == 3 && File.Exists(args[1]))
                     {
                         ZomBBuilder.CopyDLLs(Path.GetDirectoryName(Path.GetFullPath(args[2])));
                         ZomBBuilder.BuildZomBString(File.ReadAllText(args[1]), Path.GetFullPath(args[2]), true);
                         this.Shutdown();
                         break;
                     }
                     else
                     {
                         System.Windows.Forms.MessageBox.Show("Invalid CLI arguments. Valid arguments:\r\n -extract  Extract all embedded dll's\r\n -build infile outfile   Build the infile into an exe at outfile\r\n [fileName]  Run this Zaml file");
                         break;
                     }
                 case "help":
                 case "--help":
                 case "-help":
                 case "/help":
                 case "/?":
                 case "-h":
                     this.ShutdownMode = System.Windows.ShutdownMode.OnExplicitShutdown;
                     new ZomBWalkthrough.Form().ShowDialog();
                     this.Shutdown();
                     break;
                 default:
                     System.Windows.Forms.MessageBox.Show("Invalid CLI arguments. Valid arguments:\r\n -extract  Extract all embedded dll's\r\n -build infile outfile   Build the infile into an exe at outfile\r\n [fileName]  Run this Zaml file");
                     new Designer().Show();
                     break;
             }
         }
     }
     else
     #if !DEBUG
         try
         {
     #endif
             new Designer().Show();
     #if !DEBUG
         }
         catch (Exception ex)
         {
             string full = ErrorDialog.getFullException(ex);
             System.Windows.Forms.MessageBox.Show(full);
         }
     #endif
 }
Exemplo n.º 36
0
        private void pageLayoutDesign_SelectedItemChanged(Designer.PageLayoutDesign sender, Report.Layout.Complex.IPrintableItem selection)
		{
			((MDI) this.ParentForm).SelectedItemChanged(sender, selection);
		}