public static void ShowIt(GameWindow window) { FormScreenMark form = new FormScreenMark(); form.Window = window; form.btnUpdateScreen_Click(form, null); SimpleCallback sc = new SimpleCallback(form.L2Window_ScreenshotUpdate); form.Window.ProgressBindings.ScreenshotUpdate += sc; form.Window.ProgressBindings.RefreshScreenshot(); form.updateWhoList(); form.ShowDialog(); window.ProgressBindings.ScreenshotUpdate -= sc; }
private void button2_Click_1(object sender, EventArgs e) { FormScreenMark.ShowIt(window); btnSave.PerformClick(); }