Esempio n. 1
0
        private void statScoreDetails_Click( object sender, EventArgs e )
        {
            if( model.Model != null )
            {
                if( scoreDetails != null )
                {
                    scoreDetails.BringToFront();
                    return;
                }

                MainWnd main = ParentForm as MainWnd;
                if( main != null )
                {
                    scoreDetails = main.OpenRawDataView( model.Audit.Score, new Uri( "obj://score" ), "Score Data" );
                    scoreDetails.FormClosed += new FormClosedEventHandler( scoreDetails_FormClosed );
                }
            }
        }
Esempio n. 2
0
        public RawDataView OpenRawDataView( object obj, Uri url, string caption )
        {
            RawDataView wnd = new RawDataView( obj, url, caption );

            wnd.MdiParent = this;
            wnd.Show();

            return wnd;
        }
Esempio n. 3
0
 void scoreDetails_FormClosed( object sender, FormClosedEventArgs e )
 {
     scoreDetails = null;
 }
Esempio n. 4
0
        public RawDataView OpenRawDataView( string path )
        {
            try
            {
                Libx42.Model model = new Libx42.Model( path );

                RawDataView wnd = new RawDataView( model, path );
                wnd.MdiParent = this;

                wnd.Show();

                return wnd;
            }
            catch( Exception err )
            {
                MessageBox.Show( this, string.Format( "Error opening '{0}':\n\n{1} - '{2}'", path, err.GetType().Name, err.Message ),
                    "Error", MessageBoxButtons.OK, MessageBoxIcon.Error );
                return null;
            }
        }