Example #1
0
        private void ViewApplicationModel(FoundItem applicationModelToViewFoundItem)
        {
            ApplicationModelBase applicationModelToView = (ApplicationModelBase)mCurrentItem.OriginObject;

            if (applicationModelToView is ApplicationAPIModel)
            {
                ApplicationAPIModel applicationAPIModel = applicationModelToView as ApplicationAPIModel;
                APIModelPage        w = new APIModelPage(applicationAPIModel);
                if (mContext == eContext.RunsetPage)
                {
                    w.ShowAsWindow(eWindowShowStyle.Free, true, APIModelPage.eEditMode.View);
                }
                else
                {
                    w.ShowAsWindow(eWindowShowStyle.Free, true, APIModelPage.eEditMode.FindAndReplace);
                }
            }
        }
Example #2
0
 private void viewApplicationModel(ApplicationModelBase applicationModelToView)
 {
     if (applicationModelToView is ApplicationAPIModel)
     {
         ApplicationAPIModel applicationAPIModel = applicationModelToView as ApplicationAPIModel;
         APIModelPage        w = new APIModelPage(applicationAPIModel);
         w.ShowAsWindow(eWindowShowStyle.Free, true, APIModelPage.eEditMode.FindAndReplace);
     }
 }
Example #3
0
        private void xViewAPIBtn_Click(object sender, RoutedEventArgs e)
        {
            APIModelPage mAPIEditPage = new APIModelPage(AAMB);

            mAPIEditPage.ShowAsWindow(eWindowShowStyle.Dialog, e: APIModelPage.eEditMode.Edit, parentWindow: Window.GetWindow(this));
        }