// FIXME: Eto restriction /*private void Form_DragEnter(object sender, DragEventArgs e) * { * e.Effect = e.Data.GetDataPresent(DataFormats.FileDrop) ? DragDropEffects.Copy : DragDropEffects.None; * } * * private void Form_DragDrop(object sender, DragEventArgs e) * { * try { * try { * AppHost.Instance.BeginLoading(); * * Array a = e.Data.GetData(DataFormats.FileDrop) as Array; * if (a == null) return; * * for (int i = 0; i < a.Length; i++) { * string fn = a.GetValue(i).ToString(); * AppHost.Instance.LoadBase(this, fn); * } * } finally { * AppHost.Instance.EndLoading(); * } * } catch (Exception ex) { * Logger.LogWrite("BaseWinSDI.Form_DragDrop(): " + ex.Message); * } * }*/ private void UpdateShieldState() { Bitmap img = (Bitmap)((ImageHandler)fController.GetShieldImage()).Handle; if (img != null) { panStatusShieldImage.Image = img; } }
private void UpdateShieldState(StatusBarDrawItemEventArgs sbdevent) { Bitmap img = (Bitmap)((ImageHandler)fController.GetShieldImage()).Handle; if (img != null) { sbdevent.Graphics.DrawImage(img, sbdevent.Bounds.Left, sbdevent.Bounds.Top); } }