Example #1
0
        public EditNewCompanyRecord(CompanyRecord companyRecord)
        {
            panel = new EditNewCompanyRecordPanel(companyRecord);
            panel.ShowAll();
            algContents.Add(panel);

            dlgEditNew.Title = companyRecord != null?
                               Translator.GetString("Edit company") :
                                   Translator.GetString("New company record");
        }
Example #2
0
        protected override void CreateBody()
        {
            CreateBody(Translator.GetString("Enter your company information"));

            WrapLabel footer = new WrapLabel
            {
                Markup = string.Format(Translator.GetString(
                                           "This information will be printed on the documents you issue. If you want to change that information later go to:{0}{1}"),
                                       Environment.NewLine,
                                       new PangoStyle
                {
                    Italic = true,
                    Bold   = true,
                    Text   = Translator.GetString("Edit->Administration->Company information...")
                })
            };

            footer.Show();
            vboBody.PackStart(footer, false, true, 0);

            panel = new EditNewCompanyRecordPanel(CompanyRecord.GetDefault());
            panel.Show();
            vboBody.PackStart(panel, true, true, 10);
        }