public static DropForm GetInstance(int size, int offset, ContentAlignment alignment, int opacity, int hoverOpacity, TaskSettings taskSettings = null) { if (instance == null || instance.IsDisposed) { instance = new DropForm(size, offset, alignment, opacity, hoverOpacity); } instance.taskSettings = taskSettings; return(instance); }
public static DropForm GetInstance(int size, int offset, ContentAlignment alignment, int opacity, int hoverOpacity, TaskSettings taskSettings = null) { if (instance == null || instance.IsDisposed) { instance = new DropForm(size, offset, alignment, opacity, hoverOpacity); } instance.taskSettings = taskSettings; return instance; }
public static void OpenDropWindow(TaskSettings taskSettings = null) { DropForm.GetInstance(Program.Settings.DropSize, Program.Settings.DropOffset, Program.Settings.DropAlignment, Program.Settings.DropOpacity, Program.Settings.DropHoverOpacity, taskSettings).ShowActivate(); }