public WinParInsp(ParInspAll par)
 {
     InitializeComponent();
     g_ParAll         = par;
     this.DataContext = g_ParAll.BaseParInspection_L[g_TypeIndex];
     this.Title       = par.NameCam;
     if (g_TypeIndex == 0)
     {
         RdbSide1.IsChecked = true;
     }
     else
     {
         RdbSide2.IsChecked = true;
     }
 }
 public static WinParInsp GetWinInst(ParInspAll parAll)
 {
     try
     {
         if (g_WinInst == null)
         {
             g_WinInst = new WinParInsp(parAll);
         }
         g_WinInst.Focus();
     }
     catch (Exception ex)
     {
         Log.L_I.WriteError(g_NameClass, ex);
     }
     return(g_WinInst);
 }