Beispiel #1
0
        private void ModelItem_Browse(object sender, string buttonKey)
        {
            try
            {
                ModelViewObject modelObject = (ModelViewObject)sender;

                string strongsNumber = modelObject[0].GetValue().ParseToString();

                StrongsVerses verseView = new StrongsVerses(this.BibleId, strongsNumber, this.verseKey);

                ControlDialog.Show(strongsNumber, verseView, string.Empty, showCancelButton: false, autoSize: false, owner: this.GetParentWindow());
            }
            catch (Exception err)
            {
                ErrorLog.ShowError(err);
            }
        }
Beispiel #2
0
        private void BuildTypes_Browse(object sender, string buttonKey)
        {
            try
            {
                ModelViewObject viewObject = (ModelViewObject)sender;

                TextEditor editor = new TextEditor("Code", viewObject["Code"].GetValue().ParseToString());

                if (editor.ShowDialog().IsFalse())
                {
                    return;
                }

                viewObject["Code"].SetValue(editor.Text);

                viewObject["Code"].Focus();
            }
            catch (Exception err)
            {
                MessageBox.Show(err.InnerExceptionMessage());
            }
        }