예제 #1
0
        private void drawLinkLabel_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
        {
            DlgPhotoDraw dlgPhotoDraw = new DlgPhotoDraw(m_wpt, m_photoDescr);

            if(DlgPhotoDraw.m_dlgSizeX < 100)
            {
                dlgPhotoDraw.Top = drawLinkLabel.PointToScreen(new Point(0, 0)).Y - dlgPhotoDraw.Height;
                dlgPhotoDraw.Left = drawLinkLabel.PointToScreen(new Point(0, 0)).X + drawLinkLabel.Width;
            }

            dlgPhotoDraw.ShowDialog();
        }
예제 #2
0
        private void photoViewerControl_Click(object sender, System.EventArgs e)
        {
            DlgPhotoDraw dlgPhotoDraw = new DlgPhotoDraw(m_wpt, m_photoDescr);

            if(DlgPhotoDraw.m_dlgSizeX < 100)
            {
                dlgPhotoDraw.Top = this.PointToScreen(new Point(0, 0)).Y + 20;
                dlgPhotoDraw.Left = this.PointToScreen(new Point(0, 0)).X + 20;
            }

            dlgPhotoDraw.ShowDialog();
        }
예제 #3
0
        public void photoEditorUp(object wpt)
        {
            Waypoint waypoint = (Waypoint)wpt;

            DlgPhotoDraw dlgPhotoDraw = new DlgPhotoDraw(waypoint, null);

            if(DlgPhotoDraw.m_dlgSizeX < 100)
            {
                dlgPhotoDraw.Top = this.PointToScreen(new Point(0, 0)).Y + 20;
                dlgPhotoDraw.Left = this.PointToScreen(new Point(0, 0)).X + 20;
            }

            dlgPhotoDraw.ShowDialog();
        }