private void btnMasterWin_Click(object sender, RoutedEventArgs e)
        {
            MasterWin masterWin;

            masterWin = new MasterWin();
            masterWin.SetMainWindow(this);
            Point pt = this.PointToScreen(new Point(0.0d, 0.0d));

            masterWin.Left  = pt.X;
            masterWin.Top   = pt.Y;
            masterWin.Owner = this;
            masterWin.ShowDialog();
        }
Beispiel #2
0
 public void SetMasterWindow(MasterWin wnd)
 {
     m_wndMain   = null;
     m_wndMaster = wnd;
     m_libCmn    = m_wndMaster.m_libCmn;
 }
Beispiel #3
0
 public void SetMainWindow(MainWindow wnd)
 {
     m_wndMain   = wnd;
     m_libCmn    = m_wndMain.m_libCmn;
     m_wndMaster = null;
 }