Exemple #1
0
        public RepositoryEditDlg(IBaseWindow baseWin)
        {
            InitializeComponent();

            btnAccept.Image = UIHelper.LoadResourceImage("Resources.btn_accept.gif");
            btnCancel.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif");

            fNotesList = new GKSheetList(pageNotes);

            // SetLocale()
            Title           = LangMan.LS(LSID.LSID_Repository);
            btnAccept.Text  = LangMan.LS(LSID.LSID_DlgAccept);
            btnCancel.Text  = LangMan.LS(LSID.LSID_DlgCancel);
            lblName.Text    = LangMan.LS(LSID.LSID_Title);
            pageNotes.Text  = LangMan.LS(LSID.LSID_RPNotes);
            btnAddress.Text = LangMan.LS(LSID.LSID_Address) + @"...";

            fController = new RepositoryEditDlgController(this);
            fController.Init(baseWin);

            fNotesList.ListModel = new NoteLinksListModel(baseWin, fController.LocalUndoman);
        }