private void tsbOpen_Click(object sender, EventArgs e) { using (var frmOpen = new Forms.OpenForm()) if (frmOpen.ShowDialog() == DialogResult.OK) { //drawPad.CreateNewPage(frmNew.WinWidth, frmNew.WinHeight, frmNew.Unit, frmNew.Resolution); if (!frmOpen.IsLocal) { _appManament.CreateClient(frmOpen.IpAddress); ShowListAccount(); } } }
private void tsbOpen_Click(object sender, EventArgs e) { using (var frmOpen = new Forms.OpenForm()) if (frmOpen.ShowDialog() == DialogResult.OK) { if (!frmOpen.IsLocal) { _appManament.CreateClient(frmOpen.IpAddress); ShowListAccount(); } else { drawPad.CreateNewPage(0, 0, Core.MessureUnit.Cm, 1F); _appManament.SetPage(drawPad.Page); _appManament.OpenPage(frmOpen.FilePath); drawPad.AdjustPage(); drawPad.RePaint(); } } }